sync: 0.7.2 from main (6164dced8d3ab8f9bcce9bf333fb4e8663760ff1)

This commit is contained in:
github-actions[bot] committed 2026-07-03 01:55:33 +00:00
1 parent 0f9ef308d2
commit 9337afc47e
74 files changed
+11173 -4687

No files matched your search

+16 -14
View File
@@ -7,20 +7,20 @@ import (
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"
_ "github.com/EvolutionAPI/evolution-go/docs"
call_handler "github.com/EvolutionAPI/evolution-go/pkg/call/handler"
chat_handler "github.com/EvolutionAPI/evolution-go/pkg/chat/handler"
community_handler "github.com/EvolutionAPI/evolution-go/pkg/community/handler"
group_handler "github.com/EvolutionAPI/evolution-go/pkg/group/handler"
instance_handler "github.com/EvolutionAPI/evolution-go/pkg/instance/handler"
label_handler "github.com/EvolutionAPI/evolution-go/pkg/label/handler"
message_handler "github.com/EvolutionAPI/evolution-go/pkg/message/handler"
auth_middleware "github.com/EvolutionAPI/evolution-go/pkg/middleware"
newsletter_handler "github.com/EvolutionAPI/evolution-go/pkg/newsletter/handler"
poll_handler "github.com/EvolutionAPI/evolution-go/pkg/poll/handler"
send_handler "github.com/EvolutionAPI/evolution-go/pkg/sendMessage/handler"
server_handler "github.com/EvolutionAPI/evolution-go/pkg/server/handler"
user_handler "github.com/EvolutionAPI/evolution-go/pkg/user/handler"
_ "github.com/evolution-foundation/evolution-go/docs"
call_handler "github.com/evolution-foundation/evolution-go/pkg/call/handler"
chat_handler "github.com/evolution-foundation/evolution-go/pkg/chat/handler"
community_handler "github.com/evolution-foundation/evolution-go/pkg/community/handler"
group_handler "github.com/evolution-foundation/evolution-go/pkg/group/handler"
instance_handler "github.com/evolution-foundation/evolution-go/pkg/instance/handler"
label_handler "github.com/evolution-foundation/evolution-go/pkg/label/handler"
message_handler "github.com/evolution-foundation/evolution-go/pkg/message/handler"
auth_middleware "github.com/evolution-foundation/evolution-go/pkg/middleware"
newsletter_handler "github.com/evolution-foundation/evolution-go/pkg/newsletter/handler"
poll_handler "github.com/evolution-foundation/evolution-go/pkg/poll/handler"
send_handler "github.com/evolution-foundation/evolution-go/pkg/sendMessage/handler"
server_handler "github.com/evolution-foundation/evolution-go/pkg/server/handler"
user_handler "github.com/evolution-foundation/evolution-go/pkg/user/handler"
)
type Routes struct {
@@ -151,6 +151,7 @@ func (r *Routes) AssignRoutes(eng *gin.Engine) {
routes.POST("/react", r.jidValidationMiddleware.ValidateJIDFields("number"), r.messageHandler.React)
routes.POST("/presence", r.jidValidationMiddleware.ValidateNumberField(), r.messageHandler.ChatPresence)
routes.POST("/markread", r.jidValidationMiddleware.ValidateNumberField(), r.messageHandler.MarkRead)
routes.POST("/markplayed", r.jidValidationMiddleware.ValidateNumberField(), r.messageHandler.MarkPlayed)
routes.POST("/downloadmedia", r.messageHandler.DownloadMedia)
routes.POST("/status", r.messageHandler.GetMessageStatus)
routes.POST("/delete", r.jidValidationMiddleware.ValidateNumberField(), r.messageHandler.DeleteMessageEveryone)
@@ -185,6 +186,7 @@ func (r *Routes) AssignRoutes(eng *gin.Engine) {
routes.GET("/myall", r.groupHandler.GetMyGroups) // TODO: not working
routes.POST("/join", r.groupHandler.JoinGroupLink)
routes.POST("/leave", r.jidValidationMiddleware.ValidateNumberField(), r.groupHandler.LeaveGroup)
routes.POST("/settings", r.jidValidationMiddleware.ValidateNumberField(), r.groupHandler.UpdateGroupSettings)
}
}
routes = eng.Group("/call")