feat: 添加类型注释
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export default class RouterFactor {
|
||||
name: string;
|
||||
db: any;
|
||||
router: any;
|
||||
constructor({ router: _router, db: _db, name: _name }: any);
|
||||
/**
|
||||
* 创建列表数据路由
|
||||
*/
|
||||
createGetList(): void;
|
||||
/**
|
||||
* 创建详情路由
|
||||
*/
|
||||
createGetDetail(): void;
|
||||
/**
|
||||
* 修改数据
|
||||
*/
|
||||
createUpdate(): void;
|
||||
/**
|
||||
* 新增数据
|
||||
*/
|
||||
createAdd(): void;
|
||||
/**
|
||||
* 删除数据
|
||||
*/
|
||||
createDelete(): void;
|
||||
creaetBaseRouter(): void;
|
||||
}
|
||||
Reference in New Issue
Block a user