collect-list.js 531 B

1234567891011121314151617181920212223
  1. import CollectBidListApiBase from './base'
  2. import { ajaxCollectBidList } from '../api/collect-api'
  3. export default class CollectBidListApi extends CollectBidListApiBase {
  4. constructor(config) {
  5. super(config)
  6. }
  7. /**
  8. * 覆写请求
  9. */
  10. async ajaxQuery(params) {
  11. return ajaxCollectBidList(params).then((res) => {
  12. let success = res?.error_code === 0
  13. return {
  14. success: success,
  15. list: res.data?.res || [],
  16. total: res.data?.count || 0,
  17. origin: res.data
  18. }
  19. })
  20. }
  21. }