problem_reply.go 1.2 KB

123456789101112131415161718192021222324
  1. package autocode
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
  4. "github.com/flipped-aurora/gin-vue-admin/server/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. type ProblemReplyRouter struct {
  8. }
  9. // InitProblemReplyRouter 初始化 ProblemReply 路由信息
  10. func (s *ProblemReplyRouter) InitProblemReplyRouter(Router *gin.RouterGroup) {
  11. problemReplyRouter := Router.Group("problemReply").Use(middleware.OperationRecord())
  12. var problemReplyApi = v1.ApiGroupApp.AutoCodeApiGroup.ProblemReplyApi
  13. {
  14. problemReplyRouter.POST("createProblemReply", problemReplyApi.CreateProblemReply) // 新建ProblemReply
  15. problemReplyRouter.DELETE("deleteProblemReply", problemReplyApi.DeleteProblemReply) // 删除ProblemReply
  16. problemReplyRouter.DELETE("deleteProblemReplyByIds", problemReplyApi.DeleteProblemReplyByIds) // 批量删除ProblemReply
  17. problemReplyRouter.PUT("updateProblemReply", problemReplyApi.UpdateProblemReply) // 更新ProblemReply
  18. problemReplyRouter.GET("findProblemReply", problemReplyApi.FindProblemReply) // 根据ID获取ProblemReply
  19. problemReplyRouter.GET("getProblemReplyList", problemReplyApi.GetProblemReplyList) // 获取ProblemReply列表
  20. }
  21. }