resource-api.js 445 Bytes
import Api from './api';

class ResourceApi extends Api {
  constructor() {
    super();
  }

  info(id) {
    return this._post('/ufoPlatform/resource/getResourceInfo', {
      id
    });
  }

  editResource(data) {
    return this._post('/ufoPlatform/resource/editResourceContentData', data);
  }

  editGoodsPool(data) {
    return this._post('/ufoPlatform/resource/batchEditResourceGoodsPool', data, true);
  }
}

export default ResourceApi;