package examrouter import ( v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1" "github.com/gin-gonic/gin" ) type ExamRouter struct{} func (e *ExamRouter) InitGroupRouter(Router *gin.RouterGroup) { groupCodeRouter := Router.Group("exam") var authorityApi = v1.ApiGroupApp.ExamQuestions.ExaminationPage { groupCodeRouter.POST("", authorityApi.Index) //考试 groupCodeRouter.POST("/", authorityApi.Index) //考试 groupCodeRouter.GET("", authorityApi.Index) //考试 groupCodeRouter.GET("/", authorityApi.Index) //考试 } }