package com.yeshi.makemoney.app.entity.goldcorn;
|
|
import com.yeshi.makemoney.app.entity.SystemEnum;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.util.Date;
|
|
/**
|
* @author hxh
|
* @title: GoldCornGetFrequency
|
* @description: 金币获取频率设置
|
* @date 2022/3/31 18:41
|
*/
|
@Document(collection = "goldCornGetFrequencyConfig")
|
public class GoldCornGetFrequencyConfig {
|
|
enum GoldCornGetFrequencyTimeUnit {
|
hour, day, week, month, year
|
}
|
|
private String id;
|
private SystemEnum system;
|
private GoldCornGetType type;
|
/**
|
* 限制的次数,配合单位使用,表示 每一个unit周期内limitCount次限制
|
*/
|
private Integer limitCount;
|
/**
|
* 单位
|
*/
|
private GoldCornGetFrequencyTimeUnit timeUnit;
|
private Date validateTime;
|
private Date createTime;
|
private Date updateTime;
|
|
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 getLimitCount() {
|
return limitCount;
|
}
|
|
public void setLimitCount(Integer limitCount) {
|
this.limitCount = limitCount;
|
}
|
|
public GoldCornGetFrequencyTimeUnit getTimeUnit() {
|
return timeUnit;
|
}
|
|
public void setTimeUnit(GoldCornGetFrequencyTimeUnit timeUnit) {
|
this.timeUnit = timeUnit;
|
}
|
|
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;
|
}
|
}
|