Add leads handlers, WhatsApp integration, and test files

This commit is contained in:
2026-05-02 17:40:38 +00:00
parent 8833e38b80
commit 57e6e5a6fd
24 changed files with 2305 additions and 115 deletions

View File

@@ -3,10 +3,15 @@ package handlers
import (
"database/sql"
"time"
"go-crm/internal/whatsapp"
)
func SetupHandlers(db *sql.DB) {
var WAConnector whatsapp.Connector
func SetupHandlers(db *sql.DB, wa whatsapp.Connector) {
DB = db
WAConnector = wa
}
func getCurrentTimestamp() int64 {