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.
32 lines
1.9 KiB
32 lines
1.9 KiB
package personalityAssessment
|
|
|
|
import (
|
|
"appPlatform/api/personalityTest"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("rongxin")
|
|
var methodBinding = personalityTest.AppApiEntry.CharacterTestRongXin
|
|
{
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
apiRouter.POST("login", methodBinding.Login) //登录(内部人员)
|
|
apiRouter.POST("loginExternal", methodBinding.LoginExternal) //登录(内部人员)
|
|
apiRouter.POST("loginOut", methodBinding.LoginOut) //退出
|
|
apiRouter.POST("submitDataRongXin", methodBinding.SubmitDataRongXin) //获取提交测试答案
|
|
apiRouter.POST("doesItExist", methodBinding.DoesItExist) //判断是否已经提交过试卷
|
|
apiRouter.POST("getUserDISCTest", methodBinding.GetUserDISCTest) //计算三次雷达图数
|
|
apiRouter.POST("getUserDISCTestSign", methodBinding.GetUserDISCTestSign) //计算三次雷达图数
|
|
apiRouter.POST("getManTest", methodBinding.GetManTest) //获取人物基础信息
|
|
apiRouter.POST("submitTestPageAnswer", methodBinding.SubmitTestPageAnswer) //提交性格答案
|
|
apiRouter.POST("nineResult", methodBinding.NineResult) //九型人格测试结果
|
|
apiRouter.POST("nineResultToken", methodBinding.NineResultToken) //九型人格测试结果
|
|
apiRouter.POST("downLoadNineTestPage", methodBinding.DownLoadNineTestPage) //下载九型人格测试结果
|
|
apiRouter.GET("downLoadNineTestPage", methodBinding.DownLoadNineTestPage) //下载九型人格测试结果
|
|
apiRouter.GET("statisticsPersonality", methodBinding.StatisticsPersonality) //下载人格测试状态
|
|
apiRouter.GET("downLoadTearms", methodBinding.DownLoadTearms) //下载人员班组
|
|
}
|
|
}
|
|
|