Bitzsoft.Integrations.LegalDatabase 1.0.0-alpha.7

This is a prerelease version of Bitzsoft.Integrations.LegalDatabase.
dotnet add package Bitzsoft.Integrations.LegalDatabase --version 1.0.0-alpha.7
                    
NuGet\Install-Package Bitzsoft.Integrations.LegalDatabase -Version 1.0.0-alpha.7
                    
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="Bitzsoft.Integrations.LegalDatabase" Version="1.0.0-alpha.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.LegalDatabase" Version="1.0.0-alpha.7" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.LegalDatabase" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitzsoft.Integrations.LegalDatabase --version 1.0.0-alpha.7
                    
#r "nuget: Bitzsoft.Integrations.LegalDatabase, 1.0.0-alpha.7"
                    
#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.
#:package Bitzsoft.Integrations.LegalDatabase@1.0.0-alpha.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.LegalDatabase&version=1.0.0-alpha.7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.LegalDatabase&version=1.0.0-alpha.7&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.LegalDatabase

法规案例库统一抽象层 — 通过 ILegalDatabaseProvider 接口屏蔽各供应商差异。

功能

  • 统一 ILegalDatabaseProvider 接口,屏蔽各法规案例库供应商的差异
  • SsoRedirectLegalDatabaseProvider 适配器,将大部分仅需 SSO 跳转的供应商桥接到 Bitzsoft.Integrations.SsoRedirect 配置驱动管道
  • 兼容 API 检索型供应商(如得理法搜、incoPat、北大法宝、元典),通过各供应商包内的专用 Provider 实现
  • LegalDatabaseCapabilities 功能标志枚举,描述各供应商支持的检索/跳转能力
  • 统一的 LegalDatabaseAccessUrl 结果模型(Url + ExpiresAt)

安装

dotnet add package Bitzsoft.Integrations.LegalDatabase
<PackageReference Include="Bitzsoft.Integrations.LegalDatabase" Version="*" />

架构

ILegalDatabaseProvider
    ├── SsoRedirectLegalDatabaseProvider(适配器)
    │       └── 委托给 SsoRedirect 管道
    └── [未来] ApiSearchLegalDatabaseProvider
            └── API 检索 + SSO 跳转

大部分法规案例库供应商仅需 SSO 跳转,通过 SsoRedirectLegalDatabaseProvider 适配器桥接到 Bitzsoft.Integrations.SsoRedirect 的配置驱动管道,各供应商包只需十几行 DI 注册代码。

已对接供应商

包名 供应商 认证模式 实现形态
LegalDatabase.Delilegal 得理法搜 UrlTemplate API 检索 + SSO 跳转(含 HttpClient)
LegalDatabase.Incopat incoPat UrlTemplate API 检索 + SSO 跳转(含 HttpClient)
LegalDatabase.Pkulaw 北大法宝 UrlTemplate AlphaData/AlphaGPT API + SSO 跳转(含 HttpClient)
LegalDatabase.Yuandian 元典 UrlTemplate API 检索 + SSO 跳转(含 HttpClient)
LegalDatabase.Jianwei 见微数据 Pipeline (RSA → API → MD5) SSO 跳转管道(含 HttpClient)
LegalDatabase.Metalaw MetaLaw UrlTemplate + SM3 签名 SSO 跳转(本地签名)
LegalDatabase.WkInfo 威科先行 AES-ECB 加密 SSO 跳转(配置驱动)
LegalDatabase.Faxin 法信 UrlTemplate SSO 跳转(配置驱动)
LegalDatabase.Jufaanli 聚法案例 UrlTemplate SSO 跳转(配置驱动)
LegalDatabase.Wusong 无讼 UrlTemplate SSO 跳转(配置驱动)
LegalDatabase.Lexisnexis 律商联讯 UrlTemplate SSO 跳转(配置驱动)
LegalDatabase.Lawsdata 把手案例 UrlTemplate SSO 跳转(配置驱动)

