From cb13556461a75523f605167231ee804cb1a85aaf Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 6 Sep 2020 15:38:33 +0800 Subject: [PATCH] add language link --- doc/shorturl-en.md | 2 ++ doc/shorturl.md | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/shorturl-en.md b/doc/shorturl-en.md index f88e9eb6..ad9905a8 100644 --- a/doc/shorturl-en.md +++ b/doc/shorturl-en.md @@ -1,3 +1,5 @@ +English | [简体中文](shorturl.md) + # Rapid development of microservices ## 0. Why building microservices are so difficult? diff --git a/doc/shorturl.md b/doc/shorturl.md index b2370aeb..e7fa66bf 100644 --- a/doc/shorturl.md +++ b/doc/shorturl.md @@ -1,3 +1,5 @@ +[English](shorturl-en.md) | 简体中文 + # 快速构建高并发微服务 ## 0. 为什么说做好微服务很难? @@ -319,8 +321,9 @@ } ``` + 通过调用`transformer`的`Expand`方法实现短链恢复到url - + * 修改`internal/logic/shortenlogic.go`,如下: ```go @@ -340,8 +343,9 @@ } ``` + 通过调用`transformer`的`Shorten`方法实现url到短链的变换 - + 至此,API Gateway修改完成,虽然贴的代码多,但是期中修改的是很少的一部分,为了方便理解上下文,我贴了完整代码,接下来处理CRUD+cache ## 8. 定义数据库表结构,并生成CRUD+cache代码