13 changed files with 157 additions and 45 deletions
-
10.env.default
-
23.env.development
-
23.env.production
-
1Dockerfile
-
1README.md
-
36cmd/main/main.go
-
2go.mod
-
12internal/route.go
-
5internal/startup.go
-
4internal/whatsapp/types/request.go
-
2internal/whatsapp/types/response.go
-
19internal/whatsapp/whatsapp.go
-
64pkg/whatsapp/whatsapp.go
@ -1,7 +1,13 @@ |
|||||
# ----------------------------------- |
# ----------------------------------- |
||||
# HTTP Server Configuration |
|
||||
|
# Server Configuration |
||||
# ----------------------------------- |
# ----------------------------------- |
||||
# HTTP_BASE_URL=/ |
|
||||
|
# SERVER_ADDRESS=127.0.0.1 |
||||
|
# SERVER_PORT=3000 |
||||
|
|
||||
|
# ----------------------------------- |
||||
|
# HTTP Configuration |
||||
|
# ----------------------------------- |
||||
|
# HTTP_BASE_URL=/api/v1/whatsapp |
||||
|
|
||||
# HTTP_CORS_ORIGIN=* |
# HTTP_CORS_ORIGIN=* |
||||
# HTTP_BODY_LIMIT_SIZE=8m |
# HTTP_BODY_LIMIT_SIZE=8m |
||||
@ -0,0 +1,23 @@ |
|||||
|
# ----------------------------------- |
||||
|
# Server Configuration |
||||
|
# ----------------------------------- |
||||
|
SERVER_ADDRESS=127.0.0.1 |
||||
|
SERVER_PORT=3000 |
||||
|
|
||||
|
# ----------------------------------- |
||||
|
# HTTP Configuration |
||||
|
# ----------------------------------- |
||||
|
HTTP_BASE_URL=/api/v1/whatsapp |
||||
|
|
||||
|
# HTTP_CORS_ORIGIN=* |
||||
|
# HTTP_BODY_LIMIT_SIZE=8m |
||||
|
# HTTP_GZIP_LEVEL=1 |
||||
|
|
||||
|
# ----------------------------------- |
||||
|
# Authentication Configuration |
||||
|
# ----------------------------------- |
||||
|
AUTH_BASIC_USERNAME=admin |
||||
|
AUTH_BASIC_PASSWORD=83e4060e-78e1-4fe5-9977-aeeccd46a2b8 |
||||
|
|
||||
|
AUTH_JWT_SECRET=9e4eb4cf-be25-4a29-bba3-fefb5a30f6ab |
||||
|
AUTH_JWT_EXPIRED_HOUR=24 |
||||
@ -0,0 +1,23 @@ |
|||||
|
# ----------------------------------- |
||||
|
# Server Configuration |
||||
|
# ----------------------------------- |
||||
|
SERVER_ADDRESS=0.0.0.0 |
||||
|
SERVER_PORT=3000 |
||||
|
|
||||
|
# ----------------------------------- |
||||
|
# HTTP Configuration |
||||
|
# ----------------------------------- |
||||
|
HTTP_BASE_URL=/api/v1/whatsapp |
||||
|
|
||||
|
# HTTP_CORS_ORIGIN=* |
||||
|
# HTTP_BODY_LIMIT_SIZE=8m |
||||
|
# HTTP_GZIP_LEVEL=1 |
||||
|
|
||||
|
# ----------------------------------- |
||||
|
# Authentication Configuration |
||||
|
# ----------------------------------- |
||||
|
AUTH_BASIC_USERNAME=admin |
||||
|
AUTH_BASIC_PASSWORD=83e4060e-78e1-4fe5-9977-aeeccd46a2b8 |
||||
|
|
||||
|
AUTH_JWT_SECRET=9e4eb4cf-be25-4a29-bba3-fefb5a30f6ab |
||||
|
AUTH_JWT_EXPIRED_HOUR=24 |
||||
@ -0,0 +1,5 @@ |
|||||
|
package internal |
||||
|
|
||||
|
func Startup() { |
||||
|
|
||||
|
} |
||||
@ -1,6 +1,6 @@ |
|||||
package types |
package types |
||||
|
|
||||
type ResponseLogin struct { |
type ResponseLogin struct { |
||||
Timeout string `json:"timeout"` |
|
||||
QRCode string `json:"qrcode"` |
QRCode string `json:"qrcode"` |
||||
|
Timeout int `json:"timeout"` |
||||
} |
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue