phis-feign/src/main/java/com/hz/his/constant/PhisRoleType.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeRoleDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipEmployeeService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/constant/PhisRoleType.java
New file @@ -0,0 +1,39 @@ package com.hz.his.constant; /** * @author wzh */ public class PhisRoleType { /**角色-顾问组长*/ public static final String UNIQUE_STR_ADVISER_LEADER = "adviser_leader"; /**角色-顾问助理*/ public static final String UNIQUE_STR_ADVISER_ASSISTANT = "adviser_assistant"; /**角色-MIC*/ public static final String UNIQUE_STR_MIC = "mic"; /**角色-医生*/ public static final String UNIQUE_STR_DOCTOR = "doctor"; /**角色-护士*/ public static final String UNIQUE_STR_NURSE = "nurse"; /**角色-前台*/ public static final String UNIQUE_STR_RECEPTION = "reception"; /**角色-店长*/ public static final String UNIQUE_STR_SHOPOWNER = "shopowner"; /**角色-护士助理*/ public static final String UNIQUE_STR_NURSE_ASSISTANT = "nurse_assistant"; /**角色-医生助理*/ public static final String UNIQUE_STR_DOCTOR_ASSISTANT = "doctor_assistant"; /**角色-TMK顾问*/ public static final String UNIQUE_STR_TMK_ADVISER = "tmk_adviser"; /**角色-SBU总监*/ public static final String UNIQUE_STR_SBU_DIRECTOR = "sbu_director"; /**角色-CEO*/ public static final String UNIQUE_STR_CEO = "ceo"; /**角色-CHO*/ public static final String UNIQUE_STR_CHO = "cho"; /**角色-系统维护员*/ public static final String UNIQUE_STR_ADMIN = "admin"; /**角色-运营店长*/ public static final String OPERATIONS_MANAGER = "operations_manager"; } phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeRoleDto.java
New file @@ -0,0 +1,24 @@ package com.hz.his.dto.employee; import com.hz.his.dto.PageDto; import lombok.Data; /** * @author fwq * 员工扩展 * */ @Data public class EmployeeRoleDto extends PageDto { /**员工标识*/ private String preId; /**员工企业userId*/ private String userId; /**角色唯一字符串*/ private String uniqueStr; /**预约门店标识*/ private String shopId; /**角色关联标识*/ private String roleId; /**角色表标识*/ private String roleTypeId; } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipEmployeeService.java
New file @@ -0,0 +1,21 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.employee.EmployeeRoleDto; 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-employee") public interface SPhipEmployeeService { /** * 开放平台-优惠券列表(含指定) */ @PostMapping(value = "/employee/role/list") Result getEmployeeRoleList(@RequestBody EmployeeRoleDto employeeRoleDto); }