feat: add affiliate invite rebate flow and admin rebate-rate setting

This commit is contained in:
VpSanta33
2026-04-24 21:41:26 +08:00
parent d162604f32
commit f03de00cb9
33 changed files with 1744 additions and 42 deletions

View File

@@ -122,6 +122,29 @@ export interface RegisterRequest {
turnstile_token?: string
promo_code?: string
invitation_code?: string
aff_code?: string
}
export interface AffiliateInvitee {
user_id: number
email: string
username: string
created_at?: string
}
export interface UserAffiliateDetail {
user_id: number
aff_code: string
inviter_id?: number | null
aff_count: number
aff_quota: number
aff_history_quota: number
invitees: AffiliateInvitee[]
}
export interface AffiliateTransferResponse {
transferred_quota: number
balance: number
}
export interface SendVerifyCodeRequest {