package com.yuchen.saas.flow.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@Builder
@AllArgsConstructor
public class NodeUser {

    /**
     * 用户od
     */
    @ApiModelProperty(name = "id", value = "用户id||部门id||角色id")
    private String id;
    /**
     * 用户名称
     */
    @ApiModelProperty(name = "name", value = "用户名称||部门名称||角色名称")
    private String name;
    /**
     * 类型
     * USER("user","用户"),
     *     DEPT("dept","部门"),
     *     ROLE("role","角色"),
     */
    @ApiModelProperty(name = "type", value = "用户:user,部门:dept,角色：role")
    private String type;

    @ApiModelProperty(name = "mode", value = "1发起条件2发起范围")
    private Integer mode;

    @ApiModelProperty(name = "isSub", value = "是否是子表")
    private Boolean isSub;
    /**
     * 选择
     */
    @ApiModelProperty(name = "selected", value = "无需处理")
    private Boolean selected;

    @ApiModelProperty(name = "avatar", value = "无需处理")
    private String avatar;

}
