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

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


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


    /**
     * 上级持仓id
     */
    @TableField("parent_id")
    private Long parentId;
    /**
     * 用户编号
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 卖家编号
     */
    @TableField("seller_id")
    private Long sellerId;
    /**
     * 作者编号
     */
    @TableField("author_id")
    private Integer authorId;
    /**
     * 产品编号
     */
    @TableField("product_id")
    private Long productId;
    /**
     * 项目编号
     */
    @TableField("item_id")
    private Long itemId;
    /**
     * 金额数量(分)
     */
    @TableField("amount")
    private Double amount;
    /**
     * 币种
     */
    @TableField("priceunit")
    private String priceunit;
    /**
     * 订单编号
     */
    @TableField("orderid")
    private String orderid;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Long createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Long updatetime;
    /**
     * 删除时间
     */
    @TableField("deletetime")
    private Integer deletetime;
    /**
     * 合约地址
     */
    @TableField("contract_address")
    private String contractAddress;
    /**
     * 交易哈希
     */
    @TableField("txhash")
    private String txhash;
    /**
     * 交易token编号
     */
    @TableField("token_id")
    private String tokenId;
    /**
     * 状态:0=已取消,1=确认中,2=已确认,3=挂售中,4=已售出,5=已撤回,6=销毁中,7=已销毁,8=锁定中,10=取消转增,11=转增中,12=待接收,13=已转增
     */
    @TableField("status")
    private String status;
    /**
     * 来源:0=未设置,1=首发购买,2=市场购买,3=合成,4=空投,5=盲盒开出,6=转入,7=积分兑换
     */
    @TableField("origin")
    private Integer origin;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcUserCollectVO toVO(CcUserCollectDO ccUserCollectDO) {
        if(ccUserCollectDO == null){
            return null;
        }
        CcUserCollectVO ccUserCollectVO = new CcUserCollectVO();
        BeanUtils.copyProperties(ccUserCollectDO, ccUserCollectVO);
        return ccUserCollectVO;
    }

    public static CcUserCollectDO toDO(CcUserCollectAddDTO ccUserCollectAddDTO) {
        if (ccUserCollectAddDTO == null) {
            return null;
        }
        CcUserCollectDO ccUserCollectDO = new CcUserCollectDO();
        BeanUtils.copyProperties(ccUserCollectAddDTO, ccUserCollectDO);
        return ccUserCollectDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy