refactor: 移除菜单导出接口
This commit is contained in:
parent
f5ab22eedf
commit
4363c91872
@ -133,5 +133,6 @@ public class MenuReq extends BaseReq {
|
|||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||||
|
@NotNull(message = "状态非法")
|
||||||
private DisEnableStatusEnum status;
|
private DisEnableStatusEnum status;
|
||||||
}
|
}
|
||||||
|
@ -16,14 +16,11 @@
|
|||||||
|
|
||||||
package top.charles7c.continew.admin.system.model.resp;
|
package top.charles7c.continew.admin.system.model.resp;
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import top.charles7c.continew.admin.common.enums.DisEnableStatusEnum;
|
import top.charles7c.continew.admin.common.enums.DisEnableStatusEnum;
|
||||||
import top.charles7c.continew.admin.common.enums.MenuTypeEnum;
|
import top.charles7c.continew.admin.common.enums.MenuTypeEnum;
|
||||||
import top.continew.starter.extension.crud.annotation.TreeField;
|
import top.continew.starter.extension.crud.annotation.TreeField;
|
||||||
import top.continew.starter.extension.crud.converter.ExcelBaseEnumConverter;
|
|
||||||
import top.continew.starter.extension.crud.model.resp.BaseResp;
|
import top.continew.starter.extension.crud.model.resp.BaseResp;
|
||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
@ -36,7 +33,6 @@ import java.io.Serial;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TreeField(value = "id")
|
@TreeField(value = "id")
|
||||||
@ExcelIgnoreUnannotated
|
|
||||||
@Schema(description = "菜单信息")
|
@Schema(description = "菜单信息")
|
||||||
public class MenuResp extends BaseResp {
|
public class MenuResp extends BaseResp {
|
||||||
|
|
||||||
@ -47,7 +43,6 @@ public class MenuResp extends BaseResp {
|
|||||||
* 标题
|
* 标题
|
||||||
*/
|
*/
|
||||||
@Schema(description = "标题", example = "用户管理")
|
@Schema(description = "标题", example = "用户管理")
|
||||||
@ExcelProperty(value = "标题")
|
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,83 +55,71 @@ public class MenuResp extends BaseResp {
|
|||||||
* 类型
|
* 类型
|
||||||
*/
|
*/
|
||||||
@Schema(description = "类型(1:目录;2:菜单;3:按钮)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
|
@Schema(description = "类型(1:目录;2:菜单;3:按钮)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
|
||||||
@ExcelProperty(value = "类型", converter = ExcelBaseEnumConverter.class)
|
|
||||||
private MenuTypeEnum type;
|
private MenuTypeEnum type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路由地址
|
* 路由地址
|
||||||
*/
|
*/
|
||||||
@Schema(description = "路由地址", example = "/system/user")
|
@Schema(description = "路由地址", example = "/system/user")
|
||||||
@ExcelProperty(value = "路由地址")
|
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件名称
|
* 组件名称
|
||||||
*/
|
*/
|
||||||
@Schema(description = "组件名称", example = "User")
|
@Schema(description = "组件名称", example = "User")
|
||||||
@ExcelProperty(value = "组件名称")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件路径
|
* 组件路径
|
||||||
*/
|
*/
|
||||||
@Schema(description = "组件路径", example = "/system/user/index")
|
@Schema(description = "组件路径", example = "/system/user/index")
|
||||||
@ExcelProperty(value = "组件路径")
|
|
||||||
private String component;
|
private String component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重定向地址
|
* 重定向地址
|
||||||
*/
|
*/
|
||||||
@Schema(description = "重定向地址")
|
@Schema(description = "重定向地址")
|
||||||
@ExcelProperty(value = "重定向地址")
|
|
||||||
private String redirect;
|
private String redirect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 图标
|
* 图标
|
||||||
*/
|
*/
|
||||||
@Schema(description = "图标", example = "user")
|
@Schema(description = "图标", example = "user")
|
||||||
@ExcelProperty(value = "图标")
|
|
||||||
private String icon;
|
private String icon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否外链
|
* 是否外链
|
||||||
*/
|
*/
|
||||||
@Schema(description = "是否外链", example = "false")
|
@Schema(description = "是否外链", example = "false")
|
||||||
@ExcelProperty(value = "是否外链")
|
|
||||||
private Boolean isExternal;
|
private Boolean isExternal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否缓存
|
* 是否缓存
|
||||||
*/
|
*/
|
||||||
@Schema(description = "是否缓存", example = "false")
|
@Schema(description = "是否缓存", example = "false")
|
||||||
@ExcelProperty(value = "是否缓存")
|
|
||||||
private Boolean isCache;
|
private Boolean isCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否隐藏
|
* 是否隐藏
|
||||||
*/
|
*/
|
||||||
@Schema(description = "是否隐藏", example = "false")
|
@Schema(description = "是否隐藏", example = "false")
|
||||||
@ExcelProperty(value = "是否隐藏")
|
|
||||||
private Boolean isHidden;
|
private Boolean isHidden;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权限标识
|
* 权限标识
|
||||||
*/
|
*/
|
||||||
@Schema(description = "权限标识", example = "system:user:list")
|
@Schema(description = "权限标识", example = "system:user:list")
|
||||||
@ExcelProperty(value = "权限标识")
|
|
||||||
private String permission;
|
private String permission;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 排序
|
* 排序
|
||||||
*/
|
*/
|
||||||
@Schema(description = "排序", example = "1")
|
@Schema(description = "排序", example = "1")
|
||||||
@ExcelProperty(value = "排序")
|
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||||
@ExcelProperty(value = "状态", converter = ExcelBaseEnumConverter.class)
|
|
||||||
private DisEnableStatusEnum status;
|
private DisEnableStatusEnum status;
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ import top.continew.starter.web.model.R;
|
|||||||
*/
|
*/
|
||||||
@Tag(name = "菜单管理 API")
|
@Tag(name = "菜单管理 API")
|
||||||
@RestController
|
@RestController
|
||||||
@CrudRequestMapping(value = "/system/menu", api = {Api.TREE, Api.GET, Api.ADD, Api.UPDATE, Api.DELETE, Api.EXPORT})
|
@CrudRequestMapping(value = "/system/menu", api = {Api.TREE, Api.GET, Api.ADD, Api.UPDATE, Api.DELETE})
|
||||||
public class MenuController extends BaseController<MenuService, MenuResp, MenuResp, MenuQuery, MenuReq> {
|
public class MenuController extends BaseController<MenuService, MenuResp, MenuResp, MenuQuery, MenuReq> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user