添加详情接口

This commit is contained in:
2026-01-16 15:09:23 +08:00
parent 9ae7b537cc
commit b3def6eb10
4 changed files with 41 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
@@ -71,5 +72,10 @@ public class MenuController {
return menuService.deleteFun(menuId);
}
@Operation(summary = "根据ID获取菜单详情", description = "根据ID获取菜单详情")
@GetMapping("/get/{id}")
public XResult<MenuQueryRes> getById(@PathVariable Long id) {
return menuService.getById(id);
}
}