diff --git a/src/api/carousal.ts b/src/api/carousal.ts index 7abe47e..bdc591a 100644 --- a/src/api/carousal.ts +++ b/src/api/carousal.ts @@ -1,10 +1,13 @@ -import type { CreateCarousalsRequest } from '@/model/carousals' +import type { CreateCarousalsRequest, TypeList } from '@/model/carousals' import httpClient from '@/api/httpClient' function getCarousalList() { return httpClient.get('/carousals/active-list') } - +function getTypeList() { + return httpClient.get('/categories/list') +} export default { getCarousalList, + getTypeList, } diff --git a/src/model/carousals.ts b/src/model/carousals.ts index c5a8d96..0fd964f 100644 --- a/src/model/carousals.ts +++ b/src/model/carousals.ts @@ -4,3 +4,10 @@ export interface CreateCarousalsRequest { targetUrl: string targetId?: string } + +export interface TypeList { + id: string + code: string + name: string + isClick?: boolean +} diff --git a/src/pages/pet-manual/index.vue b/src/pages/pet-manual/index.vue index 50429da..c65f987 100644 --- a/src/pages/pet-manual/index.vue +++ b/src/pages/pet-manual/index.vue @@ -1,5 +1,5 @@