xin
2025-05-30 b394df082b875856884d6d02cce2a43c49ad6704
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
package com.oying.modules.pc.product.domain.dto;
 
import lombok.Data;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;
 
@Data
public class ProductMerchantCreateRequest {
 
    @NotBlank
    private String barcode;
 
    @NotBlank
    private String name;
 
    @NotBlank
    private String title;
 
    @NotNull
    private Long categoryId;
 
    private Long secondCategoryId;
 
    @NotNull
    private BigDecimal price;
 
    @NotNull
    private Integer stockQuantity;
 
    private Integer minPurchaseQuantity;
 
    private Integer warnStock;
 
    @NotNull
    private Integer weight;
 
    private Integer length;
 
    private Integer width;
 
    private Integer height;
 
    private Integer allowReturns;
 
    private List<ProductImageCreateRequest> imageList;
 
    private List<ProductLabelCreateRequest> labelList;
 
}