作者 王健

更新【request valid】

... ... @@ -14,7 +14,7 @@ type ConvertCompanyStatusCommand struct {
}
func (convertCompanyStatusCommand *ConvertCompanyStatusCommand) Valid(validation *validation.Validation) {
_ = validation.SetError("CustomValid", "未实现的自定义认证")
// _ = validation.SetError("CustomValid", "未实现的自定义认证")
}
func (convertCompanyStatusCommand *ConvertCompanyStatusCommand) ValidateCommand() error {
... ...
... ... @@ -22,7 +22,7 @@ type CreateCompanyCommand struct {
}
func (createCompanyCommand *CreateCompanyCommand) Valid(validation *validation.Validation) {
_ = validation.SetError("CustomValid", "未实现的自定义认证")
// _ = validation.SetError("CustomValid", "未实现的自定义认证")
}
func (createCompanyCommand *CreateCompanyCommand) ValidateCommand() error {
... ...
... ... @@ -12,7 +12,7 @@ type RemoveCompanyCommand struct {
}
func (removeCompanyCommand *RemoveCompanyCommand) Valid(validation *validation.Validation) {
_ = validation.SetError("CustomValid", "未实现的自定义认证")
// _ = validation.SetError("CustomValid", "未实现的自定义认证")
}
func (removeCompanyCommand *RemoveCompanyCommand) ValidateCommand() error {
... ...
... ... @@ -16,7 +16,7 @@ type SetCompanyAdminCommand struct {
}
func (setCompanyAdminCommand *SetCompanyAdminCommand) Valid(validation *validation.Validation) {
_ = validation.SetError("CustomValid", "未实现的自定义认证")
// _ = validation.SetError("CustomValid", "未实现的自定义认证")
}
func (setCompanyAdminCommand *SetCompanyAdminCommand) ValidateCommand() error {
... ...
... ... @@ -24,7 +24,7 @@ type UpdateCompanyCommand struct {
}
func (updateCompanyCommand *UpdateCompanyCommand) Valid(validation *validation.Validation) {
_ = validation.SetError("CustomValid", "未实现的自定义认证")
// _ = validation.SetError("CustomValid", "未实现的自定义认证")
}
func (updateCompanyCommand *UpdateCompanyCommand) ValidateCommand() error {
... ...
... ... @@ -12,7 +12,7 @@ type GetCompanyQuery struct {
}
func (getCompanyQuery *GetCompanyQuery) Valid(validation *validation.Validation) {
_ = validation.SetError("CustomValid", "未实现的自定义认证")
// _ = validation.SetError("CustomValid", "未实现的自定义认证")
}
func (getCompanyQuery *GetCompanyQuery) ValidateQuery() error {
... ...
... ... @@ -14,7 +14,7 @@ type ListCompanyQuery struct {
}
func (listCompanyQuery *ListCompanyQuery) Valid(validation *validation.Validation) {
_ = validation.SetError("CustomValid", "未实现的自定义认证")
// _ = validation.SetError("CustomValid", "未实现的自定义认证")
}
func (listCompanyQuery *ListCompanyQuery) ValidateQuery() error {
... ...