Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d119d9ba1a |
3 changed files with 13 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ services:
|
||||||
link:
|
link:
|
||||||
image: cognio/link
|
image: cognio/link
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- "8080:8080"
|
||||||
environment:
|
environment:
|
||||||
- JWT_METHOD=HS256
|
- JWT_METHOD=HS256
|
||||||
- JWT_KEY=QvSqOTKhsCjeV1iU9ABYTQMJwhvXWPnz
|
- 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 {
|
type Link struct {
|
||||||
Id string
|
Id int64
|
||||||
Name string
|
Name string
|
||||||
RedirectURL url.URL
|
RedirectURL url.URL
|
||||||
Password string
|
Password string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue