package com.zhangmeng.online.exam.ui.module;

import java.time.LocalDateTime;

public class OperationLog {
    private int id;
    private String username;    // 操作用户
    private String module;      // 操作模块
    private String action;      // 操作类型
    private String content;     // 操作内容
    private String ip;          // 操作IP
    private LocalDateTime operateTime; // 操作时间
    private String status;      // 操作状态（成功/失败）
    private String errorMsg;    // 错误信息

    public OperationLog() {
    }

    public OperationLog(int id, String module, String action, String content,
                        String ip, LocalDateTime operateTime, String status, String errorMsg) {
        this.id = id;
        this.module = module;
        this.action = action;
        this.content = content;
        this.ip = ip;
        this.operateTime = operateTime;
        this.status = status;
        this.errorMsg = errorMsg;
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

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

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIp() {
        return ip;
    }

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

    public LocalDateTime getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(LocalDateTime operateTime) {
        this.operateTime = operateTime;
    }

    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;
    }
} 