initial commit
This commit is contained in:
parent
9baa0fab25
commit
fc46164556
14 changed files with 243 additions and 0 deletions
12
internal/domain/link.go
Normal file
12
internal/domain/link.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package domain
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Link struct {
|
||||
ID int64 `json:"id"`
|
||||
ShortURL string `json:"short_url"`
|
||||
LongURL string `json:"long_url"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
7
internal/domain/models.go
Normal file
7
internal/domain/models.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package domain
|
||||
|
||||
func ImportModels() []any {
|
||||
return []any{
|
||||
&Link{},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue