package org.dromara.erp.domain.vo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.erp.domain.ErpOrderAudit;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单审核记录视图对象
 * @Author: Antigravity
 */
@Data
@AutoMapper(target = ErpOrderAudit.class)
public class ErpOrderAuditVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 审核记录主键
     */
    private String rowId;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 审核人
     */
    private Long auditor;

    /**
     * 审核人名称
     */
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "auditor")
    private String auditorName;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核结果(1-通过, 2-驳回)
     */
    private Integer auditResult;

    /**
     * 驳回原因
     */
    private String rejectReason;

    /**
     * 创建时间
     */
    private Date createTime;
}
