package com.yuchen.saas.manage.system.api.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;


@Data
@ApiModel(value = "AddOrgUserApplyParam")
public class AddOrgUserApplyParam {
    @Size(min=1)
    @ApiModelProperty(value = "名称与手机号")
    private List<Detail> details;

    @NotNull
    @ApiModelProperty(value = "组织id")
    private Long deptId;

    @ApiModelProperty(value = "部门id")
    private Long childDeptId;

    @Data
    public static class Detail{
        @ApiModelProperty(value = "名称")
        private String name;

        @NotBlank
        @ApiModelProperty(value = "手机号")
        private String phone;
    }
}
