package com.cnooc.expert.controller.workflow.model.response;

import com.cnooc.expert.external.workflow.model.response.ReceiveSettingByConditionFindApiResp;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class ReceiveSettingByConditionFindResp {

    // 限上岗配置标识
    private String receiveSettingCode;

    // 限上岗配置名称
    private String receiveSettingName;

    // 上级单位名称
    private String upSubjectName;

    // 上级单位id
    private String upSubjectId;

    // upward：是否向上报批：1-向上报批，2-不向上报批
    private Short upward;

    // 限上岗配置不报批理由列表
    private List<ReceiveSettingByConditionFindApiResp.JingDongReceiveReasonVO> jingDongReceiveReasons;

    // 限上岗审批人员列表
    private List<ReceiveSettingByConditionFindApiResp.JingDongReceivePersonnelVO> jingDongReceivePeronnelList;

    @Data
    @Builder
    public static class JingDongReceiveReasonVO {

        // 不报批理由code
        private String noNeedUpApprovalCode;

        // 不报批理由内容
        private String noNeedUpApprovalInfo;
    }

    @Data
    @Builder
    public static class JingDongReceivePersonnelVO {

        // 也搞不清什么鬼
        private String did;

        // 账号
        private String account;

        // 名称
        private String name;

        // 手机号码
        private String mobile;

        // 邮箱
        private String email;
    }


}
