perf: optimize the naming of locale key

This commit is contained in:
vince
2024-07-10 21:55:16 +08:00
parent 25a1e93ab2
commit 4674380266
59 changed files with 664 additions and 1253 deletions

View File

@@ -1,14 +1,14 @@
import type { UserInfo } from '@vben/types';
import type { UserApiType } from '../types';
import type { UserApi } from '../types';
import { requestClient } from '#/forward';
/**
* 登录
*/
async function userLogin(data: UserApiType.LoginParams) {
return requestClient.post<UserApiType.LoginResult>('/auth/login', data);
async function userLogin(data: UserApi.LoginParams) {
return requestClient.post<UserApi.LoginResult>('/auth/login', data);
}
/**

View File

@@ -1,4 +1,4 @@
namespace UserApiType {
namespace UserApi {
/** 登录接口参数 */
export interface LoginParams {
password: string;
@@ -16,4 +16,4 @@ namespace UserApiType {
}
}
export type { UserApiType };
export type { UserApi };