- 增加后台管理操作vo

This commit is contained in:
sin 2019-03-24 11:37:53 +08:00
parent c848d63775
commit 909086526a
3 changed files with 376 additions and 0 deletions

View File

@ -0,0 +1,91 @@
package cn.iocoder.mall.order.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
/**
* 订单 item 更新
*
* @author Sin
* @time 2019-03-24 11:16
*/
@ApiModel("订单item更新")
public class OrderItemUpdateVO implements Serializable {
/**
* 编号
*/
@NotNull(message = "id不能为空!")
@ApiModelProperty("编号(orderItemId)")
private Integer id;
/**
* 商品编号
*/
@NotNull(message = "商品id不能为空!")
@ApiModelProperty("商品id")
private Integer skuId;
/**
* 数量
*/
@NotNull(message = "数量不能为空!")
@Size(max = 9999, min = 1, message = "商品数量 1 ~ 9999")
@ApiModelProperty("商品数量")
private Integer quantity;
/**
* 金额()
*/
@NotNull(message = "商品金额")
@Size(max = 99999999, min = 0, message = "商品金额 0 ~ 99999999")
@ApiModelProperty("商品金额")
private Integer price;
@Override
public String toString() {
return "OrderItemUpdateVO{" +
"id=" + id +
", skuId=" + skuId +
", quantity=" + quantity +
", price=" + price +
'}';
}
public Integer getId() {
return id;
}
public OrderItemUpdateVO setId(Integer id) {
this.id = id;
return this;
}
public Integer getSkuId() {
return skuId;
}
public OrderItemUpdateVO setSkuId(Integer skuId) {
this.skuId = skuId;
return this;
}
public Integer getQuantity() {
return quantity;
}
public OrderItemUpdateVO setQuantity(Integer quantity) {
this.quantity = quantity;
return this;
}
public Integer getPrice() {
return price;
}
public OrderItemUpdateVO setPrice(Integer price) {
this.price = price;
return this;
}
}

View File

@ -0,0 +1,122 @@
package cn.iocoder.mall.order.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
/**
* 订单物流
*
* @author Sin
* @time 2019-03-24 11:01
*/
@ApiModel("订单物流信息")
public class OrderLogisticsVO implements Serializable {
/**
* 订单 id
*/
@NotNull(message = "订单id不能为空!")
@ApiModelProperty("物流id")
private Integer id;
/**
* 收件区域编号
*/
@NotNull(message = "区域编号不能为空!")
@ApiModelProperty("区域编号")
private String areaNo;
/**
* 收件人名称
*/
@NotNull(message = "收件人姓名不能为空!")
@ApiModelProperty("收件人姓名")
private String name;
/**
* 收件手机号
*/
@NotNull(message = "手机号不能为空!")
@Size(max = 11, min = 11, message = "手机号在11位!")
@ApiModelProperty("手机号")
private String mobile;
/**
* 收件详细地址
*/
@NotNull(message = "收件详细地址不能为空")
@Size(max = 250, min = 5, message = "收件地址应该在 5 ~ 250 个字符之间")
@ApiModelProperty("手机地址")
private String address;
/**
* 物流编号
*/
@ApiModelProperty("物流订号")
private String logisticsNo;
@Override
public String toString() {
return "OrderLogisticsVO{" +
"id=" + id +
", areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
", logisticsNo='" + logisticsNo + '\'' +
'}';
}
public Integer getId() {
return id;
}
public OrderLogisticsVO setId(Integer id) {
this.id = id;
return this;
}
public String getAreaNo() {
return areaNo;
}
public OrderLogisticsVO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public OrderLogisticsVO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public OrderLogisticsVO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public OrderLogisticsVO setAddress(String address) {
this.address = address;
return this;
}
public String getLogisticsNo() {
return logisticsNo;
}
public OrderLogisticsVO setLogisticsNo(String logisticsNo) {
this.logisticsNo = logisticsNo;
return this;
}
}

View File

@ -0,0 +1,163 @@
package cn.iocoder.mall.order.vo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
* 订单 page 查询 vo
*
* @author Sin
* @time 2019-03-24 10:40
*/
@ApiModel("订单查询")
public class OrderPageQueryVO implements Serializable {
/**
* id
*/
@ApiModelProperty("订单id")
private Integer id;
/**
* 订单号
*/
@ApiModelProperty("订单号")
private String orderNo;
/**
* 用户 id
*/
@ApiModelProperty("用户id")
private Integer userId;
/**
* 付款时间待发货
*/
@ApiModelProperty("start付款时间")
private Date startPaymentTime;
@ApiModelProperty("end付款时间")
private Date endPaymentTime;
/**
* 创建时间
*/
@ApiModelProperty("start订单创建时间")
private Date startCreateTime;
@ApiModelProperty("end订单创建时间")
private Date endCreateTime;
/**
* 删除状态
*/
@ApiModelProperty("删除状态")
private Integer deleted;
@ApiModelProperty("分页pageNo")
private Integer pageNo;
@ApiModelProperty("每页大小")
private Integer pageSize;
@Override
public String toString() {
return "OrderPageQueryVO{" +
"id=" + id +
", orderNo='" + orderNo + '\'' +
", userId=" + userId +
", startPaymentTime=" + startPaymentTime +
", endPaymentTime=" + endPaymentTime +
", startCreateTime=" + startCreateTime +
", endCreateTime=" + endCreateTime +
", deleted=" + deleted +
", pageNo=" + pageNo +
", pageSize=" + pageSize +
'}';
}
public Integer getId() {
return id;
}
public OrderPageQueryVO setId(Integer id) {
this.id = id;
return this;
}
public String getOrderNo() {
return orderNo;
}
public OrderPageQueryVO setOrderNo(String orderNo) {
this.orderNo = orderNo;
return this;
}
public Integer getUserId() {
return userId;
}
public OrderPageQueryVO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public Date getStartPaymentTime() {
return startPaymentTime;
}
public OrderPageQueryVO setStartPaymentTime(Date startPaymentTime) {
this.startPaymentTime = startPaymentTime;
return this;
}
public Date getEndPaymentTime() {
return endPaymentTime;
}
public OrderPageQueryVO setEndPaymentTime(Date endPaymentTime) {
this.endPaymentTime = endPaymentTime;
return this;
}
public Date getStartCreateTime() {
return startCreateTime;
}
public OrderPageQueryVO setStartCreateTime(Date startCreateTime) {
this.startCreateTime = startCreateTime;
return this;
}
public Date getEndCreateTime() {
return endCreateTime;
}
public OrderPageQueryVO setEndCreateTime(Date endCreateTime) {
this.endCreateTime = endCreateTime;
return this;
}
public Integer getDeleted() {
return deleted;
}
public OrderPageQueryVO setDeleted(Integer deleted) {
this.deleted = deleted;
return this;
}
public Integer getPageNo() {
return pageNo;
}
public OrderPageQueryVO setPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
public Integer getPageSize() {
return pageSize;
}
public OrderPageQueryVO setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
}