♻️ refactor: Remove application management forms and related configurations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as ads from './ads';
|
||||
|
||||
@@ -2,133 +2,6 @@
|
||||
/* eslint-disable */
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** Get application GET /v1/admin/system/application */
|
||||
export async function getApplication(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.ApplicationResponse }>(
|
||||
'/v1/admin/system/application',
|
||||
{
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** Update application PUT /v1/admin/system/application */
|
||||
export async function updateApplication(
|
||||
body: API.UpdateApplicationRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/application', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Create application POST /v1/admin/system/application */
|
||||
export async function createApplication(
|
||||
body: API.CreateApplicationRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/application', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Delete application DELETE /v1/admin/system/application */
|
||||
export async function deleteApplication(
|
||||
body: API.DeleteApplicationRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/application', {
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** get application config GET /v1/admin/system/application_config */
|
||||
export async function getApplicationConfig(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.ApplicationConfig }>(
|
||||
'/v1/admin/system/application_config',
|
||||
{
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** update application config PUT /v1/admin/system/application_config */
|
||||
export async function updateApplicationConfig(
|
||||
body: API.ApplicationConfig,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/application_config', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Update application version PUT /v1/admin/system/application_version */
|
||||
export async function updateApplicationVersion(
|
||||
body: API.UpdateApplicationVersionRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/application_version', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Create application version POST /v1/admin/system/application_version */
|
||||
export async function createApplicationVersion(
|
||||
body: API.CreateApplicationVersionRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/application_version', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Delete application DELETE /v1/admin/system/application_version */
|
||||
export async function deleteApplicationVersion(
|
||||
body: API.DeleteApplicationVersionRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/application_version', {
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get Currency Config GET /v1/admin/system/currency_config */
|
||||
export async function getCurrencyConfig(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.CurrencyConfig }>('/v1/admin/system/currency_config', {
|
||||
|
||||
-54
@@ -41,15 +41,6 @@ declare namespace API {
|
||||
subscribe_type: string;
|
||||
};
|
||||
|
||||
type ApplicationConfig = {
|
||||
app_id: number;
|
||||
encryption_key: string;
|
||||
encryption_method: string;
|
||||
domains: string[];
|
||||
startup_picture: string;
|
||||
startup_picture_skip_time: number;
|
||||
};
|
||||
|
||||
type ApplicationPlatform = {
|
||||
ios?: ApplicationVersion[];
|
||||
macos?: ApplicationVersion[];
|
||||
@@ -223,23 +214,6 @@ declare namespace API {
|
||||
content: string;
|
||||
};
|
||||
|
||||
type CreateApplicationRequest = {
|
||||
icon: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
platform: ApplicationPlatform;
|
||||
};
|
||||
|
||||
type CreateApplicationVersionRequest = {
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
platform: 'windows' | 'mac' | 'linux' | 'android' | 'ios' | 'harmony';
|
||||
is_default: boolean;
|
||||
application_id: number;
|
||||
};
|
||||
|
||||
type CreateBatchSendEmailTaskRequest = {
|
||||
subject: string;
|
||||
content: string;
|
||||
@@ -424,14 +398,6 @@ declare namespace API {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type DeleteApplicationRequest = {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type DeleteApplicationVersionRequest = {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type DeleteCouponRequest = {
|
||||
id: number;
|
||||
};
|
||||
@@ -1682,25 +1648,6 @@ declare namespace API {
|
||||
popup: boolean;
|
||||
};
|
||||
|
||||
type UpdateApplicationRequest = {
|
||||
id: number;
|
||||
icon: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
platform: ApplicationPlatform;
|
||||
};
|
||||
|
||||
type UpdateApplicationVersionRequest = {
|
||||
id: number;
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
platform: 'windows' | 'mac' | 'linux' | 'android' | 'ios' | 'harmony';
|
||||
is_default: boolean;
|
||||
application_id: number;
|
||||
};
|
||||
|
||||
type UpdateAuthMethodConfigRequest = {
|
||||
id: number;
|
||||
method: string;
|
||||
@@ -1795,7 +1742,6 @@ declare namespace API {
|
||||
scheme?: string;
|
||||
user_agent: string;
|
||||
is_default: boolean;
|
||||
proxy_template: string;
|
||||
template: string;
|
||||
output_format: string;
|
||||
download_link?: DownloadLink;
|
||||
|
||||
Reference in New Issue
Block a user