Delilegal、Incopat、Pkulaw、Yuandian、Jianwei 的 HttpClient 已接入 Bitzsoft.Integrations.RequestLogging 第三方请求日志。Metalaw 为本地 SM3 签名,其余配置驱动型供应商仅需 SSO 模板拼接,不涉及外部 HTTP 调用。

聚合包 Bitzsoft.Integrations.LegalDatabase.All 一键注册所有供应商。

使用

// 注册单个供应商
services.AddBitzsoftWkInfoLegalDatabase(options =>
{
    options.AppId = "your-app-id";
    options.AppSecret = "your-app-secret";
    options.TenantName = "your-tenant";
});

// 或注册全部供应商(从 IConfiguration 读取)
services.AddBitzsoftLegalDatabase(configuration);

// 使用
public class MyService
{
    private readonly ILegalDatabaseProvider _provider;

    public MyService(ILegalDatabaseProvider provider)
    {
        _provider = provider;
    }

    public async Task<string> GetLoginUrlAsync(string userId)
    {
        var result = await _provider.GenerateAccessUrlAsync(userId);
        return result.Url;
    }
}

核心类型

类型 说明
ILegalDatabaseProvider 法规案例库统一接口
LegalDatabaseAccessUrl 访问链接结果(Url + ExpiresAt)
LegalDatabaseCapabilities 功能标志枚举
SsoRedirectLegalDatabaseProvider SSO 跳转型适配器

依赖

  • Bitzsoft.Integrations.SsoRedirect — SSO 跳转管道
  • Bitzsoft.Integrations.Compatibility — 基础工具库

相关包

  • Bitzsoft.Integrations.LegalDatabase.All — 全部供应商聚合包
  • Bitzsoft.Integrations.LegalDatabase.WkInfo — 威科先行集成
  • Bitzsoft.Integrations.LegalDatabase.Faxin — 法信集成
  • Bitzsoft.Integrations.LegalDatabase.Jufaanli — 聚法案例集成
  • Bitzsoft.Integrations.LegalDatabase.Wusong — 无讼集成
  • Bitzsoft.Integrations.LegalDatabase.Metalaw — MetaLaw 集成
  • Bitzsoft.Integrations.LegalDatabase.Lawsdata — 把手案例集成
  • Bitzsoft.Integrations.LegalDatabase.Jianwei — 见微数据集成
  • Bitzsoft.Integrations.LegalDatabase.Lexisnexis — 律商联讯集成
  • Bitzsoft.Integrations.LegalDatabase.Pkulaw — 北大法宝集成
  • Bitzsoft.Integrations.LegalDatabase.Yuandian — 元典集成
  • Bitzsoft.Integrations.LegalDatabase.Delilegal — 得理法搜集成
  • Bitzsoft.Integrations.LegalDatabase.Incopat — incoPat 集成
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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 is compatible.  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.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (12)

Showing the top 5 NuGet packages that depend on Bitzsoft.Integrations.LegalDatabase:

Package Downloads
Bitzsoft.Integrations.LegalDatabase.WkInfo

威科先行(WkInfo)法规案例库 SSO 跳转集成

Bitzsoft.Integrations.LegalDatabase.Delilegal

得理法搜法规案例库集成 — AI 智能检索与 REST API 接入

Bitzsoft.Integrations.LegalDatabase.Wusong

无讼法规案例库 SSO 跳转集成

Bitzsoft.Integrations.LegalDatabase.Metalaw

MetaLaw 法规案例库 SSO 跳转集成 — SM3 签名认证

Bitzsoft.Integrations.LegalDatabase.Pkulaw

北大法宝法规案例库集成 — SSO 跳转、AlphaData API 与 AlphaGPT 接入

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.7 106 6/16/2026
1.0.0-alpha.6 104 6/16/2026
1.0.0-alpha.5 106 6/14/2026
1.0.0-alpha.3 103 6/7/2026