diy.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import http from '../utils/http'
  2. const DiyApi = {
  3. async GetDiy(input: { type: 'space' | 'flat' }) {
  4. return http.get('/api/services/wxapp/Product/GetDiy', input) as Promise<IRestResult<string>>
  5. },
  6. async Get2dDiy() {
  7. return http.get('/api/services/wxapp/Product/Get2dDiy') as Promise<IRestResult<string>>
  8. },
  9. async GetFavlist(dto: any) {
  10. return http.get('/api/services/wxapp/Product/GetFavlist', dto) as Promise<IRestResult<string>>
  11. },
  12. async GetInspirelist(dto: any) {
  13. return http.get('/api/services/wxapp/Product/GetInspirelist', dto) as Promise<
  14. IRestResult<string>
  15. >
  16. },
  17. async GetBglist(dto: any) {
  18. return http.get('/api/services/wxapp/Product/GetBglist', dto) as Promise<IRestResult<string>>
  19. },
  20. async GetDiyList(dto: any) {
  21. return http.get('/api/services/wxapp/Product/GetDiyList', dto) as Promise<IRestResult<any>>
  22. },
  23. async RemoveDiy(dto: any) {
  24. return http.post('/api/services/wxapp/Product/RemoveDiy', dto) as Promise<IRestResult<any>>
  25. },
  26. async Transbase(dto: any) {
  27. return http.post('/api/FileAuth/Transbase', dto) as Promise<IRestResult<any>>
  28. },
  29. }
  30. export default DiyApi