Commit 88309c143c0e665884c69dfdc5de5ea7501b6691
1 parent
49efdaf9
2022年10月20日10:55:38 添加测试获取门店角色人员接口
Showing
1 changed file
with
15 additions
and
0 deletions
fw-dalaran-server/src/main/java/cn/fw/dalaran/server/controller/app/OtherController.java
... | ... | @@ -3,8 +3,11 @@ package cn.fw.dalaran.server.controller.app; |
3 | 3 | import cn.fw.common.web.annotation.ControllerMethod; |
4 | 4 | import cn.fw.common.web.auth.LoginAuthBean; |
5 | 5 | import cn.fw.common.web.auth.annotation.CurrentUser; |
6 | +import cn.fw.dalaran.common.constants.DalaranConstants; | |
6 | 7 | import cn.fw.dalaran.domain.param.LiveCheckParams; |
7 | 8 | import cn.fw.dalaran.domain.vo.LiveCheckVo; |
9 | +import cn.fw.dalaran.rpc.erp.UserRoleRpcService; | |
10 | +import cn.fw.dalaran.rpc.erp.dto.UserInfoDTO; | |
8 | 11 | import cn.fw.dalaran.service.Common; |
9 | 12 | import cn.fw.dalaran.service.biz.OtherBizService; |
10 | 13 | import cn.fw.data.base.domain.common.Message; |
... | ... | @@ -20,6 +23,7 @@ import javax.validation.Valid; |
20 | 23 | import javax.validation.constraints.NotBlank; |
21 | 24 | import javax.validation.constraints.NotNull; |
22 | 25 | import java.io.File; |
26 | +import java.util.List; | |
23 | 27 | import java.util.Objects; |
24 | 28 | |
25 | 29 | import static cn.fw.common.web.util.ResultBuilder.success; |
... | ... | @@ -41,6 +45,7 @@ public class OtherController { |
41 | 45 | |
42 | 46 | private final OtherBizService otherBizService; |
43 | 47 | private final Common common; |
48 | + private final UserRoleRpcService userRoleRpcService; | |
44 | 49 | |
45 | 50 | /** |
46 | 51 | * 获取直播审计页面 |
... | ... | @@ -104,4 +109,14 @@ public class OtherController { |
104 | 109 | return success(result); |
105 | 110 | } |
106 | 111 | |
112 | + /** | |
113 | + * | |
114 | + * @param shopId 门店id | |
115 | + * @return | |
116 | + */ | |
117 | + @GetMapping("/test") | |
118 | + public Message<List<UserInfoDTO>> test(Long shopId) { | |
119 | + return Message.success(userRoleRpcService.getUsers(shopId, DalaranConstants.ZBSJ_ROLE_CODE)); | |
120 | + } | |
121 | + | |
107 | 122 | } | ... | ... |