2021-09-09 22:38:39 +08:00
|
|
|
import Koa from 'koa';
|
2021-12-06 21:23:34 +08:00
|
|
|
import { Database } from '@nocobase/database';
|
|
|
|
import { Action } from '@nocobase/resourcer';
|
2021-09-09 22:38:39 +08:00
|
|
|
|
|
|
|
export type Next = () => Promise<any>;
|
|
|
|
|
|
|
|
export interface Context extends Koa.Context {
|
|
|
|
db: Database;
|
|
|
|
action: Action;
|
|
|
|
body: any;
|
2021-12-06 21:23:34 +08:00
|
|
|
[key: string]: any;
|
2021-09-09 22:38:39 +08:00
|
|
|
}
|
|
|
|
|
2021-12-06 21:23:34 +08:00
|
|
|
export function registerActions(api: any) {}
|
2021-09-09 22:38:39 +08:00
|
|
|
|
2021-12-06 21:23:34 +08:00
|
|
|
export default {};
|