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

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


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


    /**
     * 管理员ID
     */
    @TableField("admin_id")
    private Integer adminId;
    /**
     * 管理员名字
     */
    @TableField("username")
    private String username;
    /**
     * 操作页面
     */
    @TableField("url")
    private String url;
    /**
     * 日志标题
     */
    @TableField("title")
    private String title;
    /**
     * 内容
     */
    @TableField("content")
    private String content;
    /**
     * IP
     */
    @TableField("ip")
    private String ip;
    /**
     * User-Agent
     */
    @TableField("useragent")
    private String useragent;
    /**
     * 操作时间
     */
    @TableField("createtime")
    private Long createtime;

    public static CcAdminLogVO toVO(CcAdminLogDO ccAdminLogDO) {
        if(ccAdminLogDO == null){
            return null;
        }
        CcAdminLogVO ccAdminLogVO = new CcAdminLogVO();
        BeanUtils.copyProperties(ccAdminLogDO, ccAdminLogVO);
        return ccAdminLogVO;
    }

    public static CcAdminLogDO toDO(CcAdminLogAddDTO ccAdminLogAddDTO) {
        if (ccAdminLogAddDTO == null) {
            return null;
        }
        CcAdminLogDO ccAdminLogDO = new CcAdminLogDO();
        BeanUtils.copyProperties(ccAdminLogAddDTO, ccAdminLogDO);
        return ccAdminLogDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy