Fork me on GitHub
摘要: ### 实现用户注册 1. 我们先使用命令创建两个模块,分别是用户模块和授权模块 ``` nest g resource auth nest g resource user ``` 2. 编写用户实体 ``` import { Entity, Column, PrimaryGeneratedColu 阅读全文
posted @ 2023-07-13 23:38 fozero 阅读(793) 评论(0) 推荐(0) 编辑
摘要: ### 接口格式统一 - 请求成功返回 ``` { "code": 0, "message": "OK", "data": [] } ``` - 请求失败返回 ``` { "code": -1, "message": "error reason", "data": null } ``` #### 请 阅读全文
posted @ 2023-07-13 23:29 fozero 阅读(431) 评论(0) 推荐(0) 编辑
摘要: ### typeorm熟悉 TypeORM 是一个ORM框架,它可以运行在 NodeJS、Browser、Cordova、PhoneGap、Ionic、React Native、Expo 和 Electron 平台上,可以与 TypeScript 和 JavaScript (ES5,ES6,ES7, 阅读全文
posted @ 2023-07-13 23:26 fozero 阅读(702) 评论(0) 推荐(0) 编辑