import http from '../utils/http' const DiyApi = { async GetDiy(input: { type: 'space' | 'flat' }) { return http.get('/api/services/wxapp/Product/GetDiy', input) as Promise> }, async Get2dDiy() { return http.get('/api/services/wxapp/Product/Get2dDiy') as Promise> }, async GetFavlist(dto: any) { return http.get('/api/services/wxapp/Product/GetFavlist', dto) as Promise> }, async GetInspirelist(dto: any) { return http.get('/api/services/wxapp/Product/GetInspirelist', dto) as Promise< IRestResult > }, async GetBglist(dto: any) { return http.get('/api/services/wxapp/Product/GetBglist', dto) as Promise> }, async GetDiyList(dto: any) { return http.get('/api/services/wxapp/Product/GetDiyList', dto) as Promise> }, async RemoveDiy(dto: any) { return http.post('/api/services/wxapp/Product/RemoveDiy', dto) as Promise> }, async Transbase(dto: any) { return http.post('/api/FileAuth/Transbase', dto) as Promise> }, } export default DiyApi