mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-29 08:11:32 +00:00
feat: add affiliate invite rebate flow and admin rebate-rate setting
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user