按照示例代码测试了一下,其中文件名 `uset.ts` 应该为 `user.ts` 类名首字母要大写,都改完了,还是有个错: ```js const result = await this.app.model.test.user.findOne(); ``` 这句报错: src/app/controller/user.ts(5,35): error TS2339: Property 'model' does not exist on type 'Application'. 不知道怎么解决了……
按照示例代码测试了一下,其中文件名
uset.ts应该为user.ts类名首字母要大写,都改完了,还是有个错:
这句报错:
src/app/controller/user.ts(5,35): error TS2339: Property 'model' does not exist on type 'Application'.
不知道怎么解决了……