Obey supplied expiration time ShortenReq.ExpiresAfter

This commit is contained in:
2022-08-27 17:02:15 +02:00
parent 0e8dccb9d0
commit 131cc2640a
3 changed files with 11 additions and 5 deletions

View File

@ -10,8 +10,8 @@ type ExpandResp struct {
}
type ShortenReq struct {
LongUrl string `json:"longUrl"`
ExpiresIn int64 `json:"expiresIn,optional"`
LongUrl string `json:"longUrl"`
ExpiresAfter int64 `json:"expiresAfter,optional"`
}
type ShortenResp struct {