✨ feat: Added the option to restore subscription, and updated the relevant description and confirmation information.
This commit is contained in:
+4
-4
@@ -2004,10 +2004,6 @@ declare namespace API {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type StopUserSubscribeRequest = {
|
||||
user_subscribe_id: number;
|
||||
};
|
||||
|
||||
type StripePayment = {
|
||||
method: string;
|
||||
client_secret: string;
|
||||
@@ -2167,6 +2163,10 @@ declare namespace API {
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
type ToggleUserSubscribeStatusRequest = {
|
||||
user_subscribe_id: number;
|
||||
};
|
||||
|
||||
type TosConfig = {
|
||||
tos_content: string;
|
||||
};
|
||||
|
||||
@@ -465,13 +465,13 @@ export async function resetUserSubscribeTraffic(
|
||||
);
|
||||
}
|
||||
|
||||
/** Stop user subscribe POST /v1/admin/user/subscribe/stop */
|
||||
export async function stopUserSubscribe(
|
||||
body: API.StopUserSubscribeRequest,
|
||||
/** Stop user subscribe POST /v1/admin/user/subscribe/toggle */
|
||||
export async function toggleUserSubscribeStatus(
|
||||
body: API.ToggleUserSubscribeStatusRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/user/subscribe/stop`,
|
||||
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/user/subscribe/toggle`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user