fix: webapi config
This commit is contained in:
1 parent
ce19cc447a
commit
6092f9770c
2 files changed
+61
-91
No files matched your search
@@ -1,10 +1,32 @@
|
||||
export interface OB11Config {
|
||||
httpHost: string;
|
||||
httpPort: number;
|
||||
httpPostUrls: string[];
|
||||
httpSecret: string;
|
||||
wsHost: string;
|
||||
wsPort: number;
|
||||
wsReverseUrls: string[];
|
||||
enableHttp: boolean;
|
||||
enableHttpHeart: boolean;
|
||||
enableHttpPost: boolean;
|
||||
enableWs: boolean;
|
||||
enableWsReverse: boolean;
|
||||
messagePostFormat: 'array' | 'string';
|
||||
reportSelfMessage: boolean;
|
||||
enableLocalFile2Url: boolean;
|
||||
debug: boolean;
|
||||
heartInterval: number;
|
||||
token: string;
|
||||
musicSignUrl: string;
|
||||
}
|
||||
|
||||
class WebUiApiWrapper {
|
||||
token: string = "";
|
||||
public async setConfig() {
|
||||
public async setOB11Config(config: OB11Config) {
|
||||
|
||||
}
|
||||
public async getConfig() {
|
||||
|
||||
public async getOB11Config(): Promise<OB11Config> {
|
||||
return {} as OB11Config;
|
||||
}
|
||||
}
|
||||
export const WebUiApi = new WebUiApiWrapper();
|
||||
Reference in new issue
Block a user