remove_partner_info.go 424 字节
/**
   @author: stevechan
   @date: 2020/12/29
   @note:
**/

package command

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

// 移除合伙人
type RemovePartnerInfoCommand struct {
	// 合伙人Id
	Id int64 `json:"id" valid:"Required"`
}

func (command *RemovePartnerInfoCommand) ValidateCommand() error {
	if command.Id == 0 {
		return lib.ThrowError(lib.ARG_ERROR, "合伙人id错误")
	}
	return nil
}