package com.fdkankan.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fdkankan.mongodb.base.BaseMongoEntity;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 操作日志
 */
@Data
@Document("OperLog")
public class OperLog extends BaseMongoEntity{


    /**
     * 用户id
     */
    @Field("userId")
    private Long userId;

    /**
     * 账号
     */
    @Field("userName")
    private String userName;

    /**
     * 姓名
     */
    @Field("nickName")
    private String nickName;

    /**请求路径*/
    @Field("requestPath")
    private String requestPath;

    /**请求url*/
    @Field("uri")
    private String uri;

    /**请求方式*/
    @Field("method")
    private String method;

    /**请求方式*/
    @Field("params")
    private String params;

    /**请求ip*/
    @Field("ip")
    private String ip;

    @Field("browser")
    private String browser;

}
