简化使用

This commit is contained in:
2025-09-24 12:02:13 +08:00
parent dad5b8fb89
commit 4a198f1056
13 changed files with 103 additions and 375 deletions

View File

@@ -1,20 +1,21 @@
using System;
using Nancy.Swagger.Annotations.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using .Utility.Swagger;
namespace .Models
{
[SwaggerClassComment("返回数据")]
public class RetValue
[Model("返回数据")]
public class RetValue<T>
{
[SwaggerComment("返回状态")]
[ModelProperty("返回状态")]
public int state { get; set; }
[SwaggerComment("返回消息")]
[ModelProperty("返回消息")]
public string message { get; set; }
[SwaggerComment("返回数据")]
public object data { get; set; }
[ModelProperty("返回数据")]
public T data { get; set; }
}
}