mirror of
https://github.com/Kizuren/uLinkShortener.git
synced 2025-12-21 21:16:17 +01:00
Rewritten in go
This commit is contained in:
parent
b131756235
commit
b17e528180
23 changed files with 989 additions and 18 deletions
12
internal/models/link.go
Normal file
12
internal/models/link.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Link struct {
|
||||
ShortID string `json:"short_id" bson:"short_id"`
|
||||
TargetURL string `json:"target_url" bson:"target_url"`
|
||||
AccountID string `json:"account_id" bson:"account_id"`
|
||||
CreatedAt time.Time `json:"created_at" bson:"created_at"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue