Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
58f75d72
Commit
58f75d72
authored
Apr 05, 2021
by
macro
Browse files
Update SmsHomeNewProductController.java
parent
f0675db8
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/java/com/macro/mall/controller/SmsHomeNewProductController.java
View file @
58f75d72
...
@@ -23,7 +23,7 @@ public class SmsHomeNewProductController {
...
@@ -23,7 +23,7 @@ public class SmsHomeNewProductController {
@Autowired
@Autowired
private
SmsHomeNewProductService
homeNewProductService
;
private
SmsHomeNewProductService
homeNewProductService
;
@ApiOperation
(
"添加首页
推荐品牌
"
)
@ApiOperation
(
"添加首页
新品
"
)
@RequestMapping
(
value
=
"/create"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/create"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
CommonResult
create
(
@RequestBody
List
<
SmsHomeNewProduct
>
homeNewProductList
)
{
public
CommonResult
create
(
@RequestBody
List
<
SmsHomeNewProduct
>
homeNewProductList
)
{
...
@@ -34,7 +34,7 @@ public class SmsHomeNewProductController {
...
@@ -34,7 +34,7 @@ public class SmsHomeNewProductController {
return
CommonResult
.
failed
();
return
CommonResult
.
failed
();
}
}
@ApiOperation
(
"修改
推荐
排序"
)
@ApiOperation
(
"修改
首页新品
排序"
)
@RequestMapping
(
value
=
"/update/sort/{id}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/update/sort/{id}"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
CommonResult
updateSort
(
@PathVariable
Long
id
,
Integer
sort
)
{
public
CommonResult
updateSort
(
@PathVariable
Long
id
,
Integer
sort
)
{
...
@@ -45,7 +45,7 @@ public class SmsHomeNewProductController {
...
@@ -45,7 +45,7 @@ public class SmsHomeNewProductController {
return
CommonResult
.
failed
();
return
CommonResult
.
failed
();
}
}
@ApiOperation
(
"批量删除
推荐
"
)
@ApiOperation
(
"批量删除
首页新品
"
)
@RequestMapping
(
value
=
"/delete"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/delete"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
CommonResult
delete
(
@RequestParam
(
"ids"
)
List
<
Long
>
ids
)
{
public
CommonResult
delete
(
@RequestParam
(
"ids"
)
List
<
Long
>
ids
)
{
...
@@ -56,7 +56,7 @@ public class SmsHomeNewProductController {
...
@@ -56,7 +56,7 @@ public class SmsHomeNewProductController {
return
CommonResult
.
failed
();
return
CommonResult
.
failed
();
}
}
@ApiOperation
(
"批量修改
推荐
状态"
)
@ApiOperation
(
"批量修改
首页新品
状态"
)
@RequestMapping
(
value
=
"/update/recommendStatus"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/update/recommendStatus"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
CommonResult
updateRecommendStatus
(
@RequestParam
(
"ids"
)
List
<
Long
>
ids
,
@RequestParam
Integer
recommendStatus
)
{
public
CommonResult
updateRecommendStatus
(
@RequestParam
(
"ids"
)
List
<
Long
>
ids
,
@RequestParam
Integer
recommendStatus
)
{
...
@@ -67,7 +67,7 @@ public class SmsHomeNewProductController {
...
@@ -67,7 +67,7 @@ public class SmsHomeNewProductController {
return
CommonResult
.
failed
();
return
CommonResult
.
failed
();
}
}
@ApiOperation
(
"分页查询
推荐
"
)
@ApiOperation
(
"分页查询
首页新品
"
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
CommonResult
<
CommonPage
<
SmsHomeNewProduct
>>
list
(
@RequestParam
(
value
=
"productName"
,
required
=
false
)
String
productName
,
public
CommonResult
<
CommonPage
<
SmsHomeNewProduct
>>
list
(
@RequestParam
(
value
=
"productName"
,
required
=
false
)
String
productName
,
...
...
Write
Preview
Supports
Markdown
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