新增SwaggerDemo
This commit is contained in:
20
电子展板/Models/RetValue.cs
Normal file
20
电子展板/Models/RetValue.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
{
|
||||
[SwaggerComment("返回状态")]
|
||||
public int state { get; set; }
|
||||
[SwaggerComment("返回消息")]
|
||||
public string message { get; set; }
|
||||
[SwaggerComment("返回数据")]
|
||||
public object data { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user