记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
715c622d
Commit
715c622d
authored
Feb 16, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+API:商铺活动:优惠券相关;
parent
da308c8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
8 deletions
+31
-8
GoblinStoreMgtCouponAddParam.java
...rvice/goblin/dto/manage/GoblinStoreMgtCouponAddParam.java
+3
-3
GoblinStoreMgtCouponController.java
...lin/controller/manage/GoblinStoreMgtCouponController.java
+28
-5
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtCouponAddParam.java
View file @
715c622d
...
...
@@ -62,7 +62,7 @@ public class GoblinStoreMgtCouponAddParam implements Serializable {
@ApiModelProperty
(
position
=
20
,
required
=
true
,
value
=
"使用范围[0-全部商品|1-部分商品]"
,
allowableValues
=
"0,1"
,
example
=
"0"
)
private
String
useScope
;
@ApiModelProperty
(
position
=
21
,
required
=
false
,
value
=
"适用
商品
集合LIST"
)
@Valid
private
List
<
GoblinStoreMgtCouponAddGoods
>
skuParamList
;
@ApiModelProperty
(
position
=
21
,
required
=
false
,
value
=
"适用
SPUID
集合LIST"
)
private
List
<
String
>
spuIdList
;
//
private List<GoblinStoreMgtCouponAddGoods> skuParamList;
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtCouponController.java
View file @
715c622d
...
...
@@ -25,6 +25,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
@ApiSupport
(
order
=
149006
)
@Api
(
tags
=
"商铺活动:优惠券管理"
)
...
...
@@ -42,7 +43,9 @@ public class GoblinStoreMgtCouponController {
@ApiOperation
(
value
=
"优惠券列表"
)
@PostMapping
(
"list"
)
public
ResponseDto
<
PagedResult
<
GoblinStoreMgtCouponListVo
>>
list
(
@Valid
@RequestBody
GoblinStoreMgtCouponFilterParam
mgtCouponFilterParam
)
{
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商铺活动:优惠券列表:[mgtCouponFilterParam={}]"
,
JsonUtils
.
toJson
(
mgtCouponFilterParam
));
}
return
ResponseDto
.
success
();
}
...
...
@@ -50,6 +53,9 @@ public class GoblinStoreMgtCouponController {
@ApiOperation
(
value
=
"优惠券导出"
,
notes
=
"#以POST模拟FORM表单请求该接口"
)
@PostMapping
(
"export"
)
public
void
export
(
@Valid
GoblinStoreMgtCouponFilterParam
mgtCouponFilterParam
)
{
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商铺活动:优惠券导出:[mgtCouponFilterParam={}]"
,
JsonUtils
.
toJson
(
mgtCouponFilterParam
));
}
}
@ApiOperationSupport
(
order
=
3
)
...
...
@@ -85,7 +91,9 @@ public class GoblinStoreMgtCouponController {
@ApiOperation
(
value
=
"新增优惠券"
)
@PutMapping
(
"add"
)
public
ResponseDto
<
Object
>
add
(
@Valid
@RequestBody
GoblinStoreMgtCouponAddParam
mgtCouponAddParam
)
{
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商铺活动:新增优惠券:[mgtCouponAddParam={}]"
,
JsonUtils
.
toJson
(
mgtCouponAddParam
));
}
return
ResponseDto
.
success
();
}
...
...
@@ -93,7 +101,7 @@ public class GoblinStoreMgtCouponController {
@ApiOperation
(
value
=
"优惠券详情"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"storeId"
,
value
=
"店铺ID"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"s
pu
Id"
,
value
=
"优惠券ID"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"s
toreCoupon
Id"
,
value
=
"优惠券ID"
),
})
@GetMapping
(
"info"
)
public
ResponseDto
<
GoblinStoreMgtCouponInfoVo
>
info
(
@NotBlank
(
message
=
"店铺ID不能为空"
)
@RequestParam
String
storeId
,
...
...
@@ -102,7 +110,7 @@ public class GoblinStoreMgtCouponController {
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"149002"
));
}
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商
品管理:SPU详情:[storeId={},spu
Id={}]"
,
storeId
,
storeCouponId
);
log
.
debug
(
"商
铺活动:优惠券详情:[storeId={},storeCoupon
Id={}]"
,
storeId
,
storeCouponId
);
}
return
ResponseDto
.
success
();
}
...
...
@@ -110,8 +118,23 @@ public class GoblinStoreMgtCouponController {
@ApiOperationSupport
(
order
=
6
)
@ApiOperation
(
value
=
"优惠券编辑"
,
notes
=
"只修改基本信息,不包含发放设置修改"
)
@PostMapping
(
"edit"
)
public
ResponseDto
<
Object
>
editSpu
(
@Valid
@RequestBody
GoblinStoreMgtCouponAddParam
mgtCouponEditParam
)
{
public
ResponseDto
<
Object
>
edit
(
@Valid
@RequestBody
GoblinStoreMgtCouponAddParam
mgtCouponEditParam
)
{
log
.
info
(
"商铺活动:优惠券编辑:[mgtCouponEditParam={}]"
,
JsonUtils
.
toJson
(
mgtCouponEditParam
));
return
ResponseDto
.
success
();
}
@ApiOperationSupport
(
order
=
7
)
@ApiOperation
(
value
=
"优惠券库存编辑"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"storeId"
,
value
=
"店铺ID"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"storeCouponId"
,
value
=
"优惠券ID"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"Integer"
,
name
=
"stock"
,
value
=
"增减库存"
),
})
@PostMapping
(
"edit_stock"
)
public
ResponseDto
<
Object
>
editStock
(
@NotBlank
(
message
=
"店铺ID不能为空"
)
@RequestParam
String
storeId
,
@NotBlank
(
message
=
"优惠券ID不能为空"
)
@RequestParam
String
storeCouponId
,
@NotNull
(
message
=
"增减库存值不能为空"
)
@RequestParam
Integer
stock
)
{
log
.
info
(
"商铺活动:优惠券库存编辑:[storeId={},storeCouponId={},stock={}]"
,
storeId
,
storeCouponId
,
stock
);
return
ResponseDto
.
success
();
}
}
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