This commit is contained in:
Putoo
2026-05-20 18:32:54 +08:00
parent 2c85872abd
commit 784bc66ef6
51 changed files with 1818 additions and 106 deletions

View File

@@ -28,6 +28,12 @@ groups.Add("User", new OpenApiInfo
Version = "v1",
Description = "航海时代用户相关接口。",
});
groups.Add("Map", new OpenApiInfo
{
Title = "用户地图文档",
Version = "v1",
Description = "航海时代用户地图相关接口。",
});
builder.Services.InjectJwt(builder.Configuration, new OpenApiInfo
{
@@ -94,7 +100,8 @@ if (app.Environment.IsDevelopment())
#region swagger配置
app.UseJwtSwagger("swagger", "航海时代接口文档",new List<JwtGroupConfig> {
new JwtGroupConfig(){ groupId="Login", groupName="登录接口文档"},
new JwtGroupConfig(){ groupId="User", groupName="用户接口文档"}
new JwtGroupConfig(){ groupId="User", groupName="用户接口文档"},
new JwtGroupConfig(){ groupId="Map", groupName="用户地图文档"}
});
#endregion