fhx
2024-03-12 94c7f74451289a41383093f87fc6b6b27e5790ab
1.拆分法大大service接口
1个文件已删除
4个文件已添加
217 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/dto/fdd/FddTemplateDto.java 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipFddService.java 74 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/fdd/SPhipFddService.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/fdd/SPhipFddSignTaskService.java 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/fdd/SPhipFddTemplateService.java 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/fdd/FddTemplateDto.java
New file
@@ -0,0 +1,21 @@
package com.hz.his.dto.fdd;
import com.hz.his.dto.PageDto;
import lombok.Data;
/**
 * @USER: fhx
 * @DATE: 2024/3/6
 **/
@Data
public class FddTemplateDto extends PageDto {
    /** 模板类型:doc:文档模板/sign:签署模板 */
    private String type;
    /** 模板ID */
    private String templateId;
    /** 签署模板ID */
    private String signTemplateId;
    /** 文档模板ID */
    private String docTemplateId;
}
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipFddService.java
File was deleted
phis-feign/src/main/java/com/hz/his/feign/service/platform/fdd/SPhipFddService.java
New file
@@ -0,0 +1,40 @@
package com.hz.his.feign.service.platform.fdd;
import com.hx.resultTool.Result;
import com.hz.his.dto.PageDto;
import com.hz.his.dto.fdd.FddDto;
import com.hz.his.dto.marketing.MarketActivityDto;
import com.hz.his.dto.user.UserTreatRecordDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
/**
 * 法大大授权功能service
 * @USER: fhx
 * @DATE: 2023/8/2
 **/
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-fdd")
public interface SPhipFddService {
    /** 查询用户法大大功能授权数据 */
    @PostMapping(value = "/fdd/userFddAuthData")
    Result userFddAuthData(@RequestBody FddDto dto);
    /** 法大大授权认证链接 */
    @PostMapping(value = "/fdd/authUrl")
    Result fddAuthUrl(@RequestBody FddDto dto);
    /** 授权同意免验证签署 */
    @PostMapping(value = "/fdd/authFreeVisa")
    Result authFreeVisa(@RequestBody FddDto dto);
    /** 查询个人签名列表 */
    @RequestMapping("/fdd/getPersonalSealList")
    Result getPersonalSealList(@RequestBody FddDto dto);
    /** 获取签名设置免验证签链接 */
    @RequestMapping("/fdd/getPersonalSealFreeSignUrl")
    Result getPersonalSealFreeSignUrl(@RequestBody FddDto dto);
}
phis-feign/src/main/java/com/hz/his/feign/service/platform/fdd/SPhipFddSignTaskService.java
New file
@@ -0,0 +1,46 @@
package com.hz.his.feign.service.platform.fdd;
import com.hx.resultTool.Result;
import com.hz.his.dto.PageDto;
import com.hz.his.dto.fdd.FddDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
/**
 * 法大大签署任务service
 * @USER: fhx
 * @DATE: 2023/8/2
 **/
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-fdd-sign-task")
public interface SPhipFddSignTaskService {
    /** 发起模板签署任务 */
    @PostMapping(value = "/fdd/sign/task/template/signTask")
    Result templateSignTask(@RequestBody FddDto dto);
    /** 获取签署任务参与人链接 to codeNo */
    @PostMapping(value = "/fdd/sign/task/getSignTaskActorUrlToCodeNo")
    Result getSignTaskActorUrlToCodeNo(@RequestBody FddDto dto);
    /** 电子病历 - 发起法大大签署任务 */
    @RequestMapping(value="/fdd/sign/task/medicalRecords/signTask",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    Result medicalRecordsSignTask(@RequestPart("file") MultipartFile file, @RequestParam("id") String id
            , @RequestParam("loginRoleId") String loginRoleId, @RequestParam("redirectUrl")String redirectUrl);
    /** 处方单 - 发起法大大签署任务 */
    @RequestMapping(value="/fdd/prescription/signTask",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    Result prescriptionSignTask(@RequestPart("file") MultipartFile file, @RequestParam("id") String id
            , @RequestParam("loginRoleId") String loginRoleId, @RequestParam("redirectUrl")String redirectUrl);
    /** 作废(撤销签署任务) */
    @RequestMapping("/fdd/sign/task/cancelSignTask")
    Result cancelSignTask(@RequestBody FddDto dto);
    /** 获取签署任务文件下载地址 */
    @PostMapping(value = "/fdd/sign/task/getSignTaskFileUrl")
    Result getSignTaskFileUrl(@RequestBody FddDto dto);
}
phis-feign/src/main/java/com/hz/his/feign/service/platform/fdd/SPhipFddTemplateService.java
New file
@@ -0,0 +1,36 @@
package com.hz.his.feign.service.platform.fdd;
import com.hx.resultTool.Result;
import com.hz.his.dto.PageDto;
import com.hz.his.dto.fdd.FddDto;
import com.hz.his.dto.fdd.FddTemplateDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
/**
 * 法大大模板管理service
 * @USER: fhx
 * @DATE: 2023/8/2
 **/
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-fdd-template")
public interface SPhipFddTemplateService {
    /** 法大大签署模板列表 */
    @PostMapping(value = "/fdd/template/signTemplateDetail")
    Result signTemplateList(@RequestBody FddTemplateDto dto);
    /** 获取模板预览链接 */
    @PostMapping(value = "/fdd/template/getTemplatePreviewUrl")
    Result getTemplatePreviewUrl(@RequestBody FddTemplateDto dto);
    /** 签署任务模板详情 */
    @PostMapping(value = "/fdd/template/signTemplateDetail")
    Result signTemplateDetail(@RequestBody FddTemplateDto dto);
    /** 文档模板详情 */
    @PostMapping(value = "/fdd/template/docTemplateDetail")
    Result docTemplateDetail(@RequestBody FddTemplateDto dto);
}