package com.ruoyi.management.vo;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.ruoyi.common.core.web.domain.BaseModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 商品表
|
* </p>
|
*
|
* @author 无关风月
|
* @since 2024-04-26
|
*/
|
@Data
|
public class TGoodsVO extends BaseModel {
|
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value = "剩余数量")
|
private Long inventory;
|
/**
|
* 主键id
|
*/
|
private Integer id;
|
/**
|
* 商品名称
|
*/
|
@ApiModelProperty(value = "商品名称")
|
private String name;
|
/**
|
* 所需积分
|
*/
|
@ApiModelProperty(value = "所需积分")
|
private String integral;
|
/**
|
* 商品原价
|
*/
|
@ApiModelProperty(value = "商品原价")
|
private BigDecimal price;
|
/**
|
* 商品总数
|
*/
|
@ApiModelProperty(value = "商品总数")
|
private Integer total;
|
/**
|
* 剩余数量
|
*/
|
@ApiModelProperty(value = "剩余数量")
|
private Integer surplus;
|
/**
|
* 单个用户可兑换数量
|
*/
|
@ApiModelProperty(value = "单个用户可兑换数量")
|
private Integer userCount;
|
/**
|
* 商品类型id
|
*/
|
@ApiModelProperty(value = "商品类型id")
|
private Integer typeId;
|
/**
|
* 商品封面图
|
*/
|
@ApiModelProperty(value = "商品封面图")
|
private String coverImg;
|
/**
|
* 商品详情图片 多张逗号隔开
|
*/
|
@ApiModelProperty(value = "商品详情图片 多张逗号隔开")
|
private String detailImg;
|
/**
|
* 商品详情
|
*/
|
@ApiModelProperty(value = "商品详情")
|
private String detail;
|
/**
|
* 插入时间
|
*/
|
@ApiModelProperty(value = "插入时间")
|
private Date insertTime;
|
/**
|
* 是否删除 0否1是
|
*/
|
@ApiModelProperty(value = "是否删除 0否1是")
|
private Integer isDelete;
|
/**
|
* 兑换类型 1.0商城只有积分兑换 保留字段
|
*/
|
@ApiModelProperty(value = "前端忽略 兑换类型 1.0商城只有积分兑换 保留字段 ")
|
private Integer type;
|
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getintegral() {
|
return
|
integral;
|
}
|
|
public void setintegral(String
|
integral) {
|
this.
|
integral =
|
integral;
|
}
|
|
public BigDecimal getPrice() {
|
return price;
|
}
|
|
public void setPrice(BigDecimal price) {
|
this.price = price;
|
}
|
|
public Integer getTotal() {
|
return total;
|
}
|
|
public void setTotal(Integer total) {
|
this.total = total;
|
}
|
|
public Integer getSurplus() {
|
return surplus;
|
}
|
|
public void setSurplus(Integer surplus) {
|
this.surplus = surplus;
|
}
|
|
public Integer getUserCount() {
|
return userCount;
|
}
|
|
public void setUserCount(Integer userCount) {
|
this.userCount = userCount;
|
}
|
|
public Integer getTypeId() {
|
return typeId;
|
}
|
|
public void setTypeId(Integer typeId) {
|
this.typeId = typeId;
|
}
|
|
public String getCoverImg() {
|
return coverImg;
|
}
|
|
public void setCoverImg(String coverImg) {
|
this.coverImg = coverImg;
|
}
|
|
public String getDetailImg() {
|
return detailImg;
|
}
|
|
public void setDetailImg(String detailImg) {
|
this.detailImg = detailImg;
|
}
|
|
public String getDetail() {
|
return detail;
|
}
|
|
public void setDetail(String detail) {
|
this.detail = detail;
|
}
|
|
public Date getInsertTime() {
|
return insertTime;
|
}
|
|
public void setInsertTime(Date insertTime) {
|
this.insertTime = insertTime;
|
}
|
|
public Integer getIsDelete() {
|
return isDelete;
|
}
|
|
public void setIsDelete(Integer isDelete) {
|
this.isDelete = isDelete;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
@Override
|
public String toString() {
|
return "TGoods{" +
|
", id=" + id +
|
", name=" + name +
|
", integral=" +
|
integral +
|
", price=" + price +
|
", total=" + total +
|
", surplus=" + surplus +
|
", userCount=" + userCount +
|
", typeId=" + typeId +
|
", coverImg=" + coverImg +
|
", detailImg=" + detailImg +
|
", detail=" + detail +
|
", insertTime=" + insertTime +
|
", isDelete=" + isDelete +
|
", type=" + type +
|
"}";
|
}
|
}
|