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

k.e.book.ddh.entity.CcAirdropDO 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_airdrop")
@ApiModel(value="CcAirdropDO", description="CcAirdrop")
public class CcAirdropDO extends Model  {
    private static final long serialVersionUID = 1L;


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


    /**
     * 产品ID
     */
    @TableField("product_id")
    private Long productId;
    /**
     * 手机号
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * 状态 0=未空投 1=已空投
     */
    @TableField("status")
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Long createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 删除时间
     */
    @TableField("deletetime")
    private Integer deletetime;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcAirdropVO toVO(CcAirdropDO ccAirdropDO) {
        if(ccAirdropDO == null){
            return null;
        }
        CcAirdropVO ccAirdropVO = new CcAirdropVO();
        BeanUtils.copyProperties(ccAirdropDO, ccAirdropVO);
        return ccAirdropVO;
    }

    public static CcAirdropDO toDO(CcAirdropAddDTO ccAirdropAddDTO) {
        if (ccAirdropAddDTO == null) {
            return null;
        }
        CcAirdropDO ccAirdropDO = new CcAirdropDO();
        BeanUtils.copyProperties(ccAirdropAddDTO, ccAirdropDO);
        return ccAirdropDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy