mirror of
https://github.com/aelve/guide.git
synced 2024-11-27 18:12:44 +03:00
22 lines
461 B
TypeScript
22 lines
461 B
TypeScript
import axios from 'axios'
|
|
|
|
class CategoryItemService {
|
|
async getCategoryItem(): Promise<ICategoryItem[]> {
|
|
const { data } = await axios.get('api/category/sth6l9jl', {})
|
|
|
|
return data;
|
|
}
|
|
}
|
|
|
|
export interface ICategoryItem {
|
|
status?: string,
|
|
group?: string,
|
|
uid?: string,
|
|
items?: any[],
|
|
title?: string,
|
|
description?: object
|
|
}
|
|
|
|
const catItemServiceInstance = new CategoryItemService()
|
|
|
|
export { catItemServiceInstance as CategoryItemService } |