package com.imdroid.secapi.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

//member name must be same as the field name in mysql
@Data
@TableName(value = "OperationLog")
public class OperationLog {
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    Long id;
    @ExcelProperty("用户名")
    String user_name;
    @ExcelProperty("租户id")
    Integer tenantid;
    @ExcelProperty("时间")
    Timestamp op_time;
    @ExcelProperty("类型")
    Short op_type;
    @ExcelProperty("对象")
    Short op_object;
    @ExcelProperty("内容")
    String content;
}
