fix(handler): 药品目录按分页契约修正 YPML00001(T-211)
- DrugQuery.PageNo 去 omitempty(pageNo=0 也上送)+ 加 PageSize - handler Drugs 改 pageNo 必填(parseRequiredInt,缺则返回 400)+ 读 pageSize - 补缺 pageNo 返回 400 的测试 - 依 docx;YPML00001 未真实联调,pageNo 是否真必填待厂家样本核对 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+4
-3
@@ -25,9 +25,10 @@ type Doctor struct {
|
||||
}
|
||||
|
||||
type DrugQuery struct {
|
||||
PageNo int `json:"pageNo,omitempty"`
|
||||
YPMC string `json:"ypmc,omitempty"`
|
||||
PYM string `json:"pym,omitempty"`
|
||||
PageNo int `json:"pageNo"` // docx 必填,不加 omitempty 以确保 pageNo=0 也上送(避免被平台判缺参)
|
||||
PageSize int `json:"pageSize,omitempty"`
|
||||
YPMC string `json:"ypmc,omitempty"`
|
||||
PYM string `json:"pym,omitempty"`
|
||||
}
|
||||
|
||||
type Drug struct {
|
||||
|
||||
Reference in New Issue
Block a user