DESKTOP-71BH0QO\L、ming
2021-04-17 f721ee13dc5f95f607bb25b09f73cae6a7123ed9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.panzhihua.common.model.dtos.shop;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.util.List;
 
/**
 * @auther lyq
 * @create 2021-04-14 15:02:14
 * @describe 订单预览请求参数
 */
@Data
@ApiModel("订单预览请求参数")
public class ComShopOrderPreviewDTO {
 
    /**
     * 提交类型(1.商品详情提交 2.购物车提交)
     */
    @ApiModelProperty(value = "提交类型(1.商品详情提交 2.购物车提交)",required = true)
    private Integer submitType;
 
    /**
     * 商品id(当提交类型为1时,此字段必填)
     */
    @ApiModelProperty(value = "商品id(当提交类型为1时,此字段必填)")
    private Long goodsId;
 
    /**
     * 商品规格id(当提交类型为1时,此字段必填)
     */
    @ApiModelProperty(value = "商品规格id(当提交类型为1时,此字段必填)")
    private Long goodsAttrId;
 
    /**
     * 购买数量(当提交类型为1时,此字段必填)
     */
    @ApiModelProperty(value = "购买数量(当提交类型为1时,此字段必填)")
    private Integer buyNum;
 
    /**
     * 购物车记录id集合(当提交类型为2时,此字段必填)
     */
    @ApiModelProperty(value = "提交类型(1.商品详情提交 2.购物车提交)")
    private List<Long> cartIds;
 
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id",hidden = true)
    private Long userId;
 
    /**
     * 提交类型(1.商品详情提交 2.购物车提交)
     */
    public interface submitType{
        int details = 1;
        int cart = 2;
    }
 
 
}