feat(imei): Add IMEI related internationalization support and menu items

This commit is contained in:
web@ppanel
2025-02-12 16:34:23 +07:00
parent b4946f7a06
commit 13c33378aa
204 changed files with 252 additions and 399 deletions
-31
View File
@@ -36,37 +36,6 @@ export async function appleLoginCallback(
});
}
/** Facebook Login Callback GET /v1/auth/oauth/callback/facebook */
export async function facebookLoginCallback(options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>('/v1/auth/oauth/callback/facebook', {
method: 'GET',
...(options || {}),
});
}
/** Google Login Callback GET /v1/auth/oauth/callback/google */
export async function googleLoginCallback(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GoogleLoginCallbackParams,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: any }>('/v1/auth/oauth/callback/google', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** Telegram Login Callback GET /v1/auth/oauth/callback/telegram */
export async function telegramLoginCallback(options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>('/v1/auth/oauth/callback/telegram', {
method: 'GET',
...(options || {}),
});
}
/** OAuth login POST /v1/auth/oauth/login */
export async function oAuthLogin(body: API.OAthLoginRequest, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.OAuthLoginResponse }>('/v1/auth/oauth/login', {
-6
View File
@@ -170,11 +170,6 @@ declare namespace API {
tos_content: string;
};
type GoogleLoginCallbackParams = {
code: string;
state: string;
};
type GoogleLoginCallbackRequest = {
code: string;
state: string;
@@ -595,7 +590,6 @@ declare namespace API {
auth_type: string;
auth_identifier: string;
verified: boolean;
area_code?: string;
};
type UserBalanceLog = {