feat(osi): 实现 JKDA 查询方法(T-203)
This commit is contained in:
+2
-4
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
@@ -39,9 +38,8 @@ func runJKDAFindCheck(ctx context.Context, cfg config.Config, idCard string) (jk
|
||||
Transport: transport,
|
||||
})
|
||||
|
||||
var data []json.RawMessage
|
||||
result, err := client.Call(ctx, osi.ServiceIDJKDAFind, map[string]string{"idCard": idCard}, &data)
|
||||
check := jkdaFindCheckResult{Code: result.Code, Message: result.Message, DataCount: len(data)}
|
||||
records, result, err := client.FindHealthRecord(ctx, osi.FindHealthRecordQuery{IDCard: idCard})
|
||||
check := jkdaFindCheckResult{Code: result.Code, Message: result.Message, DataCount: len(records)}
|
||||
if err != nil {
|
||||
return check, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user