package command import "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/lib" type LoginBySecretKeyCommand struct { Secret string `json:"secret"` } func (login LoginBySecretKeyCommand) ValidateCommand() error { if len(login.Secret) == 0 { return lib.ThrowError(lib.ARG_ERROR, "登录参数错误") } return nil }