mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2025-12-25 23:56:20 +08:00
Schema required 替换成 requiredMode
This commit is contained in:
parent
365a75d127
commit
dcf4640b33
@ -61,7 +61,7 @@ public class OrderParam {
|
|||||||
|
|
||||||
```java
|
```java
|
||||||
public class OrderParam {
|
public class OrderParam {
|
||||||
@Schema(description = "地址ID,0为默认地址" ,required=true)
|
@Schema(description = "地址ID,0为默认地址" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotNull(message = "地址不能为空")
|
@NotNull(message = "地址不能为空")
|
||||||
private Long addrId;
|
private Long addrId;
|
||||||
|
|
||||||
|
|||||||
@ -21,16 +21,16 @@ import lombok.Data;
|
|||||||
@Data
|
@Data
|
||||||
public class CategoryDto {
|
public class CategoryDto {
|
||||||
|
|
||||||
@Schema(description = "分类id" ,required=true)
|
@Schema(description = "分类id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long categoryId;
|
private Long categoryId;
|
||||||
|
|
||||||
@Schema(description = "分类父id" ,required=true)
|
@Schema(description = "分类父id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long parentId;
|
private Long parentId;
|
||||||
|
|
||||||
@Schema(description = "分类名称" ,required=true)
|
@Schema(description = "分类名称" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String categoryName;
|
private String categoryName;
|
||||||
|
|
||||||
@Schema(description = "分类图片" ,required=true)
|
@Schema(description = "分类图片" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@JsonSerialize(using = ImgJsonSerializer.class)
|
@JsonSerialize(using = ImgJsonSerializer.class)
|
||||||
private String pic;
|
private String pic;
|
||||||
|
|
||||||
|
|||||||
@ -21,16 +21,16 @@ import java.util.List;
|
|||||||
@Data
|
@Data
|
||||||
public class DeliveryDto {
|
public class DeliveryDto {
|
||||||
|
|
||||||
@Schema(description = "物流公司名称" ,required=true)
|
@Schema(description = "物流公司名称" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String companyName;
|
private String companyName;
|
||||||
|
|
||||||
@Schema(description = "物流公司官网" ,required=true)
|
@Schema(description = "物流公司官网" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String companyHomeUrl;
|
private String companyHomeUrl;
|
||||||
|
|
||||||
@Schema(description = "物流订单号" ,required=true)
|
@Schema(description = "物流订单号" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String dvyFlowId;
|
private String dvyFlowId;
|
||||||
|
|
||||||
@Schema(description = "查询出的物流信息" ,required=true)
|
@Schema(description = "查询出的物流信息" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private List<DeliveryInfoDto> data;
|
private List<DeliveryInfoDto> data;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,15 +19,15 @@ import lombok.Data;
|
|||||||
@Data
|
@Data
|
||||||
public class DeliveryInfoDto {
|
public class DeliveryInfoDto {
|
||||||
|
|
||||||
@Schema(description = "详细信息" ,required=true)
|
@Schema(description = "详细信息" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String context;
|
private String context;
|
||||||
|
|
||||||
private String ftime;
|
private String ftime;
|
||||||
|
|
||||||
@Schema(description = "快递所在区域" ,required=true)
|
@Schema(description = "快递所在区域" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String location;
|
private String location;
|
||||||
|
|
||||||
@Schema(description = "物流更新时间" ,required=true)
|
@Schema(description = "物流更新时间" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String time;
|
private String time;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,16 +22,16 @@ import java.util.List;
|
|||||||
@Schema(description = "我的订单")
|
@Schema(description = "我的订单")
|
||||||
public class MyOrderDto {
|
public class MyOrderDto {
|
||||||
|
|
||||||
@Schema(description = "订单项" ,required=true)
|
@Schema(description = "订单项" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private List<MyOrderItemDto> orderItemDtos;
|
private List<MyOrderItemDto> orderItemDtos;
|
||||||
|
|
||||||
@Schema(description = "订单号" ,required=true)
|
@Schema(description = "订单号" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String orderNumber;
|
private String orderNumber;
|
||||||
|
|
||||||
@Schema(description = "总价" ,required=true)
|
@Schema(description = "总价" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double actualTotal;
|
private Double actualTotal;
|
||||||
|
|
||||||
@Schema(description = "订单状态" ,required=true)
|
@Schema(description = "订单状态" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,7 @@ import lombok.Data;
|
|||||||
@Data
|
@Data
|
||||||
public class OrderNumbersDto {
|
public class OrderNumbersDto {
|
||||||
|
|
||||||
@Schema(description = "多个订单号拼接的字符串" ,required=true)
|
@Schema(description = "多个订单号拼接的字符串" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String orderNumbers;
|
private String orderNumbers;
|
||||||
|
|
||||||
public OrderNumbersDto(String orderNumbers) {
|
public OrderNumbersDto(String orderNumbers) {
|
||||||
|
|||||||
@ -26,32 +26,32 @@ import java.util.List;
|
|||||||
@Data
|
@Data
|
||||||
public class ProductItemDto implements Serializable {
|
public class ProductItemDto implements Serializable {
|
||||||
|
|
||||||
@Schema(description = "产品名称" ,required=true)
|
@Schema(description = "产品名称" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String prodName;
|
private String prodName;
|
||||||
|
|
||||||
@Schema(description = "产品个数" ,required=true)
|
@Schema(description = "产品个数" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer prodCount;
|
private Integer prodCount;
|
||||||
|
|
||||||
@Schema(description = "产品图片路径" ,required=true)
|
@Schema(description = "产品图片路径" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@JsonSerialize(using = ImgJsonSerializer.class)
|
@JsonSerialize(using = ImgJsonSerializer.class)
|
||||||
private String pic;
|
private String pic;
|
||||||
|
|
||||||
@Schema(description = "产品价格" ,required=true)
|
@Schema(description = "产品价格" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double price;
|
private Double price;
|
||||||
|
|
||||||
@Schema(description = "商品总金额" ,required=true)
|
@Schema(description = "商品总金额" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double productTotalAmount;
|
private Double productTotalAmount;
|
||||||
|
|
||||||
@Schema(description = "产品ID" ,required=true)
|
@Schema(description = "产品ID" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long prodId;
|
private Long prodId;
|
||||||
|
|
||||||
@Schema(description = "skuId" ,required=true)
|
@Schema(description = "skuId" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long skuId;
|
private Long skuId;
|
||||||
|
|
||||||
@Schema(description = "规格名称" , required = true)
|
@Schema(description = "规格名称" , required = true)
|
||||||
private String skuName;
|
private String skuName;
|
||||||
|
|
||||||
@Schema(description = "basketId" ,required=true)
|
@Schema(description = "basketId" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long basketId;
|
private Long basketId;
|
||||||
|
|
||||||
@Schema(description = "商品实际金额 = 商品总金额 - 分摊的优惠金额" )
|
@Schema(description = "商品实际金额 = 商品总金额 - 分摊的优惠金额" )
|
||||||
|
|||||||
@ -17,9 +17,9 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|||||||
public class UserDto {
|
public class UserDto {
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "用户状态:0禁用 1正常" ,required=true)
|
@Schema(description = "用户状态:0禁用 1正常" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer status;
|
private Integer status;
|
||||||
@Schema(description = "token" ,required=true)
|
@Schema(description = "token" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String token;
|
private String token;
|
||||||
|
|
||||||
public Integer getStatus() {
|
public Integer getStatus() {
|
||||||
|
|||||||
@ -20,46 +20,46 @@ import jakarta.validation.constraints.NotNull;
|
|||||||
@Schema(description = "地址参数")
|
@Schema(description = "地址参数")
|
||||||
public class AddrParam {
|
public class AddrParam {
|
||||||
|
|
||||||
@Schema(description = "地址ID" ,required=true)
|
@Schema(description = "地址ID" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long addrId;
|
private Long addrId;
|
||||||
|
|
||||||
@NotNull(message = "收货人不能为空")
|
@NotNull(message = "收货人不能为空")
|
||||||
@Schema(description = "收货人" ,required=true)
|
@Schema(description = "收货人" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String receiver;
|
private String receiver;
|
||||||
|
|
||||||
@NotNull(message = "地址不能为空")
|
@NotNull(message = "地址不能为空")
|
||||||
@Schema(description = "地址" ,required=true)
|
@Schema(description = "地址" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String addr;
|
private String addr;
|
||||||
|
|
||||||
@Schema(description = "邮编" ,required=false)
|
@Schema(description = "邮编" ,required=false)
|
||||||
private String postCode;
|
private String postCode;
|
||||||
|
|
||||||
@NotNull(message = "手机不能为空")
|
@NotNull(message = "手机不能为空")
|
||||||
@Schema(description = "手机" ,required=true)
|
@Schema(description = "手机" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|
||||||
@NotNull(message = "省ID不能为空")
|
@NotNull(message = "省ID不能为空")
|
||||||
@Schema(description = "省ID" ,required=true)
|
@Schema(description = "省ID" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long provinceId;
|
private Long provinceId;
|
||||||
|
|
||||||
@NotNull(message = "城市ID不能为空")
|
@NotNull(message = "城市ID不能为空")
|
||||||
@Schema(description = "城市ID" ,required=true)
|
@Schema(description = "城市ID" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long cityId;
|
private Long cityId;
|
||||||
|
|
||||||
@NotNull(message = "区ID不能为空")
|
@NotNull(message = "区ID不能为空")
|
||||||
@Schema(description = "区ID" ,required=true)
|
@Schema(description = "区ID" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long areaId;
|
private Long areaId;
|
||||||
|
|
||||||
@NotNull(message = "省不能为空")
|
@NotNull(message = "省不能为空")
|
||||||
@Schema(description = "省" ,required=true)
|
@Schema(description = "省" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String province;
|
private String province;
|
||||||
|
|
||||||
@NotNull(message = "城市不能为空")
|
@NotNull(message = "城市不能为空")
|
||||||
@Schema(description = "城市" ,required=true)
|
@Schema(description = "城市" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String city;
|
private String city;
|
||||||
|
|
||||||
@NotNull(message = "区不能为空")
|
@NotNull(message = "区不能为空")
|
||||||
@Schema(description = "区" ,required=true)
|
@Schema(description = "区" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String area;
|
private String area;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,11 +18,11 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|||||||
@Schema(description = "登陆参数")
|
@Schema(description = "登陆参数")
|
||||||
public class LoginParam {
|
public class LoginParam {
|
||||||
|
|
||||||
@Schema(description = "小程序登陆时返回的code(使用code登陆必填)" ,required=true)
|
@Schema(description = "小程序登陆时返回的code(使用code登陆必填)" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String code;
|
private String code;
|
||||||
@Schema(description = "登陆时的用户名(账号密码登陆必填)" ,required=true)
|
@Schema(description = "登陆时的用户名(账号密码登陆必填)" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String mobile;
|
private String mobile;
|
||||||
@Schema(description = "登陆时的密码(账号密码登陆必填)" ,required=true)
|
@Schema(description = "登陆时的密码(账号密码登陆必填)" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
public String getCode() {
|
public String getCode() {
|
||||||
|
|||||||
@ -24,20 +24,20 @@ import jakarta.validation.constraints.NotNull;
|
|||||||
public class OrderItemParam {
|
public class OrderItemParam {
|
||||||
|
|
||||||
@NotNull(message = "产品ID不能为空")
|
@NotNull(message = "产品ID不能为空")
|
||||||
@Schema(description = "产品ID" ,required=true)
|
@Schema(description = "产品ID" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long prodId;
|
private Long prodId;
|
||||||
|
|
||||||
@NotNull(message = "skuId不能为空")
|
@NotNull(message = "skuId不能为空")
|
||||||
@Schema(description = "skuId" ,required=true)
|
@Schema(description = "skuId" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long skuId;
|
private Long skuId;
|
||||||
|
|
||||||
@NotNull(message = "产品数量不能为空")
|
@NotNull(message = "产品数量不能为空")
|
||||||
@Min(value = 1,message = "产品数量不能为空")
|
@Min(value = 1,message = "产品数量不能为空")
|
||||||
@Schema(description = "产品数量" ,required=true)
|
@Schema(description = "产品数量" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer prodCount;
|
private Integer prodCount;
|
||||||
|
|
||||||
@NotNull(message = "店铺id不能为空")
|
@NotNull(message = "店铺id不能为空")
|
||||||
@Schema(description = "店铺id" ,required=true)
|
@Schema(description = "店铺id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long shopId;
|
private Long shopId;
|
||||||
|
|
||||||
@Schema(description = "推广员使用的推销卡号" )
|
@Schema(description = "推广员使用的推销卡号" )
|
||||||
|
|||||||
@ -30,7 +30,7 @@ public class OrderParam {
|
|||||||
@Schema(description = "立即购买时提交的商品项" )
|
@Schema(description = "立即购买时提交的商品项" )
|
||||||
private OrderItemParam orderItem;
|
private OrderItemParam orderItem;
|
||||||
|
|
||||||
@Schema(description = "地址ID,0为默认地址" ,required=true)
|
@Schema(description = "地址ID,0为默认地址" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotNull(message = "地址不能为空")
|
@NotNull(message = "地址不能为空")
|
||||||
private Long addrId;
|
private Long addrId;
|
||||||
|
|
||||||
|
|||||||
@ -18,13 +18,13 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|||||||
public class OrderShopParam {
|
public class OrderShopParam {
|
||||||
|
|
||||||
/** 店铺ID **/
|
/** 店铺ID **/
|
||||||
@Schema(description = "店铺id" ,required=true)
|
@Schema(description = "店铺id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long shopId;
|
private Long shopId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单备注信息
|
* 订单备注信息
|
||||||
*/
|
*/
|
||||||
@Schema(description = "订单备注信息" ,required=true)
|
@Schema(description = "订单备注信息" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String remarks;
|
private String remarks;
|
||||||
|
|
||||||
public Long getShopId() {
|
public Long getShopId() {
|
||||||
|
|||||||
@ -25,14 +25,14 @@ public class PayParam {
|
|||||||
* 订单号
|
* 订单号
|
||||||
*/
|
*/
|
||||||
@NotBlank(message="订单号不能为空")
|
@NotBlank(message="订单号不能为空")
|
||||||
@Schema(description = "订单号" ,required=true)
|
@Schema(description = "订单号" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String orderNumbers;
|
private String orderNumbers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付方式
|
* 支付方式
|
||||||
*/
|
*/
|
||||||
@NotNull(message="支付方式不能为空")
|
@NotNull(message="支付方式不能为空")
|
||||||
@Schema(description = "支付方式 (1:微信支付 2:支付宝)" ,required=true)
|
@Schema(description = "支付方式 (1:微信支付 2:支付宝)" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer payType;
|
private Integer payType;
|
||||||
|
|
||||||
public Integer getPayType() {
|
public Integer getPayType() {
|
||||||
|
|||||||
@ -35,11 +35,11 @@ public class ProdCommParam {
|
|||||||
/**
|
/**
|
||||||
* 评价,0-5分
|
* 评价,0-5分
|
||||||
*/
|
*/
|
||||||
@Schema(description = "评价,0-5分" ,required=true)
|
@Schema(description = "评价,0-5分" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotNull(message = "评价不能为空")
|
@NotNull(message = "评价不能为空")
|
||||||
private Integer score;
|
private Integer score;
|
||||||
|
|
||||||
@Schema(description = "评论内容" ,required=true)
|
@Schema(description = "评论内容" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
@Schema(description = "评论图片, 用逗号分隔" )
|
@Schema(description = "评论图片, 用逗号分隔" )
|
||||||
|
|||||||
@ -21,6 +21,6 @@ import java.util.List;
|
|||||||
@Data
|
@Data
|
||||||
@Schema(description = "提交订单参数")
|
@Schema(description = "提交订单参数")
|
||||||
public class SubmitOrderParam {
|
public class SubmitOrderParam {
|
||||||
@Schema(description = "每个店铺提交的订单信息" ,required=true)
|
@Schema(description = "每个店铺提交的订单信息" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private List<OrderShopParam> orderShopParam;
|
private List<OrderShopParam> orderShopParam;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,16 +27,16 @@ import java.util.List;
|
|||||||
public class Area implements Serializable {
|
public class Area implements Serializable {
|
||||||
private static final long serialVersionUID = -6013320537436191451L;
|
private static final long serialVersionUID = -6013320537436191451L;
|
||||||
@TableId
|
@TableId
|
||||||
@Schema(description = "地区id" ,required=true)
|
@Schema(description = "地区id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long areaId;
|
private Long areaId;
|
||||||
|
|
||||||
@Schema(description = "地区名称" ,required=true)
|
@Schema(description = "地区名称" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String areaName;
|
private String areaName;
|
||||||
|
|
||||||
@Schema(description = "地区上级id" ,required=true)
|
@Schema(description = "地区上级id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long parentId;
|
private Long parentId;
|
||||||
|
|
||||||
@Schema(description = "地区层级" ,required=true)
|
@Schema(description = "地区层级" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer level;
|
private Integer level;
|
||||||
|
|
||||||
@TableField(exist=false)
|
@TableField(exist=false)
|
||||||
|
|||||||
@ -29,46 +29,46 @@ public class Transfee implements Serializable {
|
|||||||
* 运费项id
|
* 运费项id
|
||||||
*/
|
*/
|
||||||
@TableId
|
@TableId
|
||||||
@Schema(description = "运费项id" ,required=true)
|
@Schema(description = "运费项id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long transfeeId;
|
private Long transfeeId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运费模板id
|
* 运费模板id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "运费模板id" ,required=true)
|
@Schema(description = "运费模板id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long transportId;
|
private Long transportId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 续件数量
|
* 续件数量
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "续件数量" ,required=true)
|
@Schema(description = "续件数量" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double continuousPiece;
|
private Double continuousPiece;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 首件数量
|
* 首件数量
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "首件数量" ,required=true)
|
@Schema(description = "首件数量" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double firstPiece;
|
private Double firstPiece;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 续件费用
|
* 续件费用
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "续件费用" ,required=true)
|
@Schema(description = "续件费用" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double continuousFee;
|
private Double continuousFee;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 首件费用
|
* 首件费用
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "首件费用" ,required=true)
|
@Schema(description = "首件费用" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double firstFee;
|
private Double firstFee;
|
||||||
|
|
||||||
@TableField(exist=false)
|
@TableField(exist=false)
|
||||||
@Schema(description = "指定条件运费城市项" ,required=true)
|
@Schema(description = "指定条件运费城市项" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private List<Area> cityList;
|
private List<Area> cityList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,39 +29,39 @@ public class TransfeeFree implements Serializable {
|
|||||||
* 指定条件包邮项id
|
* 指定条件包邮项id
|
||||||
*/
|
*/
|
||||||
@TableId
|
@TableId
|
||||||
@Schema(description = "指定条件包邮项id" ,required=true)
|
@Schema(description = "指定条件包邮项id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long transfeeFreeId;
|
private Long transfeeFreeId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运费模板id
|
* 运费模板id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "运费模板id" ,required=true)
|
@Schema(description = "运费模板id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long transportId;
|
private Long transportId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 包邮方式 (0 满x件/重量/体积包邮 1满金额包邮 2满x件/重量/体积且满金额包邮)
|
* 包邮方式 (0 满x件/重量/体积包邮 1满金额包邮 2满x件/重量/体积且满金额包邮)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "包邮方式 (0 满x件/重量/体积包邮 1满金额包邮 2满x件/重量/体积且满金额包邮)" ,required=true)
|
@Schema(description = "包邮方式 (0 满x件/重量/体积包邮 1满金额包邮 2满x件/重量/体积且满金额包邮)" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer freeType;
|
private Integer freeType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 需满金额
|
* 需满金额
|
||||||
*/
|
*/
|
||||||
@Schema(description = "需满金额" ,required=true)
|
@Schema(description = "需满金额" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double amount;
|
private Double amount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 包邮x件/重量/体积
|
* 包邮x件/重量/体积
|
||||||
*/
|
*/
|
||||||
@Schema(description = "包邮x件/重量/体积" ,required=true)
|
@Schema(description = "包邮x件/重量/体积" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Double piece;
|
private Double piece;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定条件包邮城市项
|
* 指定条件包邮城市项
|
||||||
*/
|
*/
|
||||||
@TableField(exist=false)
|
@TableField(exist=false)
|
||||||
@Schema(description = "指定条件包邮城市项" ,required=true)
|
@Schema(description = "指定条件包邮城市项" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private List<Area> freeCityList;
|
private List<Area> freeCityList;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,14 +33,14 @@ public class Transport implements Serializable {
|
|||||||
* 运费模板id
|
* 运费模板id
|
||||||
*/
|
*/
|
||||||
@TableId
|
@TableId
|
||||||
@Schema(description = "运费模板id" ,required=true)
|
@Schema(description = "运费模板id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long transportId;
|
private Long transportId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运费模板名称
|
* 运费模板名称
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "运费模板名称" ,required=true)
|
@Schema(description = "运费模板名称" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String transName;
|
private String transName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -48,48 +48,48 @@ public class Transport implements Serializable {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Schema(description = "创建时间" ,required=true)
|
@Schema(description = "创建时间" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 店铺id
|
* 店铺id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Schema(description = "店铺id" ,required=true)
|
@Schema(description = "店铺id" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long shopId;
|
private Long shopId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参考 TransportChargeType
|
* 参考 TransportChargeType
|
||||||
* 收费方式(0 按件数,1 按重量 2 按体积)
|
* 收费方式(0 按件数,1 按重量 2 按体积)
|
||||||
*/
|
*/
|
||||||
@Schema(description = "收费方式(0 按件数,1 按重量 2 按体积)" ,required=true)
|
@Schema(description = "收费方式(0 按件数,1 按重量 2 按体积)" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer chargeType;
|
private Integer chargeType;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否包邮 0:不包邮 1:包邮
|
* 是否包邮 0:不包邮 1:包邮
|
||||||
*/
|
*/
|
||||||
@Schema(description = "是否包邮 0:不包邮 1:包邮" ,required=true)
|
@Schema(description = "是否包邮 0:不包邮 1:包邮" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer isFreeFee;
|
private Integer isFreeFee;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否含有包邮条件
|
* 是否含有包邮条件
|
||||||
*/
|
*/
|
||||||
@Schema(description = "是否含有包邮条件" ,required=true)
|
@Schema(description = "是否含有包邮条件" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Integer hasFreeCondition;
|
private Integer hasFreeCondition;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定条件包邮项
|
* 指定条件包邮项
|
||||||
*/
|
*/
|
||||||
@TableField(exist=false)
|
@TableField(exist=false)
|
||||||
@Schema(description = "指定条件包邮项" ,required=true)
|
@Schema(description = "指定条件包邮项" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private List<TransfeeFree> transfeeFrees;
|
private List<TransfeeFree> transfeeFrees;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运费项
|
* 运费项
|
||||||
*/
|
*/
|
||||||
@TableField(exist=false)
|
@TableField(exist=false)
|
||||||
@Schema(description = "运费项" ,required=true)
|
@Schema(description = "运费项" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private List<Transfee> transfees;
|
private List<Transfee> transfees;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,15 +20,15 @@ import jakarta.validation.constraints.NotBlank;
|
|||||||
public class DeliveryOrderParam {
|
public class DeliveryOrderParam {
|
||||||
|
|
||||||
@NotBlank(message="订单号不能为空")
|
@NotBlank(message="订单号不能为空")
|
||||||
@Schema(description = "订单号" ,required=true)
|
@Schema(description = "订单号" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String orderNumber;
|
private String orderNumber;
|
||||||
|
|
||||||
@NotBlank(message="快递公司id不能为空")
|
@NotBlank(message="快递公司id不能为空")
|
||||||
@Schema(description = "快递公司" ,required=true)
|
@Schema(description = "快递公司" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Long dvyId;
|
private Long dvyId;
|
||||||
|
|
||||||
@NotBlank(message="物流单号不能为空")
|
@NotBlank(message="物流单号不能为空")
|
||||||
@Schema(description = "物流单号" ,required=true)
|
@Schema(description = "物流单号" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String dvyFlowId;
|
private String dvyFlowId;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -24,11 +24,11 @@ public class UpdatePasswordDto {
|
|||||||
|
|
||||||
@NotBlank(message="旧密码不能为空")
|
@NotBlank(message="旧密码不能为空")
|
||||||
@Size(max = 50)
|
@Size(max = 50)
|
||||||
@Schema(description = "旧密码" ,required=true)
|
@Schema(description = "旧密码" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@NotBlank(message="新密码不能为空")
|
@NotBlank(message="新密码不能为空")
|
||||||
@Size(max = 50)
|
@Size(max = 50)
|
||||||
@Schema(description = "新密码" ,required=true)
|
@Schema(description = "新密码" ,requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String newPassword;
|
private String newPassword;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user