update_admin_pwd.go 398 字节
package command

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

//UpdateAdminUserPwdCommand 修改密码
type UpdateAdminUserPwdCommand struct {
	Id int64 `json:"id"`
	//密码
	Password string `json:"password"`
}

func (command UpdateAdminUserPwdCommand) ValidateCommand() error {
	if len(command.Password) == 0 {
		return lib.ThrowError(lib.ARG_ERROR, "密码必填")
	}
	return nil
}