save
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 32s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 1s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 1s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s

This commit is contained in:
2026-10-21 10:25:09 +08:00
parent 4725649e33
commit d2b6d82d78
+2
View File
@@ -109,12 +109,14 @@ func (p BindValidator) GetMessage() validate.ValidatorMessages {
type BindUnbindValidator struct { type BindUnbindValidator struct {
HostCode string `form:"host_code" json:"host_code" validate:"required"` HostCode string `form:"host_code" json:"host_code" validate:"required"`
Type int32 `form:"type" json:"type" validate:"required"`
} }
// GetMessage 提示消息 // GetMessage 提示消息
func (p BindUnbindValidator) GetMessage() validate.ValidatorMessages { func (p BindUnbindValidator) GetMessage() validate.ValidatorMessages {
return validate.ValidatorMessages{ return validate.ValidatorMessages{
"HostCode.required": "缺少设备编码", "HostCode.required": "缺少设备编码",
"Type.required": "缺少类型",
} }
} }