BingoHa.Shared
0.4.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BingoHa.Shared --version 0.4.0
NuGet\Install-Package BingoHa.Shared -Version 0.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BingoHa.Shared" Version="0.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BingoHa.Shared --version 0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BingoHa.Shared, 0.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BingoHa.Shared as a Cake Addin #addin nuget:?package=BingoHa.Shared&version=0.4.0 // Install BingoHa.Shared as a Cake Tool #tool nuget:?package=BingoHa.Shared&version=0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BingoHa.Shared
1、包说明
BingoHa ABP共享模块。
版本号:v 0.4.0。
2、功能说明
2.1 授权相关
接口/类 | 说明 | 备注 |
---|---|---|
BingoHaClaimTypes | 声明类型。 | |
IAuthManager<TUser> | 授权管理接口。 | 使用授权功能时,请依赖注入此接口。<br />TUser 指用户信息类型,需继承 IJwtUser 接口。 |
AuthManager<TUser> | 授权管理类。 | |
IJwtUser | JWT 用户接口。 | 实现 JWT 授权认证时,请将用户类继承此接口。 |
JwtResult | JWT 结果。 | 登录时返回的 JWT 结果。<br />accessToken :访问令牌。<br />expires :过期天数,默认为:7。 |
2.2 常量相关
类 | 说明 |
---|---|
BingoHaConsts | 公共常量值。 |
2.3 枚举相关
类 | 说明 | 备注 |
---|---|---|
PersonGender | 性别枚举。 | 0:未知;1:男;2:女。 |
2.4 过滤器
类 | 说明 |
---|---|
ExceptionFilter | 异常过滤器。 |
2.5 帮助类
类 | 说明 | 备注 |
---|---|---|
AuthorizationHelper | 授权帮助类。 | 在 ConfigureServices 和 OnApplicationInitialization 中分别配置。 |
ConfigHelper | 配置帮助类。 | |
CorsHelper | 跨域帮助类。 | 在 ConfigureServices 和 OnApplicationInitialization 中分别配置。 |
FilterHelper | 过滤器帮助类。 | 在 ConfigureServices 中配置。 |
HostHelper | 主机帮助类。 | |
LoggerHelper | 日志记录帮助类。 | |
SwaggerHelper | Swagger 帮助类。 | 在 ConfigureServices 和 OnApplicationInitialization 中分别配置。 |
2.6 选项类
类 | 说明 |
---|---|
JwtOptions | JWT 授权认证选项。<br />Issuer :证书发行人及订阅人。<br />SecurityKey :加密密钥。<br />expiresDays :有效天数。 |
2.7 输出类
类 | 说明 | 备注 |
---|---|---|
ActionResponse | 输出类。 | 无结果输出。 |
ResultResponse<TResult> | 结果输出类。 | 有结果输出。 |
ErrorResponse | 错误输出类。 | 无结果输出。 |
ForbiddenResponse | 禁止访问输出类。 | 无结果输出。 |
NotFoundResponse | 未找到输出类。 | 无结果输出。 |
UnauthorizedResponse | 未授权输出类。 | 无结果输出。 |
输出类中包含状态码,可能值如下:
状态码的值 | 说明 |
---|---|
0 | 业务逻辑错误,未自定义状态码。 |
200 | 成功。 |
401 | 未授权。 |
403 | 禁止访问。 |
404 | 未找到资源。 |
500 | 系统抛出异常。 |
其他 | 自定义状态码。 |
2.8 工具类
类 | 说明 | 备注 |
---|---|---|
CryptoUtils | 加密工具类。 | 含 AES 对称加解密、MD5 消息摘要算法、SH1 哈希算法、SHA256 哈希算法。 |
DateTimeUtils | 日期时间工具类。 | |
EnumUtils | 枚举工具类。 | 获取枚举项列表,可用于生成下拉列表。 |
RandomUtils | 随机工具类。 | |
RegexUtils | 正则工具类。 | |
RSAUtils | RSA 工具类。 | 非对称加密。 |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 6.0.10)
- Newtonsoft.Json (>= 13.0.2)
- Serilog.AspNetCore (>= 6.0.1)
- Serilog.Sinks.File (>= 5.0.0)
- StackExchange.Redis (>= 2.6.80)
- Swashbuckle.AspNetCore (>= 6.4.0)
- System.IdentityModel.Tokens.Jwt (>= 6.25.0)
- Volo.Abp.AspNetCore.Mvc (>= 6.0.1)
- Volo.Abp.Autofac (>= 6.0.1)
- Volo.Abp.Security (>= 6.0.1)
- Volo.Abp.Swashbuckle (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.4 | 197 | 7/13/2023 |
1.0.2 | 163 | 5/23/2023 |
1.0.1 | 172 | 5/14/2023 |
1.0.0 | 162 | 5/14/2023 |
0.4.8 | 192 | 7/13/2023 |
0.4.7 | 177 | 7/13/2023 |
0.4.6 | 183 | 7/13/2023 |
0.4.5 | 321 | 1/10/2023 |
0.4.4 | 284 | 1/10/2023 |
0.4.3 | 327 | 11/29/2022 |
0.4.2 | 351 | 11/28/2022 |
0.4.1 | 321 | 11/27/2022 |
0.4.0 | 340 | 11/27/2022 |
0.3.5 | 398 | 10/30/2022 |
0.3.4 | 386 | 10/30/2022 |
0.3.3 | 386 | 10/30/2022 |
0.3.2 | 388 | 10/29/2022 |
0.3.1 | 389 | 10/28/2022 |
0.2.2 | 457 | 8/19/2022 |
0.2.1 | 460 | 8/10/2022 |
0.2.0 | 450 | 7/21/2022 |
0.1.0 | 466 | 7/21/2022 |