phis-feign/src/main/java/com/hz/his/dto/user/usercompleteInfo/UserInfoCompleteDto.java
File was renamed from phis-feign/src/main/java/com/hz/his/dto/user/completeInfo/UserInfoComplete.java @@ -1,6 +1,10 @@ package com.hz.his.dto.user.completeInfo; package com.hz.his.dto.user.usercompleteInfo; public class UserInfoComplete { /*** * 用户扫码完善资料 dto */ public class UserInfoCompleteDto { //用户ID private String userId; @@ -8,6 +12,8 @@ private String name; //性别 0=未知 1=男 2=女 private Integer gender; //手机号 private String tel; //邮箱 private String email; //证件类型 @@ -67,6 +73,14 @@ this.gender = gender; } public String getTel() { return tel; } public void setTel(String tel) { this.tel = tel; } public String getEmail() { return email; } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserInfoCompleteService.java
New file @@ -0,0 +1,30 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.user.usercompleteInfo.UserInfoCompleteDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-user-complete") public interface SPhipUserInfoCompleteService { /** * 开放平台-处理扫码用户完善资料页信息 (编辑) */ @PostMapping(value = "/user/complete/edit") Result userCompleteEdit(@RequestBody UserInfoCompleteDto userInfoCompleteDto); /** * 开放平台-展示 完善资料页详情数据 */ @PostMapping(value = "/user/complete/detail") Result userCompleteDetail(@RequestBody UserInfoCompleteDto userInfoCompleteDto); }