优化Swagger文档输出

This commit is contained in:
2025-09-25 15:31:44 +08:00
parent 4a198f1056
commit aa43943f33
4 changed files with 31 additions and 30 deletions

View File

@@ -10,12 +10,12 @@ namespace 电子展板.Models
[Model("返回数据")]
public class RetValue<T>
{
[ModelProperty("返回状态")]
[ModelProperty(Description = "返回状态")]
public int state { get; set; }
[ModelProperty("返回消息")]
[ModelProperty(Description = "返回消息")]
public string message { get; set; }
[ModelProperty("返回数据")]
[ModelProperty(Description = "返回数据")]
public T data { get; set; }
}
}