perf: optimize the naming of locale key
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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 };
|
||||
|
Reference in New Issue
Block a user