Files
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

32 lines
652 B
Go

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)
}