package com.yeshi.makemoney.app.entity.goldcorn;
|
|
import com.yeshi.makemoney.app.entity.SystemEnum;
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.util.Date;
|
|
/**
|
* @author hxh
|
* @title: GoldCornGetPrice
|
* @description: 金币价格
|
* @date 2022/3/31 18:31
|
*/
|
@Document(collection = "goldCornGetPrice")
|
public class GoldCornGetPrice {
|
@Id
|
private String id;
|
|
private SystemEnum system;
|
|
/**
|
* 获得类型
|
*/
|
private GoldCornGetType type;
|
/**
|
* 金币数量
|
*/
|
private Integer cornNum;
|
/**
|
* 生效时间
|
*/
|
private Date validateTime;
|
|
/**
|
* 备注
|
*/
|
private String remarks;
|
|
private Date createTime;
|
|
private Date updateTime;
|
|
public String toId() {
|
return system.name() + "-" + type.name()+"-"+createTime.getTime();
|
}
|
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public SystemEnum getSystem() {
|
return system;
|
}
|
|
public void setSystem(SystemEnum system) {
|
this.system = system;
|
}
|
|
public GoldCornGetType getType() {
|
return type;
|
}
|
|
public void setType(GoldCornGetType type) {
|
this.type = type;
|
}
|
|
public Integer getCornNum() {
|
return cornNum;
|
}
|
|
public void setCornNum(Integer cornNum) {
|
this.cornNum = cornNum;
|
}
|
|
public Date getValidateTime() {
|
return validateTime;
|
}
|
|
public void setValidateTime(Date validateTime) {
|
this.validateTime = validateTime;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getRemarks() {
|
return remarks;
|
}
|
|
public void setRemarks(String remarks) {
|
this.remarks = remarks;
|
}
|
}
|