event.go 332 B

123456789101112131415161718
  1. package app
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "lcfns/api/v1"
  5. )
  6. type EventRouter struct {
  7. }
  8. func (c *EventRouter) InitInfoRouter(Router *gin.RouterGroup) {
  9. var eApi = v1.ApiGroupApp.AppApiGroup.EventApi
  10. gwGroup := Router.Group("event")
  11. {
  12. gwGroup.GET("list", eApi.List)
  13. gwGroup.GET("dictionary", eApi.EventType)
  14. }
  15. }