package proxyser import "fmt" // IllegalInvUserError 非法推广用户 type IllegalInvUserError struct { UID uint64 Parent uint64 } func (i IllegalInvUserError) Error() string { return fmt.Sprintf("illegal invite uid: %d, parent: %d", i.UID, i.Parent) } // SelfInvError 自我推广错误 type SelfInvError struct { uid uint64 } func (s SelfInvError) Error() string { return fmt.Sprintf("self invitation error! uid: %d", s.uid) } // PromStrInvalidError 推广码无效错误 type PromStrInvalidError struct { PromCode string } func (p PromStrInvalidError) Error() string { return fmt.Sprintf("invalid promCode str: %s", p.PromCode) }