package com.fufan.mtsaas.modules.sysmgr.sygroup.bo.request;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

@Data
public class GroupHSaveRequest {
    @ApiModelProperty(value = "系统ID")
    private Long id;

    //    @ApiModelProperty(value = "公司ID")
//    private String companyID;
    @Length(max = 20, message = "用户角色，超出字段最大长度：20")
    @NotBlank(message = "用户角色名称不能为空")
    @ApiModelProperty(value = "用户角色，字段最大长度：20")
    private String groupName;

//    @ApiModelProperty(value = "是否排除 Y-是，N-否")
//    private String exclusiveFG;

//    @ApiModelProperty(value = "备注")
//    private String note;
//
//    @ApiModelProperty(value = "有效标志：0-有效，1-无效")
//    private String vldFG;

    @ApiModelProperty(value = "权限列表")
    private JSONArray roles;
    @ApiModelProperty(value = "按钮列表")
    private JSONArray permissions;
}
