创建个 nest 项目: npm install -g @nestjs/cli nest new short-url 先进入项目,把它跑起来: npm run start:dev 浏览器看到 hello ShortLongMapService; @Get() getHello(): string { return this.appService.getHello(); } @Get('short-url 案例代码上传了 github: https://github.com/QuarkGluonPlasma/nestjs-course-code/tree/main/short-url 总结 我们经常用短链服务把长的
mock-checkbox" checked>Mock Response</input>
可以在下方的链接继续学习)~ 更多资料查阅: https://www.zhihu.com/question/29270034/answer/46446911 https://hufangyun.com/2017/short-url
url 表: id original-url short-url creation-date expiration-date user-id user 表: user-id name email creation-date