add language link
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
English | [简体中文](shorturl.md)
|
||||||
|
|
||||||
# Rapid development of microservices
|
# Rapid development of microservices
|
||||||
|
|
||||||
## 0. Why building microservices are so difficult?
|
## 0. Why building microservices are so difficult?
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
[English](shorturl-en.md) | 简体中文
|
||||||
|
|
||||||
# 快速构建高并发微服务
|
# 快速构建高并发微服务
|
||||||
|
|
||||||
## 0. 为什么说做好微服务很难?
|
## 0. 为什么说做好微服务很难?
|
||||||
@@ -319,6 +321,7 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
通过调用`transformer`的`Expand`方法实现短链恢复到url
|
通过调用`transformer`的`Expand`方法实现短链恢复到url
|
||||||
|
|
||||||
* 修改`internal/logic/shortenlogic.go`,如下:
|
* 修改`internal/logic/shortenlogic.go`,如下:
|
||||||
@@ -340,6 +343,7 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
通过调用`transformer`的`Shorten`方法实现url到短链的变换
|
通过调用`transformer`的`Shorten`方法实现url到短链的变换
|
||||||
|
|
||||||
至此,API Gateway修改完成,虽然贴的代码多,但是期中修改的是很少的一部分,为了方便理解上下文,我贴了完整代码,接下来处理CRUD+cache
|
至此,API Gateway修改完成,虽然贴的代码多,但是期中修改的是很少的一部分,为了方便理解上下文,我贴了完整代码,接下来处理CRUD+cache
|
||||||
|
|||||||
Reference in New Issue
Block a user