Browse Source

患者查询接口开发

8 years ago
parent
commit
9a28a06065
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/doctor/endpoints/chats.endpoint.js

+ 6 - 2
src/doctor/endpoints/chats.endpoint.js

@ -468,7 +468,7 @@ router.get(APIv1.Chats.UnreadMsgCount, function (req, res) {
 * 搜索患者相关的数据,包括患者信息与相关的私信记录。关键词不支持空格拆分。
 *
 * 请求URL:
 *  /search/patient?user_id=3b723bb8699a11e69f7c005056850d66&user_role=1&keyword=庄
 *  http://192.168.131.107:3000/api/v1/chats/search/patient?user_id=D2016008240003&user_role=3&keyword=fa
 *
 * 参数:
 *  keywords: 关键词
@ -485,7 +485,11 @@ router.get(APIv1.Chats.SearchAboutPatient, function (req, res) {
    controllerUtil.regModelEventHandler(search, res);
    search.searchAboutPatient(userId, userRole, keyword);
});
/**
 * 获取某个聊天的关键字搜索记录列表
 * 请求URL:
 *http://192.168.131.107:3000/api/v1/chats/search/patient/list?user_id=D2016008240003&keyword=f&group_id=e2b695b9daf74d0faeb90a304ae587a0&type=1
 */
router.get(APIv1.Chats.SearchAboutPatientList, function (req, res) {
    var userId = req.query.user_id;
    var groupId = req.query.group_id;