啊鑫
4 天以前 6b57612f6e9f7575d206e82955ffd989faaaf8b3
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; }
}