setting.js 534 B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. const BaseService = require('./base');
  3. class SettingService extends BaseService {
  4. async autoLaunchEnable() {
  5. const callResult = await this.ipcCall('base.autoLaunchEnable');
  6. return callResult.data;
  7. }
  8. async autoLaunchDisable() {
  9. const callResult = await this.ipcCall('base.autoLaunchDisable');
  10. return callResult.data;
  11. }
  12. async autoLaunchIsEnabled() {
  13. const callResult = await this.ipcCall('base.autoLaunchIsEnabled');
  14. return callResult.data;
  15. }
  16. }
  17. module.exports = SettingService;