// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package com.hjh.mp.user.controller;
@org.springframework.web.bind.annotation.RestController
@org.springframework.web.bind.annotation.RequestMapping({"/api/menu"})
@org.springframework.boot.autoconfigure.condition.ConditionalOnProperty(prefix = "user", name = {"enabled"}, havingValue = "true", matchIfMissing = true)
@io.swagger.v3.oas.annotations.tags.Tag(name = "menu")
public class MenuController {
private final com.hjh.mp.user.api.menu.MenuApi menuApi;
public MenuController(com.hjh.mp.user.api.menu.MenuApi menuApi) { /* compiled code */ }
@io.swagger.v3.oas.annotations.Operation(summary = "创建菜单")
@org.springframework.web.bind.annotation.PostMapping
public com.hjh.mp.bc.common.controller.ResponseResult<java.lang.Long> createMenuItem(@org.springframework.web.bind.annotation.RequestBody com.hjh.mp.user.api.menu.dto.MenuItemCreateDto dto) { /* compiled code */ }
@io.swagger.v3.oas.annotations.Operation(summary = "修改菜单")
@org.springframework.web.bind.annotation.PutMapping({"{id}"})
public com.hjh.mp.bc.common.controller.ResponseResult<java.lang.Void> modifyMenuItem(@io.swagger.v3.oas.annotations.Parameter(description = "ID") @org.springframework.web.bind.annotation.PathVariable("id") long id, @org.springframework.web.bind.annotation.RequestBody com.hjh.mp.user.api.menu.dto.MenuItemModifyBaseDto dto) { /* compiled code */ }
@io.swagger.v3.oas.annotations.Operation(summary = "获取菜单")
@org.springframework.web.bind.annotation.GetMapping({"{id}"})
public com.hjh.mp.bc.common.controller.ResponseResult<com.hjh.mp.user.api.menu.vo.MenuItemInfoVo> getMenuItem(@io.swagger.v3.oas.annotations.Parameter(description = "ID") @org.springframework.web.bind.annotation.PathVariable("id") long id) { /* compiled code */ }
@io.swagger.v3.oas.annotations.Operation(summary = "获取菜单树")
@org.springframework.web.bind.annotation.GetMapping({"tree/{appInstanceId}"})
public com.hjh.mp.bc.common.controller.ResponseResult<java.util.List<com.hjh.mp.user.api.menu.vo.MenuItemTreeNodeVo>> getMenuItemTree(@io.swagger.v3.oas.annotations.Parameter(description = "应用实例ID") @org.springframework.web.bind.annotation.PathVariable("appInstanceId") long appInstanceId) { /* compiled code */ }
@io.swagger.v3.oas.annotations.Operation(summary = "获取菜单资源树")
@org.springframework.web.bind.annotation.GetMapping({"resourceTree/{appInstanceId}"})
public com.hjh.mp.bc.common.controller.ResponseResult<java.util.List<com.hjh.mp.user.api.menu.vo.MenuResourceTreeVo>> getResourceTree(@io.swagger.v3.oas.annotations.Parameter(description = "应用实例ID") @org.springframework.web.bind.annotation.PathVariable("appInstanceId") long appInstanceId) { /* compiled code */ }
@io.swagger.v3.oas.annotations.Operation(summary = "删除菜单")
@org.springframework.web.bind.annotation.DeleteMapping({"{id}"})
public com.hjh.mp.bc.common.controller.ResponseResult<java.lang.Void> deleteMenuItem(@io.swagger.v3.oas.annotations.Parameter(description = "ID") @org.springframework.web.bind.annotation.PathVariable("id") long id) { /* compiled code */ }
@io.swagger.v3.oas.annotations.Operation(summary = "修改菜单排序")
@org.springframework.web.bind.annotation.PostMapping({"resort"})
public com.hjh.mp.bc.common.controller.ResponseResult<java.lang.Void> resortMenuItem(@io.swagger.v3.oas.annotations.parameters.RequestBody(description = "排序好的菜单ID列表, 必须是同一个父节点下的直接子节点(或者都是根节点)") @org.springframework.web.bind.annotation.RequestBody java.util.List<java.lang.Long> sortedIds) { /* compiled code */ }
}
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package com.hjh.mp.user.api.menu.dto;
public class MenuItemModifyBaseDto extends com.hjh.mp.user.api.menu.dto.MenuItemResourceCreateDto {
@javax.validation.constraints.NotEmpty
@javax.validation.constraints.Size(max = 20)
@io.swagger.v3.oas.annotations.media.Schema(title = "名称")
private java.lang.String name;
@javax.validation.constraints.Size(max = 500)
@io.swagger.v3.oas.annotations.media.Schema(title = "图标")
private java.lang.String icon;
public MenuItemModifyBaseDto() { /* compiled code */ }
public java.lang.String getName() { /* compiled code */ }
public void setName(java.lang.String name) { /* compiled code */ }
public java.lang.String getIcon() { /* compiled code */ }
public void setIcon(java.lang.String icon) { /* compiled code */ }
}
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package com.hjh.mp.user.api.menu.dto;
public class MenuItemResourceCreateDto {
@io.swagger.v3.oas.annotations.media.Schema(title = "关联的应用实例资源ID")
private java.util.List<java.lang.Long> resourceIds;
@io.swagger.v3.oas.annotations.media.Schema(title = "默认应用实例资源ID")
private java.lang.Long defaultResourceId;
public MenuItemResourceCreateDto() { /* compiled code */ }
public java.util.List<java.lang.Long> getResourceIds() { /* compiled code */ }
public void setResourceIds(java.util.List<java.lang.Long> resourceIds) { /* compiled code */ }
public java.lang.Long getDefaultResourceId() { /* compiled code */ }
public void setDefaultResourceId(java.lang.Long defaultResourceId) { /* compiled code */ }
}