swagger文档

This commit is contained in:
2248356998 qq.com
2023-03-27 19:01:04 +08:00
parent 85829e70c1
commit 4527c6ee5d
3 changed files with 8 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ namespace ThingsGateway.Web.Foundation
/// <summary>
/// 写入设备
/// </summary>
/// <returns></returns>
[HttpPost("writeDeviceMethod")]
[Description("写入设备")]
public Task<OperResult> WriteDeviceMethod(NameVaue obj)

View File

@@ -2,6 +2,12 @@
public class NameVaue
{
/// <summary>
/// 变量名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 变量值
/// </summary>
public string Value { get; set; }
}

View File

@@ -4,6 +4,8 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<Version>1.1.0</Version>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<NoWarn>CS1591;</NoWarn>
</PropertyGroup>