-
Notifications
You must be signed in to change notification settings - Fork 1
/
exam_target.go
22 lines (19 loc) · 903 Bytes
/
exam_target.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package exam
import (
"github.com/gin-gonic/gin"
v1 "github.com/prl26/exam-system/server/api"
"github.com/prl26/exam-system/server/middleware"
)
type TargetExamRouter struct {
}
func (c *ExamRouter) InitTargetExamRouter(Router *gin.RouterGroup) {
FrontExamRouterWithoutRecord := Router.Group("targetExam").Use(middleware.OperationRecord())
var targetExamApi = v1.ApiGroupApp.FrontDesk.ExamApiGroup.TargetExamApi
{
FrontExamRouterWithoutRecord.GET("getTargetExamPapers", targetExamApi.GetTargetExamPaper)
FrontExamRouterWithoutRecord.POST("commitTargetExamPaper", targetExamApi.CommitTargetExamPaper)
FrontExamRouterWithoutRecord.POST("examGenerateInstance", targetExamApi.ExamGenerateInstance)
FrontExamRouterWithoutRecord.GET("getTargetExamScore", targetExamApi.GetTargetExamScore)
FrontExamRouterWithoutRecord.POST("getTargetExamingScore", targetExamApi.GetTargetExamingScore)
}
}