package cn.novalon.manage.db.entity;

import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

/**
 * 操作日志数据库实体类
 * 
 * @author 张翔
 * @date 2026-03-13
 */
@Table("operation_log")
public class OperationLogEntity extends BaseEntity {

    @Column("username")
    private String username;

    @Column("operation")
    private String operation;

    @Column("method")
    private String method;

    @Column("params")
    private String params;

    @Column("result")
    private String result;

    @Column("ip")
    private String ip;

    @Column("duration")
    private Long duration;

    @Column("status")
    private String status;

    @Column("error_msg")
    private String errorMsg;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
