This commit is contained in:
2025-04-05 22:27:46 +08:00
parent 0570acb78f
commit 320bc93c69
3 changed files with 18 additions and 2 deletions

View File

@@ -204,3 +204,16 @@ export class Query {
}
export { adapter };
export class BaseQuery<T extends Query> {
query: T;
constructor({ query }: { query: T }) {
this.query = query;
}
post<R = any, P = any>(data: P, options?: DataOpts): Promise<Result<R>> {
return this.query.post(data, options);
}
get<R = any, P = any>(data: P, options?: DataOpts): Promise<Result<R>> {
return this.query.get(data, options);
}
}