MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / SearchUserLogs

Function SearchUserLogs

controller/log.go:68–82  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

66}
67
68func SearchUserLogs(c *gin.Context) {
69 keyword := c.Query("keyword")
70 userId := c.GetInt("id")
71 logs, err := model.SearchUserLogs(userId, keyword)
72 if err != nil {
73 common.ApiError(c, err)
74 return
75 }
76 c.JSON(http.StatusOK, gin.H{
77 "success": true,
78 "message": "",
79 "data": logs,
80 })
81 return
82}
83
84func GetLogByKey(c *gin.Context) {
85 key := c.Query("key")

Callers

nothing calls this directly

Calls 2

SearchUserLogsFunction · 0.92
ApiErrorFunction · 0.92

Tested by

no test coverage detected