package com.fufan.mtsaas.modules.base.log.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统操作日志表
 *
 * @author Liby
 * @date 2022-03-16
 */
@Data
@ApiModel(description = "系统操作日志表")
@TableName("t_sys_log")
public class TSysLog implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId("id")
    @ApiModelProperty(value = "日志系统ID")
	private int id;
    @ApiModelProperty(value = "关联系统ID")
	private Long relatedId;
    @ApiModelProperty(value = "关联功能")
	private String relatedType;
    @ApiModelProperty(value = "日志标题")
	private String logTitle;
    @ApiModelProperty(value = "日志内容")
	private String logContent;
    @ApiModelProperty(value = "操作人")
	private String operator;
    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date operateTime;
    @ApiModelProperty(value = "操作类型")
	private String operateType;
    @ApiModelProperty(value = "IP地址")
    private String ipAddress;
    @ApiModelProperty(value = "操作状态")
    private String operateStatus;
    @ApiModelProperty(value = "公司id")
    private Long companyId;
}
