# nestjs-learning-notes **Repository Path**: darcrandex/nestjs-learning-notes ## Basic Information - **Project Name**: nestjs-learning-notes - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-10 - **Last Updated**: 2021-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NestJS Learning Notes ## 创建模式 ```bash nest g mo modules/cat nest g co modules/cat ``` ## 中间件 ```bash nest g mi middlewares/logger ``` ## 守卫 以用户权限为例 ```bash nest g gu guards/auth ``` ## 拦截器 > 响应拦截器 ## 管道 内置 `ParseIntPipe`, 因为路由中的参数都是 `string`, 通过这个管道方法, 把值转化为 `number`.