SimApiDoc增加了描述

This commit is contained in:
2026-03-26 00:32:20 +08:00
parent 81e166ad45
commit a8439c174c
2 changed files with 802 additions and 1 deletions
+6 -1
View File
@@ -14,10 +14,15 @@ public class SimApiDocAttribute : SwaggerOperationAttribute
/// </summary>
/// <param name="tag">接口分组</param>
/// <param name="name">接口名称</param>
public SimApiDocAttribute(string tag, string name)
/// <param name="description">接口描述</param>
public SimApiDocAttribute(string tag, string name, string? description = null)
{
Tags = [tag];
Summary = name;
if (description != null)
{
Description = description;
}
// Consumes = new[] {"application/json"};
// Produces = new[] {"application/json"};
}