package com.xdap.self_development.controller.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class InsertRoleForm {
    @NotBlank(message = "角色名不能为空")
    private String roleName;
    @NotEmpty(message = "至少选择一个用户")
    private List<String> users;
    @NotEmpty(message = "至少选择以一个权限")
    private List<String> permissions;
}
