MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / GetRecentActivity

Method GetRecentActivity

internal/api/activity.go:32–45  ·  view source on GitHub ↗

GetRecentActivity 获取最近的活动记录

(ctx *gin.Context, _ req.GetRecentActivityReq)

Source from the content-addressed store, hash-verified

30
31// GetRecentActivity 获取最近的活动记录
32func (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}

Callers

nothing calls this directly

Calls 1

GetRecentActivityMethod · 0.65

Tested by

no test coverage detected