add log service and change order
CI / changes (push) Successful in 38s
CI / ad (push) Successful in 29s
CI / admin (push) Successful in 22s
CI / bff (push) Successful in 19s
CI / chore (push) Successful in 22s
CI / equipment (push) Successful in 20s
CI / express (push) Successful in 18s
CI / log (push) Successful in 0s
CI / product (push) Successful in 15s
CI / sale (push) Successful in 16s
CI / task (push) Successful in 17s
CI / user (push) Successful in 16s
CI / wecom (push) Successful in 16s
CI / changes (push) Successful in 38s
CI / ad (push) Successful in 29s
CI / admin (push) Successful in 22s
CI / bff (push) Successful in 19s
CI / chore (push) Successful in 22s
CI / equipment (push) Successful in 20s
CI / express (push) Successful in 18s
CI / log (push) Successful in 0s
CI / product (push) Successful in 15s
CI / sale (push) Successful in 16s
CI / task (push) Successful in 17s
CI / user (push) Successful in 16s
CI / wecom (push) Successful in 16s
This commit is contained in:
@@ -4,13 +4,14 @@ import "lone-services/pkg/validate"
|
||||
|
||||
type DeliveringValidator struct {
|
||||
Id int64 `form:"id" json:"id" validate:"required"`
|
||||
TransitId int64 `form:"transit_id" json:"transit_id"`
|
||||
TransitId int64 `form:"transit_id" json:"transit_id" validate:"required"`
|
||||
}
|
||||
|
||||
// GetMessage 提示消息
|
||||
func (p DeliveringValidator) GetMessage() validate.ValidatorMessages {
|
||||
return validate.ValidatorMessages{
|
||||
validate.FieldId: validate.FieldIdValue,
|
||||
validate.FieldId: validate.FieldIdValue,
|
||||
"TransitId.required": "请输入快递ID",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user