fix name policy

This commit is contained in:
2020-02-04 16:51:15 +08:00
parent aadc4128f0
commit bb2f4641a3
18 changed files with 222 additions and 204 deletions
+23
View File
@@ -0,0 +1,23 @@
using Swashbuckle.AspNetCore.Annotations;
namespace YYApi.Attributes
{
/// <summary>
/// 快捷自定义接口文档类
/// </summary>
public class YYDocAttribute : SwaggerOperationAttribute
{
/// <summary>
/// 定义接口说明
/// </summary>
/// <param name="tag">接口分组</param>
/// <param name="name">接口名称</param>
public YYDocAttribute(string tag, string name)
{
Tags = new[] { tag };
Summary = name;
// Consumes = new[] {"application/json"};
// Produces = new[] {"application/json"};
}
}
}