refactor: Refine the description of the menu type and sort type

This commit is contained in:
Sol 2025-05-13 21:41:42 +08:00
parent 28490ab108
commit d4fbffc31d
3 changed files with 7 additions and 4 deletions

View file

@ -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',

View file

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

View file

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