|
@@ -5,6 +5,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
|
|
+import javax.validation.constraints.Max;
|
|
|
|
|
+import javax.validation.constraints.Min;
|
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
|
import javax.validation.constraints.Pattern;
|
|
import javax.validation.constraints.Pattern;
|
|
@@ -34,6 +36,12 @@ public class PayOrderDTO {
|
|
|
@NotNull(message = "订单类型不能为空")
|
|
@NotNull(message = "订单类型不能为空")
|
|
|
private Integer orderType;
|
|
private Integer orderType;
|
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty("打包类型 0堂食 1打包")
|
|
|
|
|
+ @NotNull(message = "打包类型不能为空")
|
|
|
|
|
+ @Max(value = 1, message = "打包类型只能为0或1")
|
|
|
|
|
+ @Min(value = 0, message = "打包类型只能为0或1")
|
|
|
|
|
+ private Integer packType;
|
|
|
|
|
+
|
|
|
@ApiModelProperty("活动id")
|
|
@ApiModelProperty("活动id")
|
|
|
private Long activityId;
|
|
private Long activityId;
|
|
|
|
|
|