feat: webui-test-0

This commit is contained in:
手瓜一十雪 committed 2024-05-05 14:32:48 +08:00
1 parent 913de7044b
commit 208c748647
5 files changed
+228 -14

No files matched your search

+27 -6
View File
@@ -1,9 +1,9 @@
export interface OB11Config {
httpHost: string;
httpHost: "",
httpPort: number;
httpPostUrls: string[];
httpSecret: string;
wsHost: string;
httpSecret: "",
wsHost: "",
wsPort: number;
wsReverseUrls: string[];
enableHttp: boolean;
@@ -16,8 +16,8 @@ export interface OB11Config {
enableLocalFile2Url: boolean;
debug: boolean;
heartInterval: number;
token: string;
musicSignUrl: string;
token: "",
musicSignUrl: "",
}
class WebUiApiWrapper {
@@ -26,7 +26,28 @@ class WebUiApiWrapper {
}
public async getOB11Config(): Promise<OB11Config> {
return {} as OB11Config;
// 返回示例配置
return {
httpHost: "",
httpPort: 3000,
httpPostUrls: [],
httpSecret: "",
wsHost: "",
wsPort: 3000,
wsReverseUrls: [],
enableHttp: false,
enableHttpHeart: false,
enableHttpPost: false,
enableWs: false,
enableWsReverse: false,
messagePostFormat: 'array',
reportSelfMessage: false,
enableLocalFile2Url: false,
debug: false,
heartInterval: 60000,
token: "",
musicSignUrl: "",
};
}
}
export const WebUiApi = new WebUiApiWrapper();