审查视图

pkg/application/users/command/admin_user_login.go 317 字节
唐旭辉 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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
}