(server *gin.Engine)
| 23 | } |
| 24 | |
| 25 | func (ah *ActivityHandler) RegisterRoutes(server *gin.Engine) { |
| 26 | casbinMiddleware := middleware.NewCasbinMiddleware(ah.ce) |
| 27 | historyGroup := server.Group("/api/activity") |
| 28 | historyGroup.GET("/recent", casbinMiddleware.CheckCasbin(), WrapQuery(ah.GetRecentActivity)) // 获取最近的活动记录 |
| 29 | } |
| 30 | |
| 31 | // GetRecentActivity 获取最近的活动记录 |
| 32 | func (ah *ActivityHandler) GetRecentActivity(ctx *gin.Context, _ req.GetRecentActivityReq) (Result, error) { |
nothing calls this directly
no test coverage detected