sync: 0.7.1 from main (afbdef430763055e4604be35b2787046e72ef833)
This commit is contained in:
1 parent
23c46c34e1
commit
9f0eb34b59
17 files changed
+28171
-1658
No files matched your search
@@ -5,10 +5,15 @@ import (
|
||||
"net/http"
|
||||
|
||||
logger_wrapper "github.com/EvolutionAPI/evolution-go/pkg/logger"
|
||||
poll_model "github.com/EvolutionAPI/evolution-go/pkg/poll/model"
|
||||
poll_service "github.com/EvolutionAPI/evolution-go/pkg/poll/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// Keep poll_model referenced so the package import is not dropped
|
||||
// (swag reads Go source, not pre-processed, and needs the alias to be in scope).
|
||||
var _ = poll_model.PollResults{}
|
||||
|
||||
type PollHandler struct {
|
||||
pollService poll_service.PollService
|
||||
loggerWrapper *logger_wrapper.LoggerManager
|
||||
@@ -29,7 +34,7 @@ func NewPollHandler(pollService poll_service.PollService, loggerWrapper *logger_
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param pollMessageId path string true "ID da mensagem da enquete"
|
||||
// @Success 200 {object} model.PollResults
|
||||
// @Success 200 {object} poll_model.PollResults
|
||||
// @Failure 400 {object} gin.H
|
||||
// @Failure 404 {object} gin.H
|
||||
// @Failure 500 {object} gin.H
|
||||
|
||||
Reference in new issue
Block a user