new create admin order,express add company
This commit is contained in:
@@ -34,6 +34,8 @@ type AdminOrderCreateValidator struct {
|
||||
AddressId int64 `validate:"required"`
|
||||
Info string `validate:"required"`
|
||||
Note string
|
||||
Type int32 `validate:"required"` // 发货类型,1为需要发货,2为不需要发货
|
||||
|
||||
}
|
||||
|
||||
// GetMessage 修改状态 - 提示消息
|
||||
@@ -41,6 +43,7 @@ func (p AdminOrderCreateValidator) GetMessage() validate.ValidatorMessages {
|
||||
return validate.ValidatorMessages{
|
||||
"AddressId.required": "地址ID不能为空",
|
||||
"Info.required": "内容不能为空",
|
||||
"Type.required": "类型不能为空",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user