法律数据库域把 12 家法律/案例库供应商统一到 ILegalDatabaseConfigProvider 接口下。与其它域不同,这些供应商的接口实现完全相同(适配器模式)——差异仅在 base URL 和鉴权方式。因此不单独建页,下表列出各家的配置摘要。
核心接口
public interface ILegalDatabaseConfigProvider{ string BaseUrl { get; } string HttpClientName { get; }}适配器基于 SsoRedirectLegalDatabaseProvider,提供三个方法:
| 方法 | 说明 |
|---|---|
GenerateAccessUrlAsync | 为指定用户生成单点登录访问 URL |
SearchAsync | 检索法律文书/案例 |
GetDocumentAsync | 获取文书/案例详情 |
12 家供应商配置一览
| 供应商 | 包 | 鉴权字段 | BaseUrl 默认值 |
|---|---|---|---|
| 北大法宝 | Bitzsoft.Integrations.LegalDatabase.Pkulaw | UserName + PrivateKey(MD5 签名) + ApiToken(REST) | https://login.pkulaw.com/ |
| 法信 | Bitzsoft.Integrations.LegalDatabase.Faxin | Token | https://www.faxin.cn/ |
| 威科先行 | Bitzsoft.Integrations.LegalDatabase.WkInfo | AppId + AppSecret + TenantName | https://law.wkinfo.com.cn |
| 律商联讯 | Bitzsoft.Integrations.LegalDatabase.Lexisnexis | Token | https://www.lexisnexiscn.com/ |
| 聚法案例 | Bitzsoft.Integrations.LegalDatabase.Jufaanli | Token | https://www.jufaanli.com/ |
| 无讼 | Bitzsoft.Integrations.LegalDatabase.Wusong | Token | https://www.wusong.com/ |
| 得理法律 | Bitzsoft.Integrations.LegalDatabase.Delilegal | ApiToken | https://open.delilegal.com/ |
| 智合元典 | Bitzsoft.Integrations.LegalDatabase.Yuandian | ApiToken | https://open.chineselaw.com/ |
| IncoPat | Bitzsoft.Integrations.LegalDatabase.Incopat | UserName + AppSecretKey + ApiToken | https://open.incopat.com/ |
| 建纬数据 | Bitzsoft.Integrations.LegalDatabase.Jianwei | PublicKey + SignSecret | https://jianweidata.com/ |
| Lawsdata | Bitzsoft.Integrations.LegalDatabase.Lawsdata | Token | https://www.lawsdata.com/ |
| MetaLaw | Bitzsoft.Integrations.LegalDatabase.Metalaw | AppId + SecretKey | https://meta.law/ |
聚合包
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 加密三条链路。
相关
- 法律数据库域手册:适配器模式设计