Add alias entity
This commit is contained in:
parent
e1516e450b
commit
d119d9ba1a
3 changed files with 13 additions and 2 deletions
11
pkg/cgnolink/alias/entity.go
Normal file
11
pkg/cgnolink/alias/entity.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package alias
|
||||
|
||||
import "time"
|
||||
|
||||
type Alias struct {
|
||||
Id string
|
||||
LinkId int64
|
||||
CreationTime time.Time
|
||||
}
|
||||
|
||||
type Aliases = []*Alias
|
||||
|
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
type Link struct {
|
||||
Id string
|
||||
Id int64
|
||||
Name string
|
||||
RedirectURL url.URL
|
||||
Password string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue