优化Swagger文档输出
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user