修正了文档,增加了SimApiError

This commit is contained in:
2026-04-26 10:03:38 +08:00
parent ebceb0a260
commit 28c6d53f38
10 changed files with 1005 additions and 2120 deletions
+3
View File
@@ -5,6 +5,8 @@ using SimApi.Helpers;
namespace SimApi.Controllers;
using static SimApiError;
public class SimApiAuthController(SimApiAuth auth) : SimApiBaseController
{
/// <summary>
@@ -28,6 +30,7 @@ public class SimApiAuthController(SimApiAuth auth) : SimApiBaseController
[HttpPost, SimApiDoc("认证", "退出登陆")]
public SimApiBaseResponse Logout()
{
ErrorWhenNull(null);
string? token = null;
if (Request.Headers.TryGetValue("Token", out var value))
+1 -1
View File
@@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System.Linq;
using SimApi.Exceptions;
using static SimApi.Helpers.SimApiError;
namespace SimApi.Controllers;