k.e.book.ddh.entity.CcItemOpLogDO 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_item_op_log")
@ApiModel(value="CcItemOpLogDO", description="CcItemOpLog")
public class CcItemOpLogDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 项目ID
*/
@TableField("item_id")
private Integer itemId;
/**
* 用户ID
*/
@TableField("user_id")
private Integer userId;
/**
* 操作:0=未知,1=盲盒开出,2=合成,3=空投,4=买入,5=转售,6=取消转售
*/
@TableField("action")
private Integer action;
/**
* 金额
*/
@TableField("amount")
private Integer amount;
/**
* 备注
*/
@TableField("remark")
private String remark;
/**
* 创建时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Integer updatetime;
/**
* 删除时间
*/
@TableField("deletetime")
private Integer deletetime;
public static CcItemOpLogVO toVO(CcItemOpLogDO ccItemOpLogDO) {
if(ccItemOpLogDO == null){
return null;
}
CcItemOpLogVO ccItemOpLogVO = new CcItemOpLogVO();
BeanUtils.copyProperties(ccItemOpLogDO, ccItemOpLogVO);
return ccItemOpLogVO;
}
public static CcItemOpLogDO toDO(CcItemOpLogAddDTO ccItemOpLogAddDTO) {
if (ccItemOpLogAddDTO == null) {
return null;
}
CcItemOpLogDO ccItemOpLogDO = new CcItemOpLogDO();
BeanUtils.copyProperties(ccItemOpLogAddDTO, ccItemOpLogDO);
return ccItemOpLogDO;
}
}