event.go 399 B

123456789101112131415161718
  1. package app
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "lc-fangdaosha/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. }