perf: add pagination, filters, and fix Django sync pagination

This commit is contained in:
2026-04-30 15:34:25 -03:00
parent 19333cf713
commit badd54b4be
12 changed files with 413 additions and 176 deletions

View File

@@ -26,6 +26,7 @@ func main() {
// 4. Start Sync Worker
syncer := sync.NewSyncer(repo, config.AppConfig.DjangoBaseURL, config.AppConfig.DjangoMasterUser, config.AppConfig.DjangoMasterPassword)
handler.SetSyncer(syncer)
syncer.Start()
// 4. Setup Gin Router
@@ -52,6 +53,7 @@ func main() {
{
protected.POST("/products", handler.CreateProduct)
protected.PATCH("/products/:id", handler.UpdateProduct)
protected.POST("/admin/resync-products", handler.ResyncProducts)
protected.POST("/categories", handler.CreateCategory)
protected.PATCH("/categories/:id", handler.UpdateCategory)
protected.POST("/comandas", handler.CreateComanda)