package com.ho.user.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

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


@Data
public class RoleAddReqVO {

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "名称不能为空")
    @Length(min = 1, max = 50,message = "名称不能超过50个字符")
    private String name;

    @ApiModelProperty(value = "角色编号,后台自动维护,不需要前端传递",hidden = true)
    private String code;

    @ApiModelProperty(value = "角色描述")
    @Length( max = 200,message = "角色描述不能超过200个字符")
    private String description;

    @ApiModelProperty(value = "状态(1:正常0:弃用)")
    private Integer status;

    @ApiModelProperty(value = "所拥有的菜单权限")
    private List<Integer> permissions;
}
