GetRecentActivity 获取最近的活动记录
(ctx *gin.Context, _ req.GetRecentActivityReq)
| 30 | |
| 31 | // GetRecentActivity 获取最近的活动记录 |
| 32 | func (ah *ActivityHandler) GetRecentActivity(ctx *gin.Context, _ req.GetRecentActivityReq) (Result, error) { |
| 33 | activity, err := ah.svc.GetRecentActivity(ctx) |
| 34 | if err != nil { |
| 35 | return Result{ |
| 36 | Code: constants.GetRecentActivityERRORCode, |
| 37 | Msg: constants.GetRecentActivityERROR, |
| 38 | }, err |
| 39 | } |
| 40 | return Result{ |
| 41 | Code: constants.RequestsOK, |
| 42 | Msg: constants.GetCheckSuccess, |
| 43 | Data: activity, |
| 44 | }, nil |
| 45 | } |
nothing calls this directly
no test coverage detected