package cn.common.repository.entity;

import cn.common.common.entity.BaseEntity;
import cn.common.common.utils.spring.SnowflakeIdWorker;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.*;

/**
 * 系统API请求log
 * @title: Job.java
 * @author create by Singer - Singer email:singer-coder@qq.com
 * @date 2019/4/24 11:13
 * @return
 */
@Data
@TableName("platform_api_log")
public class PlatformApiLog extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -6546838388765409121L;

    /**
     * 系统API请求LOG主键ID
     */
    private String PlatformApiLogId = SnowflakeIdWorker.uniqueMainId();

    /**
     * 操作用户
     */
    private String userName;

    /**
     * 操作
     */
    private String operation;


    /**
     * 操作位置
     */
    private String location;


    /**
     * 方法名
     */
    private String method;

    /**
     * 参数
     */
    private String params;


    /**
     * 请求ip
     */
    private String requestIp;

    /**
     * 请求耗时
     */
    private Long time;

}
