2021-07-25 00:33:34 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
"myschools.me/wyh/questionnaire_survey/handler"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func setupRouters(r *gin.Engine) {
|
2021-08-10 03:11:28 +00:00
|
|
|
question := r.Group(`question`)
|
2021-07-25 00:33:34 +00:00
|
|
|
{
|
2021-08-10 03:11:28 +00:00
|
|
|
|
|
|
|
|
question.POST(`/questionsubmit`, handler.QuestionSend)
|
|
|
|
|
question.POST(`/questionlist`, handler.QuestionList)
|
|
|
|
|
question.GET(`/questionquery/:id`, handler.QuestionQuery)
|
|
|
|
|
question.GET(`/questiondelete/:id`, handler.QuestionDelete)
|
|
|
|
|
question.POST(`/questionupdate/:id`, handler.QuestionUpdate)
|
2021-07-25 00:33:34 +00:00
|
|
|
}
|
|
|
|
|
}
|