diff --git a/src/OSharp.Swagger/SwaggerPackBase.cs b/src/OSharp.Swagger/SwaggerPackBase.cs index a64018dd..4c089bbb 100644 --- a/src/OSharp.Swagger/SwaggerPackBase.cs +++ b/src/OSharp.Swagger/SwaggerPackBase.cs @@ -75,7 +75,7 @@ public override IServiceCollection AddServices(IServiceCollection services) Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory, "*.xml").ToList().ForEach(file => { - options.IncludeXmlComments(file); + options.IncludeXmlComments(file, true); }); //权限Token options.AddSecurityDefinition("oauth2", diff --git a/src/OSharp/Filter/PageRequest.cs b/src/OSharp/Filter/PageRequest.cs index fa7e6c09..3da5383e 100644 --- a/src/OSharp/Filter/PageRequest.cs +++ b/src/OSharp/Filter/PageRequest.cs @@ -10,7 +10,7 @@ namespace OSharp.Filter; /// -/// 分布查询请求 +/// 分页查询请求 /// public class PageRequest { @@ -44,4 +44,4 @@ public void AddDefaultSortCondition(params SortCondition[] sortConditions) PageCondition.SortConditions = sortConditions; } } -} \ No newline at end of file +} diff --git a/src/OSharp/Identity/JwtBearer/GrantType.cs b/src/OSharp/Identity/JwtBearer/GrantType.cs index 7e7b15b0..b9abeb7b 100644 --- a/src/OSharp/Identity/JwtBearer/GrantType.cs +++ b/src/OSharp/Identity/JwtBearer/GrantType.cs @@ -23,4 +23,9 @@ public class GrantType /// 刷新Token类型 /// public const string RefreshToken = "refresh_token"; -} \ No newline at end of file + + /// + /// 授权码类型 + /// + public const string AuthorizationCode = "authorization_code"; +}