package mathsrouter import ( "appPlatform/api/version1" "github.com/gin-gonic/gin" ) // 数学公式接口路由 func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { apiRouter := router.Group("maths") var mathsClassRouter = version1.AppApiEntry.MathsApi { apiRouter.GET("", mathsClassRouter.Index) //入口 apiRouter.POST("", mathsClassRouter.Index) //入口 apiRouter.POST("am_formulas", mathsClassRouter.AnalyticalMathematicalFormulas) //解析数学公式 apiRouter.POST("mathematicalCalculations", mathsClassRouter.MathematicalCalculations) //数学计算 } }