feat: Added the option to restore subscription, and updated the relevant description and confirmation information.

This commit is contained in:
web@ppanel
2025-12-29 05:59:30 +00:00
parent bc451eea16
commit 5f5c33987e
5 changed files with 47 additions and 18 deletions
+4 -4
View File
@@ -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;
};
+4 -4
View File
@@ -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: {