RemotePatientModService.java 2.5 KB
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);
}