fix(osi): 校准机构查询请求契约
This commit is contained in:
+6
-3
@@ -39,15 +39,18 @@ type Drug struct {
|
||||
}
|
||||
|
||||
type OrgQuery struct {
|
||||
OrganizCode string `json:"organizCode,omitempty"`
|
||||
ParentID string `json:"parentId,omitempty"`
|
||||
// docx 二者均标必填;联调验证通过的请求是两 key 都在(organizCode + parentId 可为 "")。
|
||||
// 不加 omitempty,确保 parentId="" 也上送,避免像网格地址那样必填空值被丢导致平台 NPE(code=02)。
|
||||
OrganizCode string `json:"organizCode"`
|
||||
ParentID string `json:"parentId"`
|
||||
}
|
||||
|
||||
type Org struct {
|
||||
OrganizCode string `json:"organizCode"`
|
||||
OrganizName string `json:"organizName"`
|
||||
OrganizType string `json:"organizType"`
|
||||
OrganizType string `json:"organizType"` // A医院/B社区中心(站)/C卫生院/D门诊诊所村室/D6村卫生室/R市卫生局
|
||||
ParentID string `json:"parentId"`
|
||||
RegionCode string `json:"regionCode"` // 机构所在网格码;联调实测可为 null(→"")
|
||||
}
|
||||
|
||||
func (c *Client) QueryGridAddress(ctx context.Context, query GridAddressQuery) ([]GridAddress, Result, error) {
|
||||
|
||||
Reference in New Issue
Block a user