package com.ym.mec.education.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;

/**
 * @program: mec
 * @description: 审批相关出参
 * @author: xw
 * @create: 2019-10-11 15:36
 */
@Data
@ApiModel(description = "审批相关出参")
@Accessors(chain = true)
public class ApprovalResp implements Serializable {

    @ApiModelProperty(value = "申请人")
    private String applicant;
    @ApiModelProperty(value = "申请人头像")
    private String applicantImg;
    @ApiModelProperty(value = "流程实例id")
    private String orderId;
    @ApiModelProperty(value = "审批事项")
    private String approvalType;
    @ApiModelProperty(value = "申请日期")
    private String approvalDate;
    @ApiModelProperty(value = "流程状态 0：结束；1：活动")
    private Integer orderState;
    @ApiModelProperty(value = "附属变量json")
    private String variableJson;
    @ApiModelProperty(value = "审批历史")
    private List<ApprovalHistoryInfo> approvalHistory;

    @Data
    @ApiModel(description = "审批历史详情")
    public static class ApprovalHistoryInfo implements Serializable {
        @ApiModelProperty(value = "审批处理人")
        private String operator;
        @ApiModelProperty(value = "附属变量json")
        private String variableJson;
    }

    public static ApprovalHistoryInfo getApprovalHistoryInfo() {
        return new ApprovalHistoryInfo();
    }
}
