简化使用
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user