feat(osi): 实现公开字典查询接口(T-101)
This commit is contained in:
+12
@@ -147,3 +147,15 @@
|
||||
- 验证:`go test ./mapping -count=1` 通过;`go test ./...` 通过。
|
||||
- 决策:样本全部脱敏,不提交本地真实身份证/姓名/电话;T-205 只建立映射测试基线,不扩展创建请求结构体。
|
||||
- 下一步:T-101(`osi/public.go` 四个字典查询)。
|
||||
|
||||
## 2026-07-07 T-101 公开字典查询
|
||||
|
||||
- 变更:新增 `osi/public.go`,实现 `QueryGridAddress`、`QueryDoctors`、`QueryDrugs`、`QueryOrgs` 四个公开查询薄封装;补充 `WGDZ00001`、`ZRYS00001`、`YPML00001`、`CXJG00002` serviceId 路由。
|
||||
- 测试:先补 `osi/public_test.go`,覆盖四个接口的 path、serviceId、baseInfo 组装与 data 解码。
|
||||
- RED:`go test ./osi -run "TestQuery(GridAddress|Doctors|Drugs|Orgs)" -count=1` 初次失败,缺少公开查询类型、serviceId 常量与方法。
|
||||
- GREEN:`go test ./osi -run "TestQuery(GridAddress|Doctors|Drugs|Orgs)" -count=1` 通过。
|
||||
- 验证:`go test ./osi -count=1` 通过。
|
||||
- 验证:`go test ./...` 通过。
|
||||
- 验证:`go build ./...` 通过。
|
||||
- 联调:使用本地未入库脚本中的沙箱凭据和身份证,仅在临时 Go 程序内读取;先 JKDA00002 取一条档案主数据,再调用公开查询。结果:Find `code=01 count=1`;责任医生 `code=01 count>0`;机构 `code=01 count>0`;网格 `code=01 count>0`。未输出真实身份证、机构码、医生姓名或密钥。
|
||||
- 说明:药品目录查询本次完成客户端封装和单测,T-101 验收要求未要求真实药品目录联调;后续需要用药品关键字/拼音码时再补真实样本。
|
||||
|
||||
Reference in New Issue
Block a user