package com.yunzhupaas.flowable.model.message;

import com.yunzhupaas.base.UserInfo;
import com.yunzhupaas.flowable.entity.TaskEntity;
import com.yunzhupaas.flowable.model.util.FlowNature;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 云筑产品开发平台组
 * @version V3.1.0
 * @copyright 深圳市乐程软件有限公司
 * @date 2024/3/15 9:18
 */
@Data
public class DelegateModel {
    //true 委托 false 审批
    private Boolean delegate = true;
    //0.发起 1.审批 2.结束
    private Integer type = FlowNature.StartMsg;
    private List<String> toUserIds = new ArrayList<>();
    private UserInfo userInfo = new UserInfo();
    private TaskEntity flowTask = new TaskEntity();
    //审批是否要发送消息
    private Boolean approve = true;
    /**
     * 确认
     */
    private Integer ack = 0;
}

