1.代客下单相关接口
This commit is contained in:
@@ -8,8 +8,12 @@ import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class AddCartDTO {
|
||||
@NotEmpty
|
||||
private String masterId;
|
||||
private Integer vipUserId;
|
||||
@NotNull
|
||||
private Integer productId;
|
||||
@NotNull
|
||||
private Integer skuId;
|
||||
@NotNull
|
||||
private Integer shopId;
|
||||
|
||||
@@ -2,10 +2,14 @@ package cn.ysk.cashier.dto.shoptable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class ClearCartDTO {
|
||||
@NotEmpty
|
||||
private String masterId;
|
||||
private Integer vipUserId;
|
||||
@NotNull
|
||||
private Long tableId;
|
||||
@NotNull
|
||||
|
||||
@@ -7,6 +7,9 @@ import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class CreateOrderDTO {
|
||||
@NotEmpty
|
||||
private String masterId;
|
||||
private Integer vipUserId;
|
||||
@NotNull
|
||||
private Integer shopId;
|
||||
@NotEmpty
|
||||
|
||||
@@ -8,6 +8,9 @@ import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class PackCartDTO {
|
||||
@NotEmpty
|
||||
private String masterId;
|
||||
private Integer vipUserId;
|
||||
@NotNull
|
||||
private Integer shopId;
|
||||
@NotEmpty
|
||||
|
||||
@@ -3,6 +3,7 @@ package cn.ysk.cashier.dto.shoptable;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
|
||||
Reference in New Issue
Block a user