Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new develop branch with significant refactoring and improvements #60

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

guilhermejansen
Copy link

🚀 Release v1.0.0 - First Version of the System

📝 Description

This is the first official version of the system, focused on significant improvements and new features:

  • 🔄 Complete Refactoring: Improvements in code structure for greater efficiency and maintainability.
  • 🗂️ Database Interactions: Updated to use sqlx with enhanced error handling.
  • 🛠️ Webhook Management: Added endpoints for creating, updating, and deleting webhooks.
  • 📊 Migration to PostgreSQL: Transition from SQLite to PostgreSQL, with performance and logging enhancements.
  • 🔧 Hook Management Improvements: Enhanced hook management, including DELETE and PUT methods.

🐛 Bug Fixes

  • 🛠️ Dependency updates and improvements in security and performance.

🚧 Next Steps

  • 📈 Expansion of data analysis functionalities.
  • 🌐 Integration with more messaging services for increased versatility.

guilhermejansen and others added 9 commits September 23, 2024 20:19
This commit updates the go.sum file to include new dependencies and their respective versions. Notable changes include the addition of several packages such as , , and updates to existing packages like  and . These changes ensure that the project is using the latest compatible versions of its dependencies.
…k management functions

This commit modifies existing database queries in the  file to use PostgreSQL's parameterized query syntax (using , , etc.) instead of the previous  syntax. Additionally, it introduces new functions for managing webhooks, including , , and , enhancing the API's capabilities for user webhook management.
…ging

Updated the callHookFile function to create a final payload that includes the file parameter. Enhanced logging to provide more detailed information about the payload being sent and the response received, improving traceability and debugging capabilities.
This commit updates the database connection from SQLite to PostgreSQL using the sqlx library. It introduces environment variable loading for database credentials and implements database migrations using the golang-migrate package. Additionally, logging has been improved to provide clearer error messages in both English and Portuguese.
This commit introduces two new routes for managing webhooks: a DELETE method to remove a webhook and a PUT method to update an existing webhook. These additions enhance the webhook functionality and provide more flexibility for users interacting with the API.
…fication

This commit introduces new endpoints for user management under , allowing for listing, adding, and deleting users. Additionally, it enhances the webhook functionality with endpoints for setting, updating, and deleting webhooks, along with detailed descriptions and response examples for each operation. The API specification is now more comprehensive, providing clearer guidance for developers integrating with the API.
…ling

Refactored the database interactions in  to utilize the  package for enhanced query capabilities. Updated SQL statements to use positional parameters and improved error handling for JSON marshaling when calling webhooks. Additionally, increased the HTTP client timeout from 5 to 30 seconds to enhance reliability during network operations.
@guilhermejansen guilhermejansen marked this pull request as ready for review September 24, 2024 00:58
@joaosouz4dev
Copy link

@guilhermejansen Is it possible to add a list of messages using postgree and also a list of chats, just like evolution does using baileys?

@gabrielnogueiracsc
Copy link

@guilhermejansen Is it possible to add a list of messages using postgree and also a list of chats, just like evolution does using baileys?

I'm searching for the same. it would be really good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants