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.
18 lines
356 B
18 lines
356 B
|
1 year ago
|
package appShiyan
|
||
|
|
|
||
|
|
import (
|
||
|
|
"appNewPlatform/controller"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
// 路由
|
||
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
||
|
|
apiRouter := router.Group("shiyan")
|
||
|
|
var methodBinding = controller.ApiInlet.CommonApi
|
||
|
|
{
|
||
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
||
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
||
|
|
}
|
||
|
|
}
|