top.beanshell.rbac.controller.request.RbacPermissionSaveRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ram-rbac-endpoint Show documentation
Show all versions of ram-rbac-endpoint Show documentation
ram rbac base component --- restful api impl.
The newest version!
package top.beanshell.rbac.controller.request;
import lombok.Data;
import top.beanshell.rbac.common.model.enums.PermissionType;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 保存权限信息请求参数
* @author binchao
*/
@Data
public class RbacPermissionSaveRequest implements Serializable {
/**
* 权限类型
*/
@NotNull(message = "{i18n.request.valid.rbac.role-rel-save.permission-type}")
private PermissionType permissionType;
/**
* 权限编码
*/
@NotEmpty(message = "{i18n.request.valid.rbac.permission-save.permission-code}")
private String permissionCode;
/**
* 权限名称
*/
@NotEmpty(message = "{i18n.request.valid.rbac.permission-save.permission-name}")
private String permissionName;
/**
* 上级权限ID
*/
private Long pid;
}