Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d119d9ba1a |
3 changed files with 13 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ services:
|
|||
link:
|
||||
image: cognio/link
|
||||
ports:
|
||||
- 8080:8080
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- JWT_METHOD=HS256
|
||||
- JWT_KEY=QvSqOTKhsCjeV1iU9ABYTQMJwhvXWPnz
|
||||
|
|
|
|||
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