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/Base/LoginController.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Tiger.Api/Controllers/Base/LoginController.cs b/Tiger.Controllers.System/Controllers/Base/LoginController.cs
similarity index 92%
rename from Tiger.Api/Controllers/Base/LoginController.cs
rename to Tiger.Controllers.System/Controllers/Base/LoginController.cs
index 69b4b4d..c6b3adf 100644
--- a/Tiger.Api/Controllers/Base/LoginController.cs
+++ b/Tiger.Controllers.System/Controllers/Base/LoginController.cs
@@ -34,7 +34,7 @@
         /// <param name="action"></param>
         /// <returns></returns>
         [HttpGet]
-        public async Task<IActionResult> SwitchOrgCode(string token, string org, string fty)
+        public async Task<IActionResult> SwitchOrgCode(string? token, string? org, string? fty)
         {
             return Ok(await DI.Resolve<ILogin>().BSSwitchOrgCode(token,org, fty));
         }
@@ -44,7 +44,7 @@
         /// <param name="token"></param>
         /// <returns></returns>
         [HttpGet]
-        public async Task<IActionResult> GetLoginInfo(string token)
+        public async Task<IActionResult> GetLoginInfo(string? token)
         {
             var _token =string.IsNullOrEmpty(token)?Request.Headers["Authorization"].ToString(): token;
             return Ok(await DI.Resolve<ILogin>().GetBSLoginInfo(_token));
@@ -80,7 +80,7 @@
         /// <param name="token"></param>
         /// <returns></returns>
         [HttpGet]
-        public async Task<IActionResult> CSGetLoginInfo(string token)
+        public async Task<IActionResult> CSGetLoginInfo(string? token)
         {
             var _token = string.IsNullOrEmpty(token) ? Request.Headers["Authorization"].ToString() : token;
             return Ok(await DI.Resolve<ILogin>().GetCSLoginInfo(_token));

--
Gitblit v1.9.3