package cn.ey.biz.module.system.controller.admin.delegation.vo;

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

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

@ApiModel("工时后台 - 代理人代理单元集合 Request VO ")
@Data
public class UserDelegationUnitVO<T> {

    @ApiModelProperty(value = "应用ID", example = "timesheet", required = true)
    @NotBlank(message = "应用ID不能为空")
    private String appId;

    @Valid
    @NotNull(message = "用户信息不能为空")
    private UserDelegationPersonVO userInfo;

    @Valid
    List<T> groups;

}
