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.
21 lines
517 B
21 lines
517 B
|
3 years ago
|
package apishiyan
|
||
|
|
|
||
|
|
import (
|
||
|
|
"key_performance_indicators/api/shiyan"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
//实验
|
||
|
|
|
||
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
||
|
|
apiRouter := router.Group("shiyan")
|
||
|
|
|
||
|
|
var methodBinding = shiyan.AppApiEntry.MapToStructApi
|
||
|
|
{
|
||
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
||
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
||
|
|
apiRouter.POST("maptostructshiyan", methodBinding.MapToStructShiyan) //map转struct
|
||
|
|
}
|
||
|
|
}
|