This commit is contained in:
2025-11-18 01:25:50 +08:00
parent ba171fb744
commit 388705b646
5 changed files with 47 additions and 10 deletions

View File

@@ -5,4 +5,6 @@ export * from './process/index.ts';
export * from './proxy/index.ts';
export * from './local-app-manager/index.ts';
export * from './local-app-manager/index.ts';
export * from './query/index.ts';

View File

@@ -0,0 +1,19 @@
import { DataOpts, Query } from "@kevisual/query/query";
import { AssistantConfig } from "../config/index.ts";
export class AssistantQuery {
config: AssistantConfig;
query: Query ;
constructor(config: AssistantConfig) {
config.checkMounted();
this.config = config;
this.query = new Query({ url: config.getRegistry() + '/api/router' });
}
post(body: any, options?: DataOpts) {
return this.query.post(body, options);
}
get(body: any, options?: DataOpts) {
return this.query.get(body, options);
}
}