You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
589 B
22 lines
589 B
package examrouter
|
|
|
|
import (
|
|
v1 "gin_server_admin/api/v1"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// 试题相关
|
|
type QuestionsRouter struct{}
|
|
|
|
func (e *QuestionsRouter) InitGroupRouter(Router *gin.RouterGroup) {
|
|
|
|
groupCodeRouterQues := Router.Group("quest")
|
|
var authorityApiQues = v1.ApiGroupApp.ExamQuestions.TestQuestions
|
|
{
|
|
groupCodeRouterQues.POST("", authorityApiQues.Index) //试题
|
|
groupCodeRouterQues.POST("/", authorityApiQues.Index) //试题
|
|
groupCodeRouterQues.GET("", authorityApiQues.Index) //试题
|
|
groupCodeRouterQues.GET("/", authorityApiQues.Index) //试题
|
|
|
|
}
|
|
}
|
|
|