package com.example.demo.model;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 业务实体。
 */
@Schema(description = "业务实体")
public class BusinessItem {

    @Schema(description = "业务ID")
    private Long id;

    @Schema(description = "业务编号")
    private String businessNo;

    @Schema(description = "业务类型")
    private String businessType;

    @Schema(description = "申请人ID")
    private Long applicantId;

    @Schema(description = "申请人姓名")
    private String applicantName;

    @Schema(description = "申请时间")
    private String applyTime;

    @Schema(description = "业务内容")
    private String content;

    @Schema(description = "附件路径")
    private String attachmentPath;

    @Schema(description = "状态：draft-草稿，submitted-已提交，approved-已通过，rejected-已驳回，archived-已归档")
    private String status;

    @Schema(description = "审核人ID")
    private Long reviewerId;

    @Schema(description = "审核人姓名")
    private String reviewerName;

    @Schema(description = "审核意见")
    private String reviewComment;

    public BusinessItem() {
    }

    public BusinessItem(Long id, String businessNo, String businessType, Long applicantId,
                        String applicantName, String applyTime, String content, String status) {
        this.id = id;
        this.businessNo = businessNo;
        this.businessType = businessType;
        this.applicantId = applicantId;
        this.applicantName = applicantName;
        this.applyTime = applyTime;
        this.content = content;
        this.status = status;
    }

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getBusinessNo() { return businessNo; }
    public void setBusinessNo(String businessNo) { this.businessNo = businessNo; }
    public String getBusinessType() { return businessType; }
    public void setBusinessType(String businessType) { this.businessType = businessType; }
    public Long getApplicantId() { return applicantId; }
    public void setApplicantId(Long applicantId) { this.applicantId = applicantId; }
    public String getApplicantName() { return applicantName; }
    public void setApplicantName(String applicantName) { this.applicantName = applicantName; }
    public String getApplyTime() { return applyTime; }
    public void setApplyTime(String applyTime) { this.applyTime = applyTime; }
    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }
    public String getAttachmentPath() { return attachmentPath; }
    public void setAttachmentPath(String attachmentPath) { this.attachmentPath = attachmentPath; }
    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }
    public Long getReviewerId() { return reviewerId; }
    public void setReviewerId(Long reviewerId) { this.reviewerId = reviewerId; }
    public String getReviewerName() { return reviewerName; }
    public void setReviewerName(String reviewerName) { this.reviewerName = reviewerName; }
    public String getReviewComment() { return reviewComment; }
    public void setReviewComment(String reviewComment) { this.reviewComment = reviewComment; }
}
