You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
171 lines
3.7 KiB
171 lines
3.7 KiB
package cn.sliyun.api.coin.entity;
|
|
|
|
import cn.sliyun.common.utils.AliyunOSSUtil;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
|
import javax.validation.constraints.DecimalMin;
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotNull;
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
import java.time.LocalDateTime;
|
|
|
|
/**
|
|
* <p>
|
|
* 算力包
|
|
* </p>
|
|
*
|
|
* @author Enoch
|
|
* @since 2021-03-01
|
|
*/
|
|
@TableName("sly_coin_package")
|
|
public class CoinPackage implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/**
|
|
* 主键id
|
|
*/
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
private Long id;
|
|
|
|
/**
|
|
* 包名称
|
|
*/
|
|
@NotBlank(message = "算力包名称不能为空")
|
|
private String title;
|
|
|
|
/**
|
|
* 单价
|
|
*/
|
|
@DecimalMin(value = "1", message = "算力包单价必须大0")
|
|
@NotNull(message = "算力包单价必须大0")
|
|
private BigDecimal price;
|
|
|
|
/**
|
|
* 算力包 单位数量
|
|
*/
|
|
@NotNull(message = "算力包单位数量不能为空")
|
|
private Integer number;
|
|
|
|
/**
|
|
* 最小时间
|
|
*/
|
|
private Integer duration;
|
|
|
|
/**
|
|
* 算力包单位ID
|
|
*/
|
|
@NotNull(message = "算力包名单位ID不能为空")
|
|
private Long packageUnitId;
|
|
|
|
/**
|
|
* 算力包单位名称
|
|
*/
|
|
@NotBlank(message = "算力包单位名称不能为空")
|
|
private String packageUnitName;
|
|
|
|
/**
|
|
* 创建时间
|
|
*/
|
|
private LocalDateTime createTime;
|
|
|
|
/**
|
|
* 更新时间
|
|
*/
|
|
private LocalDateTime updateTime;
|
|
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
|
|
public BigDecimal getPrice() {
|
|
return price;
|
|
}
|
|
|
|
public void setPrice(BigDecimal price) {
|
|
this.price = price;
|
|
}
|
|
|
|
|
|
public Long getPackageUnitId() {
|
|
return packageUnitId;
|
|
}
|
|
|
|
public void setPackageUnitId(Long packageUnitId) {
|
|
this.packageUnitId = packageUnitId;
|
|
}
|
|
|
|
public String getPackageUnitName() {
|
|
return packageUnitName;
|
|
}
|
|
|
|
public void setPackageUnitName(String packageUnitName) {
|
|
this.packageUnitName = packageUnitName;
|
|
}
|
|
|
|
public LocalDateTime getCreateTime() {
|
|
return createTime;
|
|
}
|
|
|
|
public void setCreateTime(LocalDateTime createTime) {
|
|
this.createTime = createTime;
|
|
}
|
|
|
|
public LocalDateTime getUpdateTime() {
|
|
return updateTime;
|
|
}
|
|
|
|
public void setUpdateTime(LocalDateTime updateTime) {
|
|
this.updateTime = updateTime;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public Integer getNumber() {
|
|
return number;
|
|
}
|
|
|
|
public void setNumber(Integer number) {
|
|
this.number = number;
|
|
}
|
|
|
|
public Integer getDuration() {
|
|
return duration;
|
|
}
|
|
|
|
public void setDuration(Integer duration) {
|
|
this.duration = duration;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "CoinPackage{" +
|
|
"id=" + id +
|
|
", title='" + title + '\'' +
|
|
", price=" + price +
|
|
", number=" + number +
|
|
", duration=" + duration +
|
|
", packageUnitId=" + packageUnitId +
|
|
", packageUnitName='" + packageUnitName + '\'' +
|
|
", createTime=" + createTime +
|
|
", updateTime=" + updateTime +
|
|
'}';
|
|
}
|
|
}
|
|
|