2020-09-15 01:40:56 +08:00
|
|
|
import { AbstractFetchRemote } from 'Remote/AbstractFetch';
|
2016-08-17 06:01:20 +08:00
|
|
|
|
2020-09-15 01:40:56 +08:00
|
|
|
class RemoteAdminFetch extends AbstractFetchRemote {
|
2016-08-17 06:01:20 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {?Function} fCallback
|
|
|
|
* @param {?} oData
|
|
|
|
*/
|
2021-12-03 19:32:21 +08:00
|
|
|
saveConfig(oData, fCallback) {
|
2021-12-03 06:15:24 +08:00
|
|
|
this.request('AdminSettingsUpdate', fCallback, oData);
|
2016-08-17 06:01:20 +08:00
|
|
|
}
|
|
|
|
|
2022-02-28 17:38:47 +08:00
|
|
|
/**
|
|
|
|
* @param {string} key
|
|
|
|
* @param {?scalar} value
|
|
|
|
* @param {?Function} fCallback
|
|
|
|
*/
|
|
|
|
saveSetting(key, value, fCallback) {
|
|
|
|
this.saveConfig({[key]: value}, fCallback);
|
|
|
|
}
|
|
|
|
|
2016-06-30 08:02:45 +08:00
|
|
|
}
|
|
|
|
|
2020-09-15 01:40:56 +08:00
|
|
|
export default new RemoteAdminFetch();
|