update
This commit is contained in:
@@ -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';
|
||||
19
assistant/src/module/assistant/query/index.ts
Normal file
19
assistant/src/module/assistant/query/index.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user