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.
20 lines
681 B
20 lines
681 B
|
2 years ago
|
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) //数学计算
|
||
|
|
}
|
||
|
|
}
|