import http from '../utils/http' const HomeApi = { async GetHomeCategory() { return http.get('/api/services/wxapp/Index/GetHomeCategory') as Promise< IRestResult > }, async GetHomeCategoryDeep() { return http.get('/api/services/wxapp/Index/GetHomeCategoryDeep') as Promise< IRestResult > }, async GetHomeThemeDeep() { return http.get('/api/services/wxapp/Index/GetHomeThemeDeep') as Promise< IRestResult > }, async GetHomeCarousel() { return http.get('/api/services/wxapp/Index/GetHomeCarousel') as Promise< IRestResult > }, async GetHomeDetail() { return http.get('/api/services/wxapp/Index/GetHomeDetail') as Promise< IRestResult > }, async GetHomeDisplay() { return http.get('/api/services/wxapp/Index/GetHomeDisplay') as Promise< IRestResult > }, async GetHomeActive() { return http.get('/api/services/wxapp/Index/GetHomeActive') as Promise< IRestResult > }, async GetHomeAlbum() { return http.get('/api/services/wxapp/Index/GetHomeAlbum') as Promise< IRestResult > }, async GetExtraDetail() { return http.get('/api/services/wxapp/Index/GetExtraDetail') as Promise< IRestResult > }, async GetActiveDetail(input: { id: number | string }) { return http.get('/api/services/wxapp/Index/GetActiveDetail', input) as Promise< IRestResult<{ name: string items: { name: string image: string children: string[] }[] }> > }, async GetAlbumCate(input: { id: number | string }) { return http.get('/api/services/wxapp/Index/GetAlbumCate', input) as Promise< IRestResult<{ name: string items: { name: string image: string children: string[] }[] }> > }, async GetExtraItemDetail(input: { id: number | string }) { return http.get('/api/services/wxapp/Index/GetActiveExtraDetail', input) as Promise< IRestResult<{ title: string albums: { title: string acname: string acid: number }[] }> > }, } export default HomeApi