package com.ruoyi.goods.vo;
|
|
import com.ruoyi.goods.domain.Recipient;
|
import com.ruoyi.goods.domain.TGoods;
|
import com.ruoyi.goods.domain.TGoodsType;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* @author HJL
|
* @version 1.0
|
* @since 2024-05-22 14:48
|
*/
|
@Data
|
@ApiModel("商品详情返回信息类")
|
public class GoodDetailVO {
|
|
/**
|
* 商品信息
|
*/
|
@ApiModelProperty("商品信息")
|
private TGoods good;
|
|
/**
|
* 商品分类信息
|
*/
|
@ApiModelProperty("商品分类信息")
|
private List<TGoodsType> goodTypes;
|
|
/**
|
* 商品剩余数量
|
*/
|
@ApiModelProperty("商品剩余数量")
|
private Integer residueNumber;
|
|
/**
|
* 已兑换人数
|
*/
|
@ApiModelProperty("已兑换人数")
|
private Integer exchangeNumber;
|
|
/**
|
* 订单编号
|
*/
|
@ApiModelProperty("订单编号")
|
private String orderNumber;
|
|
/**
|
* 用户默认收货地址
|
*/
|
@ApiModelProperty("用户默认收货地址(为:null则调用获取收货地址接口)")
|
private Recipient recipient;
|
|
public GoodDetailVO(TGoods good, List<TGoodsType> goodTypes, Integer exchangeNumber, Integer residueNumber) {
|
this.good = good;
|
this.goodTypes = goodTypes;
|
this.exchangeNumber = exchangeNumber;
|
this.residueNumber = residueNumber;
|
}
|
|
public GoodDetailVO(TGoods good, Recipient recipient) {
|
this.good = good;
|
this.recipient = recipient;
|
}
|
}
|