购物车:调整购物车接口

This commit is contained in:
YunaiV
2023-08-30 19:14:28 +08:00
parent 73f1636daa
commit 059202a588
9 changed files with 34 additions and 95 deletions

View File

@ -15,6 +15,8 @@ import java.time.LocalDateTime;
@Data
public class PayOrderCreateReqDTO implements Serializable {
public static final int SUBJECT_MAX_LENGTH = 32;
/**
* 应用编号
*/
@ -37,7 +39,7 @@ public class PayOrderCreateReqDTO implements Serializable {
* 商品标题
*/
@NotEmpty(message = "商品标题不能为空")
@Length(max = 32, message = "商品标题不能超过 32")
@Length(max = SUBJECT_MAX_LENGTH, message = "商品标题不能超过 32")
private String subject;
/**
* 商品描述