package com.cool.store.entity.oplog;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import javax.persistence.*;

@Table(name = "sys_log_${enterpriseId}")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysLogDO {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 菜单
     */
    private String menus;

    /**
     * 模块，取最后一级菜单
     */
    private String module;

    /**
     * 功能
     */
    private String func;

    /**
     * 子功能
     */
    @Column(name = "sub_func")
    private String subFunc;

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

    /**
     * 操作人名称
     */
    @Column(name = "op_user_name")
    private String opUserName;

    /**
     * 操作人手机号
     */
    @Column(name = "op_user_mobile")
    private String opUserMobile;

    /**
     * 操作时间
     */
    @Column(name = "op_time")
    private Date opTime;

    /**
     * 操作类型
     */
    @Column(name = "op_type")
    private String opType;

    /**
     * 操作内容
     */
    @Column(name = "op_content")
    private String opContent;

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

    /**
     * 设备信息
     */
    @Column(name = "device_info")
    private String deviceInfo;

    /**
     * 请求参数
     */
    @Column(name = "req_params")
    private String reqParams;

    /**
     * 响应参数
     */
    @Column(name = "resp_params")
    private String respParams;

    /**
     * 请求路径
     */
    private String url;

    /**
     * 扩展字段
     */
    @Column(name = "extend_info")
    private String extendInfo;

    /**
     * 操作人工号
     */
    @Column(name = "op_user_jobnumber")
    private String opUserJobnumber;

}