package cn.reghao.devops.mgr.admin.model.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * @author reghao
 * @date 2021-07-14 14:14:07
 */
@NoArgsConstructor
@Data
public class RoleDto {
    @Pattern(regexp = "^\\w+$", message = "角色名只能是英文字符")
    private String name;
    @Length(max = 100, message = "角色描述的长度不超过 100 个中文字符")
    private String description;
}
