package com.unis.detectionnum.server.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * @Description  操作日志表
 * @date 2019/10/22 17点26分
 */

@Getter
@Setter
@Table(name = "S_LOG")
public class LogDO {
	
	/**
	 * 主键id
	 */
	@Column(name = "id")
    private Integer id;

	/**
	 * 操作人id
	 */
	@Column(name = "user_id")
    private String userId;

	/**
	 * 操作人
	 */
	@Column(name = "user_name")
    private String userName;

	/**
	 * 操作时间
	 */
	@ApiModelProperty(value="操作时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@Column(name = "create_date")
    private Date createDate;

	/**
	 * 动作
	 */
	@Column(name = "action")
    private String action;

	/**
	 * 操作模块
	 */
	@Column(name = "module")
    private String module;

	/**
	 * 登录ip
	 */
	@Column(name = "ip")
    private String ip;

	/**
	 * 操作数据
	 */
	@Column(name = "operate_data")
    private String operateData;

}