Removed secret field from types.ShortenReq

This commit is contained in:
2022-08-27 14:02:33 +02:00
parent bf770ee0db
commit 03d845b00d
5 changed files with 2 additions and 7 deletions

View File

@ -32,7 +32,6 @@ func (l *ShortenUrlLogic) ShortenUrl(req *types.ShortenReq) (resp *types.Shorten
insertUrl.BindStruct(db.UrlModel{
Id: id,
RedirectUrl: req.RedirectUrl,
Secret: &req.Secret,
})
if err := insertUrl.ExecRelease(); err != nil {