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

k.e.book.ddh.entity.CcEmsDO 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;

/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_ems")
@ApiModel(value="CcEmsDO", description="CcEms")
public class CcEmsDO extends Model  {
    private static final long serialVersionUID = 1L;


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


    /**
     * 事件
     */
    @TableField("event")
    private String event;
    /**
     * 邮箱
     */
    @TableField("email")
    private String email;
    /**
     * 验证码
     */
    @TableField("templates/code")
    private String code;
    /**
     * 验证次数
     */
    @TableField("times")
    private Integer times;
    /**
     * IP
     */
    @TableField("ip")
    private String ip;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Long createtime;

    public static CcEmsVO toVO(CcEmsDO ccEmsDO) {
        if(ccEmsDO == null){
            return null;
        }
        CcEmsVO ccEmsVO = new CcEmsVO();
        BeanUtils.copyProperties(ccEmsDO, ccEmsVO);
        return ccEmsVO;
    }

    public static CcEmsDO toDO(CcEmsAddDTO ccEmsAddDTO) {
        if (ccEmsAddDTO == null) {
            return null;
        }
        CcEmsDO ccEmsDO = new CcEmsDO();
        BeanUtils.copyProperties(ccEmsAddDTO, ccEmsDO);
        return ccEmsDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy