package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
|
import java.util.Date;
|
|
/**
|
* 积分兑换商品
|
*/
|
@TableName("t_integral_goods")
|
public class IntegralGoods {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
@TableField("id")
|
private Integer id;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
private Date insertTime;
|
/**
|
* 商品名称
|
*/
|
@TableField("name")
|
private String name;
|
/**
|
* 商品图片
|
*/
|
@TableField("imgUrl")
|
private String imgUrl;
|
/**
|
* 兑换积分
|
*/
|
@TableField("integral")
|
private Integer integral;
|
/**
|
* 商品说明
|
*/
|
@TableField("instructions")
|
private String instructions;
|
/**
|
* 状态(1=正常,2=下架,3=删除)
|
*/
|
@TableField("state")
|
private Integer state;
|
/**
|
* 添加用户id
|
*/
|
@TableField("insertUserId")
|
private Integer insertUserId;
|
/**
|
* 添加用户角色
|
*/
|
@TableField("insertUserRole")
|
private Integer insertUserRole;
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public Date getInsertTime() {
|
return insertTime;
|
}
|
|
public void setInsertTime(Date insertTime) {
|
this.insertTime = insertTime;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getImgUrl() {
|
return imgUrl;
|
}
|
|
public void setImgUrl(String imgUrl) {
|
this.imgUrl = imgUrl;
|
}
|
|
public Integer getIntegral() {
|
return integral;
|
}
|
|
public void setIntegral(Integer integral) {
|
this.integral = integral;
|
}
|
|
public String getInstructions() {
|
return instructions;
|
}
|
|
public void setInstructions(String instructions) {
|
this.instructions = instructions;
|
}
|
|
public Integer getState() {
|
return state;
|
}
|
|
public void setState(Integer state) {
|
this.state = state;
|
}
|
|
public Integer getInsertUserId() {
|
return insertUserId;
|
}
|
|
public void setInsertUserId(Integer insertUserId) {
|
this.insertUserId = insertUserId;
|
}
|
|
public Integer getInsertUserRole() {
|
return insertUserRole;
|
}
|
|
public void setInsertUserRole(Integer insertUserRole) {
|
this.insertUserRole = insertUserRole;
|
}
|
|
@Override
|
public String toString() {
|
return "IntegralGoods{" +
|
"id=" + id +
|
", insertTime=" + insertTime +
|
", name='" + name + '\'' +
|
", imgUrl='" + imgUrl + '\'' +
|
", integral=" + integral +
|
", instructions='" + instructions + '\'' +
|
", state=" + state +
|
", insertUserId=" + insertUserId +
|
", insertUserRole=" + insertUserRole +
|
'}';
|
}
|
}
|