🐛 fix(deps): Remove outdated @iconify/react dependency and add iconify-json packages
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
// @ts-ignore
|
||||
/* eslint-disable */
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** get app config GET /v1/admin/app/config */
|
||||
export async function getAppConfig(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.AppConfig }>('/v1/admin/app/config', {
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** update app config PUT /v1/admin/app/config */
|
||||
export async function updateAppConfig(body: API.AppConfig, options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/app/config', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** update app version PUT /v1/admin/app/version */
|
||||
export async function updateAppVersion(
|
||||
body: API.UpdateAppVersionRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/app/version', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** create app version POST /v1/admin/app/version */
|
||||
export async function createAppVersion(
|
||||
body: API.CreateAppVersionRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/app/version', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** delete app version DELETE /v1/admin/app/version */
|
||||
export async function deleteAppVersionInfo(
|
||||
body: API.DeleteAppVersionRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/app/version', {
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** set default app version PUT /v1/admin/app/version_default */
|
||||
export async function setDefaultAppVersionInfo(
|
||||
body: API.DefaultAppVersionRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/app/version_default', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** query app version info GET /v1/admin/app/version_list */
|
||||
export async function getAppVersionList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.GetAppVersionListParams,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: API.GetAppVersionListResponse }>(
|
||||
'/v1/admin/app/version_list',
|
||||
{
|
||||
method: 'GET',
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as announcement from './announcement';
|
||||
import * as app from './app';
|
||||
import * as console from './console';
|
||||
import * as coupon from './coupon';
|
||||
import * as document from './document';
|
||||
@@ -17,6 +18,7 @@ import * as tool from './tool';
|
||||
import * as user from './user';
|
||||
export default {
|
||||
announcement,
|
||||
app,
|
||||
console,
|
||||
coupon,
|
||||
document,
|
||||
|
||||
@@ -58,6 +58,51 @@ export async function deleteApplication(
|
||||
});
|
||||
}
|
||||
|
||||
/** 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', {
|
||||
|
||||
+114
-14
@@ -18,21 +18,59 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type AppConfig = {
|
||||
name: string;
|
||||
domains: string[];
|
||||
describe: string;
|
||||
startup_picture: string;
|
||||
startup_picture_skip_time: number;
|
||||
};
|
||||
|
||||
type Application = {
|
||||
id: number;
|
||||
name: string;
|
||||
platform: string;
|
||||
subscribe_type: string;
|
||||
icon: string;
|
||||
url: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
};
|
||||
|
||||
type ApplicationPlatform = {
|
||||
ios?: ApplicationVersion[];
|
||||
mac?: ApplicationVersion[];
|
||||
linux?: ApplicationVersion[];
|
||||
android?: ApplicationVersion[];
|
||||
windows?: ApplicationVersion[];
|
||||
harmony?: ApplicationVersion[];
|
||||
};
|
||||
|
||||
type ApplicationResponse = {
|
||||
windows: Application[];
|
||||
mac: Application[];
|
||||
linux: Application[];
|
||||
android: Application[];
|
||||
ios: Application[];
|
||||
applications: ApplicationResponseInfo[];
|
||||
};
|
||||
|
||||
type ApplicationResponseInfo = {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
subscription_protocol: string;
|
||||
platform: ApplicationPlatform;
|
||||
};
|
||||
|
||||
type ApplicationVersion = {
|
||||
id: number;
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
is_default: boolean;
|
||||
};
|
||||
|
||||
type AppVersion = {
|
||||
id: number;
|
||||
os: string;
|
||||
version: string;
|
||||
download_url: string;
|
||||
describe: string;
|
||||
default_version: boolean;
|
||||
};
|
||||
|
||||
type AuthConfig = {
|
||||
@@ -92,11 +130,26 @@ declare namespace API {
|
||||
};
|
||||
|
||||
type CreateApplicationRequest = {
|
||||
name: string;
|
||||
platform: 'windows' | 'mac' | 'linux' | 'android' | 'ios';
|
||||
subscribe_type: string;
|
||||
icon: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
};
|
||||
|
||||
type CreateApplicationVersionRequest = {
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
platform: 'windows' | 'mac' | 'linux' | 'android' | 'ios' | 'harmony';
|
||||
is_default: boolean;
|
||||
application_id: number;
|
||||
};
|
||||
|
||||
type CreateAppVersionRequest = {
|
||||
os: string;
|
||||
version: string;
|
||||
download_url: string;
|
||||
describe: string;
|
||||
};
|
||||
|
||||
type CreateCouponRequest = {
|
||||
@@ -214,6 +267,10 @@ declare namespace API {
|
||||
currency_symbol: string;
|
||||
};
|
||||
|
||||
type DefaultAppVersionRequest = {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type DeleteAnnouncementRequest = {
|
||||
id: number;
|
||||
};
|
||||
@@ -222,6 +279,14 @@ declare namespace API {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type DeleteApplicationVersionRequest = {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type DeleteAppVersionRequest = {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type DeleteCouponRequest = {
|
||||
id: number;
|
||||
};
|
||||
@@ -333,6 +398,23 @@ declare namespace API {
|
||||
id: number;
|
||||
};
|
||||
|
||||
type GetAppVersionListParams = {
|
||||
page: number;
|
||||
size: number;
|
||||
os?: string;
|
||||
};
|
||||
|
||||
type GetAppVersionListRequest = {
|
||||
page: number;
|
||||
size: number;
|
||||
os?: string;
|
||||
};
|
||||
|
||||
type GetAppVersionListResponse = {
|
||||
total: number;
|
||||
list: AppVersion[];
|
||||
};
|
||||
|
||||
type GetCouponListParams = {
|
||||
page: number;
|
||||
size: number;
|
||||
@@ -984,10 +1066,28 @@ declare namespace API {
|
||||
|
||||
type UpdateApplicationRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
subscribe_type: string;
|
||||
icon: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
};
|
||||
|
||||
type UpdateApplicationVersionRequest = {
|
||||
id: number;
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
platform: 'windows' | 'mac' | 'linux' | 'android' | 'ios' | 'harmony';
|
||||
is_default: boolean;
|
||||
application_id: number;
|
||||
};
|
||||
|
||||
type UpdateAppVersionRequest = {
|
||||
id: number;
|
||||
os: string;
|
||||
version: string;
|
||||
download_url: string;
|
||||
describe: string;
|
||||
};
|
||||
|
||||
type UpdateCouponRequest = {
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
/* eslint-disable */
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** Get Tos Content GET /v1/common/app/info */
|
||||
export async function getAppInfo(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetAppInfoResponse }>('/v1/common/app/info', {
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get verification code POST /v1/common/send_code */
|
||||
export async function sendEmailCode(body: API.SendCodeRequest, options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.SendCodeResponse }>('/v1/common/send_code', {
|
||||
|
||||
+52
-9
@@ -10,21 +10,59 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type AppConfig = {
|
||||
name: string;
|
||||
domains: string[];
|
||||
describe: string;
|
||||
startup_picture: string;
|
||||
startup_picture_skip_time: number;
|
||||
};
|
||||
|
||||
type Application = {
|
||||
id: number;
|
||||
name: string;
|
||||
platform: string;
|
||||
subscribe_type: string;
|
||||
icon: string;
|
||||
url: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
};
|
||||
|
||||
type ApplicationPlatform = {
|
||||
ios?: ApplicationVersion[];
|
||||
mac?: ApplicationVersion[];
|
||||
linux?: ApplicationVersion[];
|
||||
android?: ApplicationVersion[];
|
||||
windows?: ApplicationVersion[];
|
||||
harmony?: ApplicationVersion[];
|
||||
};
|
||||
|
||||
type ApplicationResponse = {
|
||||
windows: Application[];
|
||||
mac: Application[];
|
||||
linux: Application[];
|
||||
android: Application[];
|
||||
ios: Application[];
|
||||
applications: ApplicationResponseInfo[];
|
||||
};
|
||||
|
||||
type ApplicationResponseInfo = {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
subscription_protocol: string;
|
||||
platform: ApplicationPlatform;
|
||||
};
|
||||
|
||||
type ApplicationVersion = {
|
||||
id: number;
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
is_default: boolean;
|
||||
};
|
||||
|
||||
type AppVersion = {
|
||||
id: number;
|
||||
os: string;
|
||||
version: string;
|
||||
download_url: string;
|
||||
describe: string;
|
||||
default_version: boolean;
|
||||
};
|
||||
|
||||
type AuthConfig = {
|
||||
@@ -113,6 +151,11 @@ declare namespace API {
|
||||
created_at: number;
|
||||
};
|
||||
|
||||
type GetAppInfoResponse = {
|
||||
config: AppConfig;
|
||||
versions: AppVersion[];
|
||||
};
|
||||
|
||||
type GetGlobalConfigResponse = {
|
||||
site: SiteConfig;
|
||||
verify: VeifyConfig;
|
||||
|
||||
Reference in New Issue
Block a user