example.go 260 B

12345678910111213
  1. package router
  2. import "github.com/gin-gonic/gin"
  3. type ExampleRouter struct {
  4. }
  5. func (s *ExampleRouter) InitExampleRouter(routerGroup *gin.RouterGroup) {
  6. exampleRouter := routerGroup.Group("example")
  7. {
  8. exampleRouter.POST("create", nil) // 创建Api
  9. }
  10. }