Logger.java 1.8 KB
package com.bsth.entity.logger;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 操作日志通用字段
 * Created by panzhao on 2017/3/6.
 */
@MappedSuperclass
public abstract class Logger {

    @Id
    @GeneratedValue
    private Long id;

    /** 用户信息 */
    private String userName;
    private String name;

    /** ########## 客户端信息 ########### */
    /** ip */
    private String clientIp;
    /** 浏览器 */
    private String browser;
    /** 系统平台 */
    private String clientSystem;
    /** 浏览器内核 */
    private String browserCore;

    /** 操作时间 */
    private Long ts;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getClientSystem() {
        return clientSystem;
    }

    public void setClientSystem(String clientSystem) {
        this.clientSystem = clientSystem;
    }

    public String getBrowserCore() {
        return browserCore;
    }

    public void setBrowserCore(String browserCore) {
        this.browserCore = browserCore;
    }

    public Long getTs() {
        return ts;
    }

    public void setTs(Long ts) {
        this.ts = ts;
    }
}