From 564d1fcca01d3c528e283c9feef3ea1a05140e17 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期日, 29 九月 2024 22:36:46 +0800 Subject: [PATCH] 优化API架构,修复GET需要全部参数赋值的问题 --- Tiger.Controllers.System/Controllers/SYS/SYSController.Menu.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tiger.Api/Controllers/SYS/SYSController.Menu.cs b/Tiger.Controllers.System/Controllers/SYS/SYSController.Menu.cs similarity index 80% rename from Tiger.Api/Controllers/SYS/SYSController.Menu.cs rename to Tiger.Controllers.System/Controllers/SYS/SYSController.Menu.cs index 602bbf9..67ba62e 100644 --- a/Tiger.Api/Controllers/SYS/SYSController.Menu.cs +++ b/Tiger.Controllers.System/Controllers/SYS/SYSController.Menu.cs @@ -12,13 +12,13 @@ public partial class SYSController : ControllerBase { [HttpGet] - public async Task<IActionResult> getMenuList(string userId,string rootCode) + public async Task<IActionResult> getMenuList(string? userId,string? rootCode) { return Ok(await DI.Resolve<ISystem>().getMenuList(userId, rootCode)); } [HttpGet] - public async Task<IActionResult> getMenuListAll(string menuName, string status) + public async Task<IActionResult> getMenuListAll(string? menuName, string? status) { return Ok(await DI.Resolve<ISystem>().getMenuListAll(menuName, status)); } -- Gitblit v1.9.3