mirror of
https://github.com/BgaSol/sol-cloud
synced 2026-05-22 16:48:22 +00:00
refactor: Refine the description of the menu type and sort type
This commit is contained in:
parent
28490ab108
commit
d4fbffc31d
3 changed files with 7 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ export type MenuEntity = {
|
|||
*/
|
||||
status?: number;
|
||||
/**
|
||||
* 菜单类型
|
||||
* 菜单类型:MENU-菜单,PAGE-页面,BUTTON-按钮
|
||||
*/
|
||||
menuType?: MenuEntity.menuType;
|
||||
/**
|
||||
|
|
@ -95,7 +95,7 @@ export type MenuEntity = {
|
|||
};
|
||||
export namespace MenuEntity {
|
||||
/**
|
||||
* 菜单类型
|
||||
* 菜单类型:MENU-菜单,PAGE-页面,BUTTON-按钮
|
||||
*/
|
||||
export enum menuType {
|
||||
MENU = 'MENU',
|
||||
|
|
|
|||
|
|
@ -1,16 +1,17 @@
|
|||
package com.bgasol.common.core.base.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
@Schema(description = "排序类型:ASC-正序,DESC-倒序")
|
||||
public enum PageOrderType {
|
||||
ASC("ASC"),
|
||||
DESC("DESC");
|
||||
|
||||
@EnumValue()
|
||||
private final String value;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
package com.bgasol.model.system.menu.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
@Schema(description = "菜单类型:MENU-菜单,PAGE-页面,BUTTON-按钮")
|
||||
public enum MenuType {
|
||||
MENU("MENU"),
|
||||
PAGE("PAGE"),
|
||||
|
|
@ -13,4 +15,4 @@ public enum MenuType {
|
|||
|
||||
@EnumValue()
|
||||
private final String value;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue