提交 c305bee8 authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 ea39da75
......@@ -7,6 +7,7 @@ import com.ebaiyihui.family.doctor.server.service.ServiceConfigService;
import com.ebaiyihui.family.doctor.server.util.PageUtil;
import com.ebaiyihui.framework.response.BaseResponse;
import com.ebaiyihui.imforward.client.vo.IMQueryMsgReqVO;
import com.ebaiyihui.imforward.client.vo.IMQueryUserLoginReqVO;
import com.ebaiyihui.imforward.client.vo.IMSingleMsgResultVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......@@ -105,4 +106,10 @@ public class PatientSignController {
}
return patientSignService.queryImAccount(param);
}
@ApiOperation(value = "查询APP客户端是或否需要登陆IM", httpMethod = "POST", notes = "查询APP客户端是或否需要登陆IM")
@RequestMapping(value = "/querysdklogin", method = RequestMethod.POST)
public BaseResponse<?> querySdkLogin(@RequestBody IMQueryUserLoginReqVO reqVO) {
return patientSignService.querySdkLogin(reqVO);
}
}
......@@ -10,6 +10,7 @@ import com.ebaiyihui.family.doctor.common.vo.ImInfoResVo;
import com.ebaiyihui.family.doctor.server.util.PageUtil;
import com.ebaiyihui.framework.response.BaseResponse;
import com.ebaiyihui.imforward.client.vo.IMQueryMsgReqVO;
import com.ebaiyihui.imforward.client.vo.IMQueryUserLoginReqVO;
import com.ebaiyihui.imforward.client.vo.IMSingleMsgResultVO;
import java.util.List;
......@@ -39,4 +40,6 @@ public interface PatientSignService {
BaseResponse<ImInfoDetailDocResVo> queryImInfoDetail(ImInfoDetailDocReqDTO param);
BaseResponse<ImAccountVo> queryImAccount(ImAccountReqDTO param);
BaseResponse<?> querySdkLogin(IMQueryUserLoginReqVO reqVO);
}
......@@ -262,6 +262,20 @@ public class PatientSignServiceImpl implements PatientSignService {
return BaseResponse.success(getImAccounts(patientSignEntity, admissionId, param.getImAppCode(), param.getDoctorId()));
}
@Override
public BaseResponse<?> querySdkLogin(IMQueryUserLoginReqVO reqVO) {
BaseResponse<IMQueryUserLoginRspVO> imSysResult = imApiFeignClient.queryUserLogin(reqVO);
if (imSysResult == null) {
return BaseResponse.error(imSysResult.getMsg());
}
if (BaseResponse.DEFAULT_ERROR_CODE.equals(imSysResult.getCode())) {
return BaseResponse.error(imSysResult.getMsg());
}
return BaseResponse.success(imSysResult.getData());
}
public ImAccountVo getImAccounts(PatientSignEntity patientSignEntity, String admId, String imAppCode, String doctorId) {
ImAccountVo admission = new ImAccountVo();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论