Globally renamed Snowflake to ID

This commit is contained in:
2022-08-27 14:05:59 +02:00
parent 03d845b00d
commit 590906d555
6 changed files with 11 additions and 11 deletions

View File

@ -30,7 +30,7 @@ func (l *ShortenUrlLogic) ShortenUrl(req *types.ShortenReq) (resp *types.Shorten
insertUrl := db.UrlTable.InsertBuilder().TTL(30 * time.Second).Query(l.svcCtx.DB)
insertUrl.BindStruct(db.UrlModel{
Id: id,
ID: id,
RedirectUrl: req.RedirectUrl,
})
@ -39,7 +39,7 @@ func (l *ShortenUrlLogic) ShortenUrl(req *types.ShortenReq) (resp *types.Shorten
}
resp = &types.ShortenResp{
Id: id,
ID: id,
}
return resp, nil
}