|
@@ -68,13 +68,13 @@ namespace TEAMModelOS.SDK.Helper.Common.ReflectorExtensions
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
- public static (List<OpenApi>,List<Attribute>) GetMethodCustomAttribute<T,V>(string[] ScanModel)
|
|
|
|
|
|
+ public static (List<OpenApi>,List<ApiTokenAttribute>) GetMethodCustomAttribute<T,V>(string[] ScanModel)
|
|
{
|
|
{
|
|
List<OpenApi> openApis = new List<OpenApi>();
|
|
List<OpenApi> openApis = new List<OpenApi>();
|
|
Type attrT = typeof(T);
|
|
Type attrT = typeof(T);
|
|
Type attrV = typeof(V);
|
|
Type attrV = typeof(V);
|
|
string currentDirectory = Path.GetDirectoryName(attrT.Assembly.Location);
|
|
string currentDirectory = Path.GetDirectoryName(attrT.Assembly.Location);
|
|
- List<Attribute> attributes = new List<Attribute>();
|
|
|
|
|
|
+ List<ApiTokenAttribute> attributes = new List<ApiTokenAttribute>();
|
|
if (ScanModel != null)
|
|
if (ScanModel != null)
|
|
{
|
|
{
|
|
foreach (var model in ScanModel)
|
|
foreach (var model in ScanModel)
|