package com.yuchen.saas.integration.feign.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 审批流程链路vo
 */
@Data
public class ProcessVo {

    @ApiModelProperty(value = "当前任务状态0不通过,1通过,2进行中,3取消,4待审核")
    private String state;

    @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 = "除message外的表单数据")
        private String fromData;


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