print
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 31s
CI / admin (push) Successful in 22s
CI / bff (push) Successful in 20s
CI / chore (push) Successful in 21s
CI / equipment (push) Successful in 22s
CI / express (push) Successful in 21s
CI / factory (push) Successful in 19s
CI / message (push) Successful in 18s
CI / order (push) Successful in 19s
CI / payment (push) Successful in 20s
CI / percutaneous (push) Successful in 19s
CI / product (push) Successful in 20s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / support (push) Successful in 19s
CI / task (push) Successful in 18s
CI / user (push) Successful in 19s
CI / wecom (push) Successful in 20s
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 31s
CI / admin (push) Successful in 22s
CI / bff (push) Successful in 20s
CI / chore (push) Successful in 21s
CI / equipment (push) Successful in 22s
CI / express (push) Successful in 21s
CI / factory (push) Successful in 19s
CI / message (push) Successful in 18s
CI / order (push) Successful in 19s
CI / payment (push) Successful in 20s
CI / percutaneous (push) Successful in 19s
CI / product (push) Successful in 20s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / support (push) Successful in 19s
CI / task (push) Successful in 18s
CI / user (push) Successful in 19s
CI / wecom (push) Successful in 20s
This commit is contained in:
@@ -3,8 +3,8 @@ package validator
|
||||
import "lone-services/pkg/validate"
|
||||
|
||||
type PrintLoginValidator struct {
|
||||
Username int `form:"username" json:"username" validate:"required"`
|
||||
Password int `form:"password" json:"password" validate:"required"`
|
||||
Username string `form:"username" json:"username" validate:"required"`
|
||||
Password string `form:"password" json:"password" validate:"required"`
|
||||
}
|
||||
|
||||
// GetMessage 提示消息
|
||||
@@ -25,12 +25,12 @@ func (p PrintExpressTransitValidator) GetMessage() validate.ValidatorMessages {
|
||||
}
|
||||
}
|
||||
|
||||
type PrintETransitBindValidator struct {
|
||||
Codes string `form:"codes" json:"c" binding:"required"`
|
||||
type PrintTransitBindValidator struct {
|
||||
Codes string `form:"codes" json:"codes" binding:"required"`
|
||||
}
|
||||
|
||||
// GetMessage 提示消息
|
||||
func (p PrintETransitBindValidator) GetMessage() validate.ValidatorMessages {
|
||||
func (p PrintTransitBindValidator) GetMessage() validate.ValidatorMessages {
|
||||
return validate.ValidatorMessages{
|
||||
"Codes.required": "codes不能为空",
|
||||
}
|
||||
@@ -38,8 +38,8 @@ func (p PrintETransitBindValidator) GetMessage() validate.ValidatorMessages {
|
||||
|
||||
// PrintBarCodeValidator 创建产品
|
||||
type PrintBarCodeValidator struct {
|
||||
Number int `form:"number" json:"number"`
|
||||
ProductId int `form:"product_id" json:"product_id" validate:"required"`
|
||||
Number int32 `form:"number" json:"number"`
|
||||
ProductId int64 `form:"product_id" json:"product_id" validate:"required"`
|
||||
}
|
||||
|
||||
// GetMessage 提示消息
|
||||
@@ -50,7 +50,7 @@ func (p PrintBarCodeValidator) GetMessage() validate.ValidatorMessages {
|
||||
}
|
||||
|
||||
type PrintBarCodeUseValidator struct {
|
||||
Id int `form:"id" json:"id" validate:"required"`
|
||||
Id int64 `form:"id" json:"id" validate:"required"`
|
||||
}
|
||||
|
||||
// GetMessage 提示消息
|
||||
@@ -61,7 +61,7 @@ func (p PrintBarCodeUseValidator) GetMessage() validate.ValidatorMessages {
|
||||
}
|
||||
|
||||
type PrintOrderValidator struct {
|
||||
Status uint8 `form:"status" json:"status"`
|
||||
Status int32 `form:"status" json:"status"`
|
||||
OrderSn string `form:"order_sn" json:"order_sn"`
|
||||
Time string `form:"time" json:"time"`
|
||||
}
|
||||
@@ -72,8 +72,8 @@ func (p PrintOrderValidator) GetMessage() validate.ValidatorMessages {
|
||||
}
|
||||
|
||||
type PrintOrderUseValidator struct {
|
||||
Id int `form:"id" json:"id" validate:"required"`
|
||||
TransitId int `form:"transit_id" json:"transit_id"`
|
||||
Id int64 `form:"id" json:"id" validate:"required"`
|
||||
TransitId int64 `form:"transit_id" json:"transit_id"`
|
||||
}
|
||||
|
||||
// GetMessage 提示消息
|
||||
|
||||
Reference in New Issue
Block a user