search-bid.js 596 B

1234567891011121314151617181920212223242526
  1. import SearchListApiBase from './base'
  2. import { ajaxGetSearchBidList } from '../api/search-bid'
  3. export default class SearchBidListApi extends SearchListApiBase {
  4. constructor(config) {
  5. super(config)
  6. }
  7. /**
  8. * 覆写请求
  9. */
  10. async ajaxQuery(params) {
  11. const type = params._expand.type
  12. delete params._expand
  13. return ajaxGetSearchBidList(type, params).then((res) => {
  14. let success = res?.error_code === 0
  15. return {
  16. success: success,
  17. list: res.data?.list || [],
  18. total: res.data?.total || 0,
  19. origin: res.data
  20. }
  21. })
  22. }
  23. }