From a1d2ea9d85c0fd99afa6674b6e9c017d19d31091 Mon Sep 17 00:00:00 2001 From: windk Date: Fri, 4 Sep 2020 17:38:20 +0800 Subject: [PATCH] fix typo (#38) fix typo: *shorten.ShortenReq -> *transform.ShortenReq --- doc/shorturl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/shorturl.md b/doc/shorturl.md index 947335f7..b2370aeb 100644 --- a/doc/shorturl.md +++ b/doc/shorturl.md @@ -431,7 +431,7 @@ * 修改`rpc/transform/internal/logic/expandlogic.go`,如下: ```go - func (l *ExpandLogic) Expand(in *expand.ExpandReq) (*expand.ExpandResp, error) { + func (l *ExpandLogic) Expand(in *transform.ExpandReq) (*transform.ExpandResp, error) { // 手动代码开始 res, err := l.svcCtx.Model.FindOne(in.Shorten) if err != nil { @@ -448,7 +448,7 @@ * 修改`rpc/shorten/internal/logic/shortenlogic.go`,如下: ```go - func (l *ShortenLogic) Shorten(in *shorten.ShortenReq) (*shorten.ShortenResp, error) { + func (l *ShortenLogic) Shorten(in *transform.ShortenReq) (*transform.ShortenResp, error) { // 手动代码开始,生成短链接 key := hash.Md5Hex([]byte(in.Url))[:6] _, err := l.svcCtx.Model.Insert(model.Shorturl{