add tg service rest

This commit is contained in:
Pavel 2024-06-27 16:27:16 +03:00
parent ddbd8dc97e
commit c00899f41a
3 changed files with 26 additions and 0 deletions

1
.gitignore vendored

@ -21,3 +21,4 @@ storer/storer
answerer/answerer
core
/.tdlib/
/unsetrecover.bolt

@ -81,4 +81,10 @@ func (s *Service) Register(app *fiber.App) {
app.Post("/statistic/:quizID/questions", s.GetQuestionsStatistics)
app.Post("/statistic", s.AllServiceStatistics)
app.Get("/statistics/:quizID/pipelines", s.GetPipelinesStatistics)
//telegram handlers
app.Get("/telegram/pool", s.GetPoolTgBots)
app.Post("/telegram/create", s.AddingTgBot)
app.Delete("/telegram/:id", s.DeleteTgBotByID)
app.Post("/telegram/auth", s.SendAuthTgCode)
}

19
service/telegram_svc.go Normal file

@ -0,0 +1,19 @@
package service
import "github.com/gofiber/fiber/v2"
func (s *Service) GetPoolTgBots(ctx *fiber.Ctx) error {
return nil
}
func (s *Service) AddingTgBot(ctx *fiber.Ctx) error {
return nil
}
func (s *Service) DeleteTgBotByID(ctx *fiber.Ctx) error {
return nil
}
func (s *Service) SendAuthTgCode(ctx *fiber.Ctx) error {
return nil
}