package cn.axzo.msg.center.service.pending.request;

import cn.axzo.msg.center.service.enums.BizCategoryEnum;
import cn.axzo.msg.center.service.enums.PendingMessageStateEnum;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Set;

/**
 * @author yanglin
 */
@Setter
@Getter
public class GetTodoRequest {
    private BizCategoryEnum bizCategory;
    private Set<String> identityCodes;
    private Set<String> templateCodes;
    private Set<String> bizCodes;
    private Set<PendingMessageStateEnum> states;
    private List<Executor> executors;

    @Setter
    @Getter
    public static class Executor {
        private Long ouId;
        private Long workspaceId;
        private List<Long> personIds;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}