Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1683233e
authored
Mar 18, 2021
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调整部分逻辑
1 parent
a97d67c2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
src/main/java/com/glsx/admin/controller/ProductController.java
src/main/java/com/glsx/admin/controller/ProductTypeController.java
src/main/java/com/glsx/admin/remote/ProductFeignClient.java
src/main/java/com/glsx/admin/remote/ProductTypeFeignClient.java
src/main/java/com/glsx/admin/controller/ProductController.java
View file @
1683233
...
@@ -70,8 +70,8 @@ public class ProductController {
...
@@ -70,8 +70,8 @@ public class ProductController {
@RequestMapping
(
value
=
"/save"
,
method
=
{
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/save"
,
method
=
{
RequestMethod
.
POST
})
public
R
save
(
@RequestBody
@Validated
({
GroupA
.
class
})
ProductReq
req
)
{
public
R
save
(
@RequestBody
@Validated
({
GroupA
.
class
})
ProductReq
req
)
{
log
.
info
(
"$$$$ /product/save param: {}"
,
JSON
.
toJSONString
(
req
));
log
.
info
(
"$$$$ /product/save param: {}"
,
JSON
.
toJSONString
(
req
));
productFeignClient
.
save
(
req
);
Boolean
success
=
productFeignClient
.
save
(
req
);
return
R
.
ok
();
return
R
.
ok
()
.
data
(
success
)
;
}
}
/**
/**
...
@@ -112,7 +112,7 @@ public class ProductController {
...
@@ -112,7 +112,7 @@ public class ProductController {
@RequestMapping
(
value
=
"/putOnOff"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/putOnOff"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
R
putOnOff
(
@Validated
({
Default
.
class
})
ProductReq
req
)
{
public
R
putOnOff
(
@Validated
({
Default
.
class
})
ProductReq
req
)
{
log
.
info
(
"$$$$ /product/putOnOff param: {}"
,
JSON
.
toJSONString
(
req
));
log
.
info
(
"$$$$ /product/putOnOff param: {}"
,
JSON
.
toJSONString
(
req
));
productFeignClient
.
putOnOff
(
req
);
Boolean
success
=
productFeignClient
.
putOnOff
(
req
);
return
R
.
ok
();
return
R
.
ok
()
.
data
(
success
)
;
}
}
}
}
src/main/java/com/glsx/admin/controller/ProductTypeController.java
View file @
1683233
...
@@ -66,8 +66,8 @@ public class ProductTypeController {
...
@@ -66,8 +66,8 @@ public class ProductTypeController {
@RequestMapping
(
value
=
"/save"
,
method
=
{
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/save"
,
method
=
{
RequestMethod
.
POST
})
public
R
save
(
@RequestBody
@Validated
({
GroupA
.
class
})
ProductTypeReq
req
)
{
public
R
save
(
@RequestBody
@Validated
({
GroupA
.
class
})
ProductTypeReq
req
)
{
log
.
info
(
"$$$$ /productType/save param: {}"
,
JSON
.
toJSONString
(
req
));
log
.
info
(
"$$$$ /productType/save param: {}"
,
JSON
.
toJSONString
(
req
));
productTypeFeignClient
.
save
(
req
);
Boolean
success
=
productTypeFeignClient
.
save
(
req
);
return
R
.
ok
();
return
R
.
ok
()
.
data
(
success
)
;
}
}
/**
/**
...
...
src/main/java/com/glsx/admin/remote/ProductFeignClient.java
View file @
1683233
...
@@ -31,7 +31,7 @@ public interface ProductFeignClient {
...
@@ -31,7 +31,7 @@ public interface ProductFeignClient {
@RequestMapping
(
value
=
"/product/save"
,
method
=
{
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/product/save"
,
method
=
{
RequestMethod
.
POST
})
@ResponseBody
@ResponseBody
void
save
(
@RequestBody
ProductReq
req
);
Boolean
save
(
@RequestBody
ProductReq
req
);
@RequestMapping
(
"/product/getCommandSetById"
)
@RequestMapping
(
"/product/getCommandSetById"
)
@ResponseBody
@ResponseBody
...
@@ -43,5 +43,5 @@ public interface ProductFeignClient {
...
@@ -43,5 +43,5 @@ public interface ProductFeignClient {
@RequestMapping
(
value
=
"/product/putOnOff"
,
method
=
{
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/product/putOnOff"
,
method
=
{
RequestMethod
.
POST
})
@ResponseBody
@ResponseBody
void
putOnOff
(
@SpringQueryMap
ProductReq
req
);
Boolean
putOnOff
(
@SpringQueryMap
ProductReq
req
);
}
}
src/main/java/com/glsx/admin/remote/ProductTypeFeignClient.java
View file @
1683233
...
@@ -30,7 +30,7 @@ public interface ProductTypeFeignClient {
...
@@ -30,7 +30,7 @@ public interface ProductTypeFeignClient {
@RequestMapping
(
value
=
"/productType/save"
,
method
=
{
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/productType/save"
,
method
=
{
RequestMethod
.
POST
})
@ResponseBody
@ResponseBody
void
save
(
@RequestBody
ProductTypeReq
req
);
Boolean
save
(
@RequestBody
ProductTypeReq
req
);
@RequestMapping
(
value
=
"/productType/getShopTagList"
,
method
=
{
RequestMethod
.
GET
})
@RequestMapping
(
value
=
"/productType/getShopTagList"
,
method
=
{
RequestMethod
.
GET
})
@ResponseBody
@ResponseBody
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment