package com.ruoyi.cms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
/**
 * app操作日志记录对象 bussiness_oper_log
 * @author ${author}
 * @date 2024-11-13
 */
@Data
@ApiModel("app操作日志记录")
@TableName(value = "bussiness_oper_log")
public class BussinessOperLog extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "oper_id",type = IdType.AUTO)
    @ApiModelProperty("日志主键")
    private Long operId;

    @Excel(name = "模块标题")
    @ApiModelProperty("模块标题")
    private String title;

    @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除")
    @ApiModelProperty("业务类型（0其它 1新增 2修改 3删除）")
    private Integer businessType;

    @Excel(name = "方法名称")
    @ApiModelProperty("方法名称")
    private String method;

    @Excel(name = "请求方式")
    @ApiModelProperty("请求方式")
    private String requestMethod;

    @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
    @ApiModelProperty("操作类别（0其它 1后台用户 2手机端用户）")
    private Integer operatorType;

    @Excel(name = "操作人员")
    @ApiModelProperty("操作人员")
    private String operName;

    @Excel(name = "部门名称")
    @ApiModelProperty("部门名称")
    private String deptName;

    @Excel(name = "请求URL")
    @ApiModelProperty("请求URL")
    private String operUrl;

    @Excel(name = "主机地址")
    @ApiModelProperty("主机地址")
    private String operIp;

    @Excel(name = "操作地点")
    @ApiModelProperty("操作地点")
    private String operLocation;

    @Excel(name = "请求参数")
    @ApiModelProperty("请求参数")
    private String operParam;

    @Excel(name = "返回参数")
    @ApiModelProperty("返回参数")
    private String jsonResult;

    @Excel(name = "操作状态", readConverterExp = "0=正常,1=异常")
    @ApiModelProperty("操作状态（0正常 1异常）")
    private Integer status;

    @Excel(name = "错误消息")
    @ApiModelProperty("错误消息")
    private String errorMsg;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("操作时间")
    private Date operTime;

    @Excel(name = "消耗时间")
    @ApiModelProperty("消耗时间")
    private Long costTime;

    @ApiModelProperty("业务类型数组")
    private Integer[] businessTypes;
}