* @function ImageService.prototype.getCollections * @description 返回当前影像服务中的影像集合列表(Collections)。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @returns {Promise} Promise 对象。
(callback)
| 44 | * @returns {Promise} Promise 对象。 |
| 45 | */ |
| 46 | getCollections(callback) { |
| 47 | var me = this; |
| 48 | var path = Util.convertPath('/collections'); |
| 49 | var url = Util.urlPathAppend(me.url, path); |
| 50 | return this._processAsync({ url, mehtod: 'GET', callback }); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * @function ImageService.prototype.getCollectionByID |
no test coverage detected