command_delete_menu_response.go 425 字节
package menu

import (
	"fmt"
	"github.com/astaxie/beego/validation"
)

type DeleteMenuResponse struct {
}

func (DeleteMenuResponse *DeleteMenuResponse) ValidateCommand() error {
	valid := validation.Validation{}
	b, err := valid.Valid(DeleteMenuResponse)
	if err != nil {
		return err
	}
	if !b {
		for _, validErr := range valid.Errors {
			return fmt.Errorf("%s  %s", validErr.Key, validErr.Message)
		}
	}
	return nil
}