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

com.github.fanzezhen.common.mp.model.dto.SysPermissionDto Maven / Gradle / Ivy

There is a newer version: 3.0.1-2023.10.13
Show newest version
package com.github.fanzezhen.common.mp.model.dto;


import com.github.fanzezhen.common.mp.model.entity.BaseTenantEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author zezhen.fan
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysPermissionDto extends BaseTenantEntity {
    /**
     * 上级ID
     */
    @Size(max = 50, message = "上级ID长度不能超过50")
    @NotBlank(message = "上级ID不能为空")
    @Schema(name = "上级ID")
    private String pid;

    /**
     * icon代码
     */
    @Size(max = 16, message = "icon代码长度不能超过16")
    @NotBlank(message = "icon代码不能为空")
    @Schema(name = "icon代码")
    private String icon;

    /**
     * 权限代码
     */
    @Size(max = 50, message = "权限代码长度不能超过50")
    @NotBlank(message = "权限代码不能为空")
    @Schema(name = "权限代码")
    private String code;

    /**
     * 名称
     */
    @Size(max = 50, message = "名称长度不能超过50")
    @NotBlank(message = "名称不能为空")
    @Schema(name = "名称")
    private String name;

    /**
     * 请求地址
     */
    @Size(max = 255, message = "请求地址长度不能超过255")
    @NotBlank(message = "请求地址不能为空")
    @Schema(name = "请求地址")
    private String operationUrl;

    /**
     * 类型(1--菜单;2--按钮)
     */
    @Schema(name = "类型(1--菜单;2--按钮)")
    private Integer type;

    /**
     * 排序优先级
     */
    @Schema(name = "排序优先级")
    private Integer orderNum;

    /**
     * 所属应用代码
     */
    @Size(max = 50, message = "所属应用代码长度不能超过50")
    @Schema(name = "所属应用代码")
    private String appCode;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy