package cn.iocoder.yudao.module.bpm.controller.admin.business.vo;

import cn.iocoder.yudao.module.bpm.enums.BpmBusinessTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @Author: jinyd
 * @CreateTime: 2024/8/12  10:31
 * @Description: 管理后台 - 业务表单请求实体类 Request VO
 * @Version: 4.0
 */
@Schema(description = "管理后台 - 业务表单请求实体类 Request VO")
@Data
public class BpmBusinessFormCreateReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12122")
    private Long id;

    @Schema(description = "业务ID", example = "6489")
    private Long businessId;

    @Schema(description = "业务ID2", example = "6489")
    private Long businessId2;

    @Schema(description = "申请人的用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "499")
    private Long userId;

    @Schema(description = "审批结果", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer status;

    private Long tenantId;

    /**
     * * 关联 {@link BpmBusinessTypeEnum}
     */
    @Schema(description = "申请类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer type;

    @Schema(description = "流程实例的编号", example = "11303")
    private String processInstanceId;

    @Schema(description = "发起人自选审批人 Map", example = "{taskKey1: [1, 2]}")
    private Map<String, List<Long>> startUserSelectAssignees;

}