All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcIntegralLuckDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_integral_luck")
@ApiModel(value="CcIntegralLuckDO", description="CcIntegralLuck")
public class CcIntegralLuckDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 类型:1=藏品,2=实物,3=积分,4=谢谢参与
     */
    @TableField("type")
    private Integer type;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 图标
     */
    @TableField("image")
    private String image;
    /**
     * 描述
     */
    @TableField("desc")
    private String desc;
    /**
     * 概率
     */
    @TableField("chance")
    private Integer chance;
    /**
     * 库存数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * 消耗数量
     */
    @TableField("draw_qty")
    private Integer drawQty;
    /**
     * 数量
     */
    @TableField("num")
    private Integer num;
    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 删除时间
     */
    @TableField("deletetime")
    private Integer deletetime;

    public static CcIntegralLuckVO toVO(CcIntegralLuckDO ccIntegralLuckDO) {
        if(ccIntegralLuckDO == null){
            return null;
        }
        CcIntegralLuckVO ccIntegralLuckVO = new CcIntegralLuckVO();
        BeanUtils.copyProperties(ccIntegralLuckDO, ccIntegralLuckVO);
        return ccIntegralLuckVO;
    }

    public static CcIntegralLuckDO toDO(CcIntegralLuckAddDTO ccIntegralLuckAddDTO) {
        if (ccIntegralLuckAddDTO == null) {
            return null;
        }
        CcIntegralLuckDO ccIntegralLuckDO = new CcIntegralLuckDO();
        BeanUtils.copyProperties(ccIntegralLuckAddDTO, ccIntegralLuckDO);
        return ccIntegralLuckDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy