♻️ Refactor and clean up the code
This commit is contained in:
@@ -132,11 +132,19 @@ export class ConfigMetadata {
|
||||
*/
|
||||
"lastUpdated": string;
|
||||
|
||||
/**
|
||||
* 配置版本号
|
||||
*/
|
||||
"version": string;
|
||||
|
||||
/** Creates a new ConfigMetadata instance. */
|
||||
constructor($$source: Partial<ConfigMetadata> = {}) {
|
||||
if (!("lastUpdated" in $$source)) {
|
||||
this["lastUpdated"] = "";
|
||||
}
|
||||
if (!("version" in $$source)) {
|
||||
this["version"] = "";
|
||||
}
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
@@ -978,7 +986,7 @@ export class UpdatesConfig {
|
||||
/**
|
||||
* 当前版本号
|
||||
*/
|
||||
"Version": string;
|
||||
"version": string;
|
||||
|
||||
/**
|
||||
* 是否自动更新
|
||||
@@ -992,8 +1000,8 @@ export class UpdatesConfig {
|
||||
|
||||
/** Creates a new UpdatesConfig instance. */
|
||||
constructor($$source: Partial<UpdatesConfig> = {}) {
|
||||
if (!("Version" in $$source)) {
|
||||
this["Version"] = "";
|
||||
if (!("version" in $$source)) {
|
||||
this["version"] = "";
|
||||
}
|
||||
if (!("autoUpdate" in $$source)) {
|
||||
this["autoUpdate"] = false;
|
||||
|
@@ -2,7 +2,7 @@
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
/**
|
||||
* ConfigService 提供基于 Viper 的配置管理功能
|
||||
* ConfigService 应用配置服务
|
||||
* @module
|
||||
*/
|
||||
|
||||
@@ -42,6 +42,14 @@ export function ResetConfig(): Promise<void> & { cancel(): void } {
|
||||
return $resultPromise;
|
||||
}
|
||||
|
||||
/**
|
||||
* ServiceShutdown 关闭服务
|
||||
*/
|
||||
export function ServiceShutdown(): Promise<void> & { cancel(): void } {
|
||||
let $resultPromise = $Call.ByID(3963562361) as any;
|
||||
return $resultPromise;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set 设置配置项
|
||||
*/
|
||||
|
@@ -39,10 +39,10 @@ export function GetKeyBindingConfig(): Promise<models$0.KeyBindingConfig | null>
|
||||
}
|
||||
|
||||
/**
|
||||
* Shutdown 关闭服务
|
||||
* ServiceShutdown 关闭服务
|
||||
*/
|
||||
export function Shutdown(): Promise<void> & { cancel(): void } {
|
||||
let $resultPromise = $Call.ByID(3046465148) as any;
|
||||
export function ServiceShutdown(): Promise<void> & { cancel(): void } {
|
||||
let $resultPromise = $Call.ByID(1610182855) as any;
|
||||
return $resultPromise;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user