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
137b5933
Commit
137b5933
authored
Nov 21, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试接口提交~
parent
4db9a951
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
ChangeConfigController.java
...yanxuan/change/web/controller/ChangeConfigController.java
+8
-5
No files found.
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeConfigController.java
View file @
137b5933
...
@@ -104,16 +104,19 @@ public class ChangeConfigController {
...
@@ -104,16 +104,19 @@ public class ChangeConfigController {
@Autowired
@Autowired
private
GoodsRpcService
goodsRpcService
;
private
GoodsRpcService
goodsRpcService
;
@GetMapping
(
"/test"
)
@GetMapping
(
"/test"
)
public
AjaxResult
test
(
@RequestParam
(
"id"
)
Integer
id
){
public
String
test
(
@RequestParam
(
"id"
)
Integer
id
){
return
AjaxResult
.
of
(
1111
,
"调用成功"
,
goodsRpcService
.
getDetail
(
id
));
String
detail
=
goodsRpcService
.
getDetail
(
id
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
detail
);
GoodsResponseSqePO
data
=
jsonObject
.
getObject
(
"data"
,
GoodsResponseSqePO
.
class
);
return
data
.
getUserName
();
}
}
@GetMapping
(
"/test1"
)
@GetMapping
(
"/test1"
)
public
String
test1
(
@RequestParam
(
"id"
)
Integer
id
){
public
Object
test1
(
@RequestParam
(
"id"
)
Integer
id
){
String
detail
=
goodsRpcService
.
getDetail
(
id
);
String
detail
=
goodsRpcService
.
getDetail
(
id
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
detail
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
detail
);
GoodsResponseSqePO
data
=
(
GoodsResponseSqePO
)
jsonObject
.
get
(
"data"
);
Object
data
=
jsonObject
.
get
(
"data"
);
return
data
.
getUserName
()
;
return
data
;
}
}
...
...
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