mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
32 lines
787 B
TypeScript
32 lines
787 B
TypeScript
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 setOB11Config(config: OB11Config) {
|
|
|
|
}
|
|
public async getOB11Config(): Promise<OB11Config> {
|
|
return {} as OB11Config;
|
|
}
|
|
}
|
|
export const WebUiApi = new WebUiApiWrapper(); |