diff --git a/docker-compose.yml b/docker-compose.yml index a91bd3c..ffb832d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: link: image: cognio/link ports: - - "8080:8080" + - 8080:8080 environment: - JWT_METHOD=HS256 - JWT_KEY=QvSqOTKhsCjeV1iU9ABYTQMJwhvXWPnz diff --git a/pkg/cgnolink/alias/entity.go b/pkg/cgnolink/alias/entity.go deleted file mode 100644 index c189933..0000000 --- a/pkg/cgnolink/alias/entity.go +++ /dev/null @@ -1,11 +0,0 @@ -package alias - -import "time" - -type Alias struct { - Id string - LinkId int64 - CreationTime time.Time -} - -type Aliases = []*Alias diff --git a/pkg/cgnolink/link/entity.go b/pkg/cgnolink/link/entity.go index 58ab314..343743e 100644 --- a/pkg/cgnolink/link/entity.go +++ b/pkg/cgnolink/link/entity.go @@ -6,7 +6,7 @@ import ( ) type Link struct { - Id int64 + Id string Name string RedirectURL url.URL Password string