package com.yuchen.saas.parking.api.vo;


import com.yuchen.saas.parking.api.entity.ReplacePlateNoRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * @author CXJ
 */
@Data
public class ReplacePlateNoRecordVo extends ReplacePlateNoRecord {
    @ApiModelProperty(name = "state", value = "任务状态0已拒绝,1已通过,2审核中,3取消,4待审核'")
    private String state;

    @ApiModelProperty(name = "ruleName", value = "月卡类型")
    private String ruleName;

    @ApiModelProperty(name = "parkName", value = "园区名称")
    private String parkName;

    @ApiModelProperty(name = "parkingName", value = "所属停车场")
    private String parkingName;

    @ApiModelProperty(name = "businessName", value = "申请业务")
    private String businessName;

    @ApiModelProperty(value = "流程节点集")
    private List<ProcessDetail> processDetail;

    @Data
    public static class ProcessDetail {
        @ApiModelProperty(value = "流程节点名称")
        private String text;

        @ApiModelProperty(value = "流程节点时间")
        private Date createTime;

        /**
         * 审核状态（0 待审核 1 进行中 2 已完成 3 已撤回 4 已拒绝））
         */
        @ApiModelProperty(name = "reviewState", value = "审核状态（0 待审核 1 进行中 2 已完成 3 已撤回 4 已拒绝）")
        private String reviewState;

        @ApiModelProperty(value = "消息(理由)")
        private String message;

        @ApiModelProperty(value = "审核人")
        private String userName;
    }
}
