顺丰的查询、预计时间、取消接口
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 22s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s

This commit is contained in:
2026-09-07 15:36:23 +08:00
parent 462d142a4c
commit bcb8743eca
23 changed files with 1717 additions and 66 deletions
+11 -10
View File
@@ -49,17 +49,18 @@ func (p StatusValidator) GetMessage() validate.ValidatorMessages {
}
}
type InfoValidator struct {
Id int64 `validate:"required"`
}
func (p InfoValidator) GetMessage() validate.ValidatorMessages {
return validate.ValidatorMessages{
"Id.required": "ID不能为空",
}
}
type DeliveryHistoryValidator struct {
Page int `form:"page" json:"page"`
Size int `form:"size" json:"size"`
}
type IdApiValidator struct {
Id int64 `validate:"required"`
Type int32 `validate:"type"`
}
func (p IdApiValidator) GetMessage() validate.ValidatorMessages {
return validate.ValidatorMessages{
"Name.required": "请输入名称",
"Type.required": "类型不能为空",
}
}