1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-27 18:12:44 +03:00
guide/front/client/service/CategoryItem.ts
2018-10-17 10:15:23 +03:00

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 }