phis-feign/src/main/java/com/hz/his/dto/appearance/AppearanceDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/appearance/AppearanceLabelDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/appearance/AppearancePictureDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipAppearanceService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/appearance/AppearanceDto.java
New file @@ -0,0 +1,31 @@ package com.hz.his.dto.appearance; import lombok.Data; import java.util.List; /** * 颜值规划图片Dto */ @Data public class AppearanceDto{ /**用户Id*/ private String userId; /**是否新版颜值规则*/ private Integer isNewVersion = NO; /**员工id*/ private String employeeId; /**颜值规则标签列表*/ List<AppearanceLabelDto> labelDtoList; /**颜值规则图片列表*/ List<AppearancePictureDto> pictureDtoList; public AppearanceDto() { } /**数字0*/ public static final Integer NO = 0; /**数字1*/ public static final Integer YES = 1; } phis-feign/src/main/java/com/hz/his/dto/appearance/AppearanceLabelDto.java
New file @@ -0,0 +1,27 @@ package com.hz.his.dto.appearance; import lombok.Data; /** * 颜值规划标签Dto */ @Data public class AppearanceLabelDto { /**标签分类标识(LabelType)*/ private String labelTypeId; /**标签分类编号(不填自动生成)*/ private String labelTypeNo; /**标签分类名称*/ private String labelTypeName; /**标签标识(LabelInfo)*/ private String labelInfoId; /**标签编号(不填则自动生成)*/ private String labelInfoNo; /**标签名称*/ private String labelInfoName; public AppearanceLabelDto() { } } phis-feign/src/main/java/com/hz/his/dto/appearance/AppearancePictureDto.java
New file @@ -0,0 +1,32 @@ package com.hz.his.dto.appearance; import lombok.Data; /** * 颜值规划图片Dto */ @Data public class AppearancePictureDto { /**图片*/ private String image; /**类型:1面部照片,2VISIA照片*/ private Integer type = FACE_PICTURE; /**面部分类(针对面部照片)*/ private Integer faceType = FACE_POSITIVE; public AppearancePictureDto() { } /**类型:1面部照片*/ public static final Integer FACE_PICTURE = 1; /**类型:2VISIA照片*/ public static final Integer VISIA_PICTURE = 2; /**面部分类:正脸*/ public static final Integer FACE_POSITIVE = 0; /**面部分类:侧脸*/ public static final Integer FACE_SIDE = 1; /**面部分类:角度照(45°角)*/ public static final Integer FACE_ANGLE = 2; } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipAppearanceService.java
New file @@ -0,0 +1,44 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.appearance.AppearanceDto; 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-appearance") public interface SPhipAppearanceService { /** * 开放平台-颜值规划列表 */ @PostMapping(value = "/appearance/list") Result getAppearanceList(@RequestBody AppearanceDto appearanceDto); /** * 开放平台-颜值规划详情 */ @PostMapping(value = "/appearance/one") Result getAppearanceOne(@RequestBody AppearanceDto appearanceDto); /** * 开放平台-颜值规划添加 */ @PostMapping(value = "/appearance/add") Result addAppearance(@RequestBody AppearanceDto appearanceDto); /** * 开放平台-颜值规划修改 */ @PostMapping(value = "/appearance/edit") Result editAppearance(@RequestBody AppearanceDto appearanceDto); /** * 开放平台-颜值规划删除 */ @PostMapping(value = "/appearance/del") Result delAppearance(@RequestBody AppearanceDto appearanceDto); }