顺丰的查询、预计时间、取消接口
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
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:
@@ -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": "类型不能为空",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user