api.ts 521 B

1234567891011121314151617181920212223242526272829
  1. import { request } from '/@/utils/service';
  2. const apiPrefix = '/api/choice/listings/';
  3. export function getTableData(query: any) {
  4. return request({
  5. url: apiPrefix,
  6. method: 'GET',
  7. params: query
  8. });
  9. }
  10. export function getShopOptions() {
  11. return request({
  12. url: '/api/choice/marketplace_shops/',
  13. method: 'GET',
  14. });
  15. }
  16. // 导出
  17. export function exportData(query: any) {
  18. return request({
  19. url: apiPrefix + 'export_data/',
  20. method: 'GET',
  21. params: query,
  22. responseType: 'blob'
  23. });
  24. }