All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.beanshell.rbac.controller.request.RbacPermissionSaveRequest Maven / Gradle / Ivy

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy