diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 679ba5c..8cb064c 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -644,4 +644,22 @@ public class PatientController { } return baseResponse; } + /** + * 小程序-查询用户是否关注该医生 + * @param pid 患者id + * @param did 医生id + */ + @GetMapping("getDoctorById") + public BaseResponse getDoctorById(LymsAttention lymsAttention){ + BaseResponse baseResponse=new BaseResponse(); + try { + LymsAttention attention=lymsAttentionService.getOne(Wrappers.query(lymsAttention)); + baseResponse.setObject(null==attention?true:false); + baseResponse.setErrormsg("成功"); + } catch (Exception e) { + baseResponse.setErrormsg("失败"); + e.printStackTrace(); + } + return baseResponse; + } }