fix: add startcode

This commit is contained in:
2024-06-26 21:55:23 +08:00
parent 776c1287b8
commit c0a1460ad8
3 changed files with 36 additions and 2 deletions

View File

@@ -9,7 +9,10 @@ export type RouterCode = {
project: string;
code: string;
type: RouterCodeType;
middleware: string[];
next: string;
};
export enum RouterCodeType {
route = 'route',
middleware = 'middleware',
@@ -23,6 +26,8 @@ export class RouterCodeModel extends Model {
declare project: string;
declare code: string;
declare type: RouterCodeType;
declare middleware: string[];
declare next: string; // 如果是中间件,不存在
}
RouterCodeModel.init(
{