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
eac446b4
Commit
eac446b4
authored
Feb 09, 2022
by
macro
Browse files
接口Swagger调用参数问题修复
parent
c075e116
Changes
2
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/controller/UmsMemberCouponController.java
View file @
eac446b4
...
...
@@ -62,7 +62,7 @@ public class UmsMemberCouponController {
@ApiOperation
(
"获取登录会员购物车的相关优惠券"
)
@ApiImplicitParam
(
name
=
"type"
,
value
=
"使用可用:0->不可用;1->可用"
,
defaultValue
=
"1"
,
allowableValues
=
"0,1"
,
paramType
=
"
query
"
,
dataType
=
"integer"
)
defaultValue
=
"1"
,
allowableValues
=
"0,1"
,
paramType
=
"
path
"
,
dataType
=
"integer"
)
@RequestMapping
(
value
=
"/list/cart/{type}"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
CommonResult
<
List
<
SmsCouponHistoryDetail
>>
listCart
(
@PathVariable
Integer
type
)
{
...
...
mall-portal/src/main/java/com/macro/mall/portal/domain/CartPromotionItem.java
View file @
eac446b4
package
com.macro.mall.portal.domain
;
import
com.macro.mall.model.OmsCartItem
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.math.BigDecimal
;
...
...
@@ -8,54 +11,17 @@ import java.math.BigDecimal;
* 购物车中促销信息的封装
* Created by macro on 2018/8/27.
*/
@Getter
@Setter
public
class
CartPromotionItem
extends
OmsCartItem
{
//
促销活动信息
@ApiModelProperty
(
"
促销活动信息
"
)
private
String
promotionMessage
;
//
促销活动减去的金额,针对每个商品
@ApiModelProperty
(
"
促销活动减去的金额,针对每个商品
"
)
private
BigDecimal
reduceAmount
;
//商品的真实库存(
剩余库存-锁定库存
)
@ApiModelProperty
(
"
剩余库存-锁定库存
"
)
private
Integer
realStock
;
//
购买商品赠送积分
@ApiModelProperty
(
"
购买商品赠送积分
"
)
private
Integer
integration
;
//
购买商品赠送成长值
@ApiModelProperty
(
"
购买商品赠送成长值
"
)
private
Integer
growth
;
public
String
getPromotionMessage
()
{
return
promotionMessage
;
}
public
void
setPromotionMessage
(
String
promotionMessage
)
{
this
.
promotionMessage
=
promotionMessage
;
}
public
BigDecimal
getReduceAmount
()
{
return
reduceAmount
;
}
public
void
setReduceAmount
(
BigDecimal
reduceAmount
)
{
this
.
reduceAmount
=
reduceAmount
;
}
public
Integer
getRealStock
()
{
return
realStock
;
}
public
void
setRealStock
(
Integer
realStock
)
{
this
.
realStock
=
realStock
;
}
public
Integer
getIntegration
()
{
return
integration
;
}
public
void
setIntegration
(
Integer
integration
)
{
this
.
integration
=
integration
;
}
public
Integer
getGrowth
()
{
return
growth
;
}
public
void
setGrowth
(
Integer
growth
)
{
this
.
growth
=
growth
;
}
}
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