refactor(projects): rename directory serviceAlova to service-alova

This commit is contained in:
Soybean
2024-10-24 23:52:45 +08:00
parent a2178d3405
commit e019defef3
15 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
import { alova } from '../request';
/** get constant routes */
export function fetchGetConstantRoutes() {
return alova.Get<Api.Route.MenuRoute[]>('/route/getConstantRoutes');
}
/** get user routes */
export function fetchGetUserRoutes() {
return alova.Get<Api.Route.UserRoute>('/route/getUserRoutes');
}
/**
* whether the route is exist
*
* @param routeName route name
*/
export function fetchIsRouteExist(routeName: string) {
return alova.Get<boolean>('/route/isRouteExist', { params: { routeName } });
}