* @function FieldService.prototype.getFields * @description 字段查询服务。 * @param {FieldParameters} params - 字段信息查询参数类。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @returns {Promise} Promise 对象。
(params, callback)
| 36 | * @returns {Promise} Promise 对象。 |
| 37 | */ |
| 38 | getFields(params, callback) { |
| 39 | var me = this; |
| 40 | var getFieldsService = new GetFieldsService(me.url, { |
| 41 | proxy: me.options.proxy, |
| 42 | withCredentials: me.options.withCredentials, |
| 43 | crossOrigin: me.options.crossOrigin, |
| 44 | headers: me.options.headers, |
| 45 | datasource: params.datasource, |
| 46 | dataset: params.dataset |
| 47 | }); |
| 48 | return getFieldsService.processAsync(callback); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * @function FieldService.prototype.getFieldStatisticsInfo |
no test coverage detected