admin_user_login.go 311 字节
package command

import "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/lib"

type LoginBySecretKeyCommand struct {
	Code string `json:"code"`
}

func (login LoginBySecretKeyCommand) ValidateCommand() error {
	if len(login.Code) == 0 {
		return lib.ThrowError(lib.ARG_ERROR, "登录参数错误")
	}
	return nil
}