using System;
using Swashbuckle.AspNetCore.Annotations;
namespace SimApi.Attributes;
///
/// 快捷自定义接口文档类
///
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
public class SimApiDocAttribute : SwaggerOperationAttribute
{
///
/// 定义接口说明
///
/// 接口分组
/// 接口名称
public SimApiDocAttribute(string tag, string name)
{
Tags = new[] { tag };
Summary = name;
// Consumes = new[] {"application/json"};
// Produces = new[] {"application/json"};
}
}