package com.ho.user.vo.req;

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

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

/**
 * @ClassName: RoleUpdateReqVO
 * TODO:类文件简单描述
 * @Author:
 * @CreateDate: 2019/9/20 0:29
 * @UpdateUser:
 * @UpdateDate: 2019/9/20 0:29
 * @Version: 0.0.1
 */
@Data
public class RoleUpdateReqVO {

    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色 id 不能为空")
    private Integer id;

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

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

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

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