feat(affiliate): Affiliate Detail

This commit is contained in:
web@ppanel
2024-11-21 14:48:24 +07:00
parent 98c1c3047f
commit a782c17a59
14 changed files with 135 additions and 28 deletions
+8
View File
@@ -21,3 +21,11 @@ export async function getGlobalConfig(options?: { [key: string]: any }) {
...(options || {}),
});
}
/** Get Tos Content GET /v1/common/site/tos */
export async function getTos(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.GetTosResponse }>('/v1/common/site/tos', {
method: 'GET',
...(options || {}),
});
}
+4
View File
@@ -25,6 +25,10 @@ declare namespace API {
subscribe: SubscribeConfig;
};
type GetTosResponse = {
tos_content: string;
};
type InviteConfig = {
forced_invite: boolean;
};
+1 -1
View File
@@ -212,6 +212,7 @@ declare namespace API {
};
type QueryUserAffiliateResponse = {
sum: number;
list: UserAffiliate[];
total: number;
};
@@ -353,7 +354,6 @@ declare namespace API {
type UserAffiliate = {
email: string;
avatar: string;
telegram: number;
registered_at: number;
enable: boolean;
};