package model;

import java.time.LocalDateTime;

public class OperationLog {
    private String id;
    private String operationType;    // 操作类型（入库、出库、修改等）
    private String operationTarget;  // 操作对象（货物ID或名称）
    private String operator;         // 操作人
    private LocalDateTime operationTime; // 操作时间
    private String details;          // 操作详情
    
    public OperationLog(String id, String operationType, String operationTarget, 
                       String operator, LocalDateTime operationTime, String details) {
        this.id = id;
        this.operationType = operationType;
        this.operationTarget = operationTarget;
        this.operator = operator;
        this.operationTime = operationTime;
        this.details = details;
    }
    
    // Getters and Setters
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    
    public String getOperationType() { return operationType; }
    public void setOperationType(String operationType) { this.operationType = operationType; }
    
    public String getOperationTarget() { return operationTarget; }
    public void setOperationTarget(String operationTarget) { this.operationTarget = operationTarget; }
    
    public String getOperator() { return operator; }
    public void setOperator(String operator) { this.operator = operator; }
    
    public LocalDateTime getOperationTime() { return operationTime; }
    public void setOperationTime(LocalDateTime operationTime) { this.operationTime = operationTime; }
    
    public String getDetails() { return details; }
    public void setDetails(String details) { this.details = details; }
} 