trade:定义管理后台的订单分页接口
parent
0b9ddddd18
commit
7fc9689f07
@ -1,17 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.trade.controller.admin.base.product.property;
|
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@ApiModel("管理后台 - 商品规格 Response VO")
|
|
||||||
@Data
|
|
||||||
public class ProductPropertyRespVO {
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "属性编号", required = true, example = "1")
|
|
||||||
private Long propertyId;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "属性值编号", required = true, example = "2")
|
|
||||||
private Long valueId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
package cn.iocoder.yudao.module.trade.controller.admin.base.product.property;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@ApiModel("管理后台 - 商品规格 + 规格值的明细 Response VO")
|
||||||
|
@Data
|
||||||
|
public class ProductPropertyValueDetailRespVO {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "属性的编号", required = true, example = "1")
|
||||||
|
private Long propertyId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "属性的名称", required = true, example = "颜色")
|
||||||
|
private String propertyName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "属性值的编号", required = true, example = "1024")
|
||||||
|
private Long valueId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "属性值的名称", required = true, example = "红色")
|
||||||
|
private String valueName;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
package cn.iocoder.yudao.module.trade.controller.admin.order.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.module.trade.controller.admin.base.product.property.ProductPropertyValueDetailRespVO;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@ApiModel("管理后台 - 交易订单的分页项 Response VO")
|
||||||
|
@Data
|
||||||
|
public class TradeOrderPageItemRespVO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单项列表
|
||||||
|
*/
|
||||||
|
private List<Item> items;
|
||||||
|
|
||||||
|
@ApiModel("管理后台 - 交易订单的分页项的订单项目")
|
||||||
|
@Data
|
||||||
|
public static class Item extends TradeOrderItemBaseVO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 规格值数组
|
||||||
|
*/
|
||||||
|
private List<ProductPropertyValueDetailRespVO> properties;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.trade.controller.admin.order.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.validation.InEnum;
|
||||||
|
import cn.iocoder.yudao.module.trade.enums.order.TradeOrderStatusEnum;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@ApiModel("管理后台 - 交易订单的分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class TradeOrderPageReqVO {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "订单状态", example = "1", notes = "参见 TradeOrderStatusEnum 枚举")
|
||||||
|
@InEnum(value = TradeOrderStatusEnum.class, message = "订单状态必须是 {value}")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue