feat: api suffix (#4065)

This commit is contained in:
sea
2024-08-07 13:42:33 +08:00
committed by GitHub
parent d9ba9917ff
commit 08391ad53e
18 changed files with 39 additions and 39 deletions

View File

@@ -21,13 +21,13 @@ export namespace AuthApi {
/**
* 登录
*/
export async function login(data: AuthApi.LoginParams) {
export async function loginApi(data: AuthApi.LoginParams) {
return requestClient.post<AuthApi.LoginResult>('/auth/login', data);
}
/**
* 获取用户权限码
*/
export async function getAccessCodes() {
export async function getAccessCodesApi() {
return requestClient.get<string[]>('/auth/codes');
}

View File

@@ -5,6 +5,6 @@ import { requestClient } from '#/api/request';
/**
* 获取用户所有菜单
*/
export async function getAllMenus() {
export async function getAllMenusApi() {
return requestClient.get<RouteRecordStringComponent[]>('/menu/all');
}

View File

@@ -5,6 +5,6 @@ import { requestClient } from '#/api/request';
/**
* 获取用户信息
*/
export async function getUserInfo() {
export async function getUserInfoApi() {
return requestClient.get<UserInfo>('/user/info');
}