啊鑫
8 天以前 f2b71fe1d3c2b7651d525a5b5bbe66fad602ea06
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Microsoft.AspNetCore.Mvc.ApiExplorer;
 
namespace Gs.Toolbox.ApiCore.Group;
 
/// <summary>
///     swagger分组特性
/// </summary>
public class ApiGroupAttribute : Attribute, IApiDescriptionGroupNameProvider
{
    public ApiGroupAttribute(ApiGroupNames name)
    {
        GroupName = name.ToString();
    }
 
    public string GroupName { get; set; }
}