Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

法律数据库包

法律数据库域 12 家供应商的 NuGet 包参考——适配器模式统一接口,各家仅 base URL 和鉴权方式不同。

Last updated

法律数据库域把 12 家法律/案例库供应商统一到 ILegalDatabaseConfigProvider 接口下。与其它域不同,这些供应商的接口实现完全相同(适配器模式)——差异仅在 base URL 和鉴权方式。因此不单独建页,下表列出各家的配置摘要。

核心接口

public interface ILegalDatabaseConfigProvider
{
string BaseUrl { get; }
string HttpClientName { get; }
}

适配器基于 SsoRedirectLegalDatabaseProvider,提供三个方法:

方法说明
GenerateAccessUrlAsync为指定用户生成单点登录访问 URL
SearchAsync检索法律文书/案例
GetDocumentAsync获取文书/案例详情

12 家供应商配置一览

供应商鉴权字段BaseUrl 默认值
北大法宝Bitzsoft.Integrations.LegalDatabase.PkulawUserName + PrivateKey(MD5 签名) + ApiToken(REST)https://login.pkulaw.com/
法信Bitzsoft.Integrations.LegalDatabase.FaxinTokenhttps://www.faxin.cn/
威科先行Bitzsoft.Integrations.LegalDatabase.WkInfoAppId + AppSecret + TenantNamehttps://law.wkinfo.com.cn
律商联讯Bitzsoft.Integrations.LegalDatabase.LexisnexisTokenhttps://www.lexisnexiscn.com/
聚法案例Bitzsoft.Integrations.LegalDatabase.JufaanliTokenhttps://www.jufaanli.com/
无讼Bitzsoft.Integrations.LegalDatabase.WusongTokenhttps://www.wusong.com/
得理法律Bitzsoft.Integrations.LegalDatabase.DelilegalApiTokenhttps://open.delilegal.com/
智合元典Bitzsoft.Integrations.LegalDatabase.YuandianApiTokenhttps://open.chineselaw.com/
IncoPatBitzsoft.Integrations.LegalDatabase.IncopatUserName + AppSecretKey + ApiTokenhttps://open.incopat.com/
建纬数据Bitzsoft.Integrations.LegalDatabase.JianweiPublicKey + SignSecrethttps://jianweidata.com/
LawsdataBitzsoft.Integrations.LegalDatabase.LawsdataTokenhttps://www.lawsdata.com/
MetaLawBitzsoft.Integrations.LegalDatabase.MetalawAppId + SecretKeyhttps://meta.law/

聚合包

Terminal window
dotnet add package Bitzsoft.Integrations.LegalDatabase.All

配置示例(以北大法宝为例)

{
"LegalDatabase": {
"Pkulaw": {
"UserName": "your-username",
"PrivateKey": "your-md5-sign-key",
"ApiToken": "your-rest-api-token",
"ApiBaseUrl": "https://api.pkulaw.com/"
}
}
}

已知限制

  • 大部分供应商的 SearchAsync / GetDocumentAsync 依赖 REST API Token(非所有供应商都开放)。未配置 Token 的供应商只能生成 SSO 访问 URL。
  • 北大法宝(Pkulaw)配置最复杂:支持 SSO 登录签名(MD5)、AlphaData RSA 签名、AlphaGPT RSA 加密三条链路。

相关

100%

滚轮或按钮缩放 · 放大后拖动画面 · 双击切换 100% / 200%