添加详情接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user