Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡园园
yanxuan-qc-change-system
Commits
5171d7ca
Commit
5171d7ca
authored
Nov 25, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试获取返回值
parent
7a14d8a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
FlowIusRpcService.java
...anxuan/change/integration/flow/ius/FlowIusRpcService.java
+5
-2
ChangeConfigController.java
...yanxuan/change/web/controller/ChangeConfigController.java
+5
-6
No files found.
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/ius/FlowIusRpcService.java
View file @
5171d7ca
...
...
@@ -9,6 +9,9 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.HashMap
;
import
java.util.List
;
/**
* @author WangJiaXiang
* @date 2022/11/24/024$
...
...
@@ -21,9 +24,9 @@ public interface FlowIusRpcService {
AjaxResponse
<
IusUserInfoRsp
>
queryUserInfo
(
@RequestParam
(
name
=
"uid"
)
String
uid
);
@GetMapping
(
"/v1/qc/allTeam/pos/queryLeaderChain"
)
AjaxResponse
<
IusDepartmentRsp
>
queryLeaderChain
(
@RequestParam
(
name
=
"uid"
)
String
uid
);
AjaxResponse
<
HashMap
<
String
,
List
<
SecondaryDepartments
>>
>
queryLeaderChain
(
@RequestParam
(
name
=
"uid"
)
String
uid
);
@PostMapping
(
"/v1/qc/user/queryLeaderChain"
)
AjaxResponse
<
IusDepartmentRsp
>
queryDepartment
(
@RequestBody
IusDepartmentReq
uid
);
AjaxResponse
<
HashMap
<
String
,
List
<
SecondaryDepartments
>>
>
queryDepartment
(
@RequestBody
IusDepartmentReq
uid
);
}
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeConfigController.java
View file @
5171d7ca
...
...
@@ -8,15 +8,14 @@ import com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeCommanderPO;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigQueryReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.rpc.GoodsResponseRpc
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.FlowIusRpcService
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.IusDepartmentReq
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.IusDepartmentRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.IusUserInfoRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.*
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
/**
...
...
@@ -120,14 +119,14 @@ public class ChangeConfigController {
}
@GetMapping
(
"/test1"
)
public
AjaxResponse
<
IusDepartmentRsp
>
queryGoods1
(){
public
AjaxResponse
<
HashMap
<
String
,
List
<
SecondaryDepartments
>>
>
queryGoods1
(){
ArrayList
<
String
>
strings
=
new
ArrayList
<>();
strings
.
add
(
"grp.gyhtest1001@corp.netease.com"
);
return
iusRpcService
.
queryDepartment
(
new
IusDepartmentReq
(
strings
));
}
@GetMapping
(
"/test2"
)
public
AjaxResponse
<
IusDepartmentRsp
>
queryGoods2
(){
public
AjaxResponse
<
HashMap
<
String
,
List
<
SecondaryDepartments
>>
>
queryGoods2
(){
return
iusRpcService
.
queryLeaderChain
(
"grp.gyhtest1001@corp.netease.com"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment