123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- import http from '../utils/http'
- const HomeApi = {
- async GetHomeCategory() {
- return http.get('/api/services/wxapp/Index/GetHomeCategory') as Promise<
- IRestResult<WxAlbumCategoryItemDto[]>
- >
- },
- async GetHomeCategoryDeep() {
- return http.get('/api/services/wxapp/Index/GetHomeCategoryDeep') as Promise<
- IRestResult<WxAlbumCategoryItemDto[]>
- >
- },
- async GetHomeThemeDeep() {
- return http.get('/api/services/wxapp/Index/GetHomeThemeDeep') as Promise<
- IRestResult<WxAlbumCategoryItemDto[]>
- >
- },
- async GetHomeCarousel() {
- return http.get('/api/services/wxapp/Index/GetHomeCarousel') as Promise<
- IRestResult<WxCarouselListItemDto[]>
- >
- },
- async GetHomeDetail() {
- return http.get('/api/services/wxapp/Index/GetHomeDetail') as Promise<
- IRestResult<WxAlbumCategoryDetailItemDto[]>
- >
- },
- async GetHomeDisplay() {
- return http.get('/api/services/wxapp/Index/GetHomeDisplay') as Promise<
- IRestResult<WxDisplayListItemDto[]>
- >
- },
- async GetHomeActive() {
- return http.get('/api/services/wxapp/Index/GetHomeActive') as Promise<
- IRestResult<WxDisplayListItemDto[]>
- >
- },
- async GetHomeAlbum() {
- return http.get('/api/services/wxapp/Index/GetHomeAlbum') as Promise<
- IRestResult<WxDisplayListItemDto[]>
- >
- },
- async GetExtraDetail() {
- return http.get('/api/services/wxapp/Index/GetExtraDetail') as Promise<
- IRestResult<WxDisplayListItemDto[]>
- >
- },
- 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
|