added mock for gigachat svc
This commit is contained in:
parent
f61086c826
commit
8f0a41526e
@ -1,15 +1,15 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"fmt"
|
||||
"gitea.pena/PenaSide/common/log_mw"
|
||||
"gitea.pena/SQuiz/common/middleware"
|
||||
"gitea.pena/SQuiz/common/model"
|
||||
"gitea.pena/SQuiz/common/repository/quiz"
|
||||
"gitea.pena/SQuiz/core/models"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type CreateQuizReq struct {
|
||||
@ -523,3 +523,15 @@ func (s *Service) TemplateCopy(ctx *fiber.Ctx) error {
|
||||
|
||||
return ctx.Status(fiber.StatusOK).JSON(fiber.Map{"id": qizID})
|
||||
}
|
||||
|
||||
func (s *Service) CreateQuizAuditory(ctx *fiber.Ctx) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Service) GetQuizAuditory(ctx *fiber.Ctx) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Service) DeleteQuizAuditory(ctx *fiber.Ctx) error {
|
||||
return nil
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"gitea.pena/SQuiz/common/dal"
|
||||
"gitea.pena/SQuiz/core/brokers"
|
||||
"gitea.pena/SQuiz/core/clients/auth"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
// Service is an entity for http requests handling
|
||||
@ -50,6 +50,10 @@ func (s *Service) Register(app *fiber.App) {
|
||||
app.Post("/quiz/move", s.QuizMove)
|
||||
app.Post("/quiz/template", s.TemplateCopy)
|
||||
|
||||
app.Post("/quiz/:quizID/auditory", s.CreateQuizAuditory)
|
||||
app.Get("/quiz/:quizID/auditory", s.GetQuizAuditory)
|
||||
app.Delete("/quiz/:quizID/auditory", s.DeleteQuizAuditory)
|
||||
|
||||
// question manipulating handlers
|
||||
app.Post("/question/create", s.CreateQuestion)
|
||||
app.Post("/question/getList", s.GetQuestionList)
|
||||
|
Loading…
Reference in New Issue
Block a user