RemotePatientModService.java
2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package cn.brotop.api.user;
import cn.brotop.api.user.DTO.PatientCategoryDTO;
import cn.brotop.api.user.VO.PatientCateVO;
import cn.brotop.api.user.VO.PatientOrderVO;
import cn.brotop.api.user.VO.PatientRecordedsVO;
import cn.brotop.api.user.VO.RecordedVO;
import cn.brotop.api.user.DTO.PatientDTO;
import cn.brotop.api.user.VO.*;
import cn.brotop.api.user.factory.RemoteUserModFallbackFactory;
import cn.brotop.common.core.constant.ServiceNameConstants;
import cn.brotop.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@FeignClient(contextId = "remotePatientModService", value = ServiceNameConstants.USER_SERVICE, fallbackFactory = RemoteUserModFallbackFactory.class)
public interface RemotePatientModService {
/**
* 查询患者所有信息评价
*/
@GetMapping(value = "/remote_user_patient/findPatient")
R<List<PatientDTO>> findPatient(@RequestParam("doctorId") Long doctorId);
/**
* 查询患者所有信息好评
*/
@GetMapping(value = "/remote_user_patient/findPatientGood")
R<List<PatientDTO>> findPatientGood(@RequestParam("doctorEvaluate") String doctorEvaluate);
/**
* 查询分组内所有患者
* @return
*/
@GetMapping(value = "/remote_user_patient/selectList")
R<List<PatientCateVO>> selectList(@RequestParam("categoryId") Long categoryId);
/**
*患者资料
*/
@GetMapping(value = "/remote_user_patient/selectOne")
R<PatientRecordedsVO> selectOne(@RequestParam("patientId") Long patientId);
/**
* 修改当前分组
*/
@PostMapping(value = "/remote_user_patient/updateCategory")
R<Integer> updateCategory(@RequestBody PatientCategoryDTO patientCategoryDTOS);
/**
*修改备注
*/
@PostMapping(value = "/remote_user_patient/updateText")
R<Integer> updateText(@RequestBody PatientRecordedsVO patientRecordedsVO);
/**
* 查询订单患者信息
* @param id
* @return
*/
@GetMapping(value = "/remote_user_patient/selectPatient")
PatientOrderVO selectPatient(@RequestParam("id") Long id);
/**
* 根据患者id查询患者问诊详情 点击接诊 退诊改变状态
* @param patientId
* @param status
* @return
*/
@GetMapping(value = "/remote_user_patient/updateStatus")
public R<RecordedVO> updateStatus(@RequestParam("patientId") Long patientId, @RequestParam("status") Integer status);
}