(c *gin.Context)
| 82 | } |
| 83 | |
| 84 | func GetLogByKey(c *gin.Context) { |
| 85 | key := c.Query("key") |
| 86 | logs, err := model.GetLogByKey(key) |
| 87 | if err != nil { |
| 88 | c.JSON(200, gin.H{ |
| 89 | "success": false, |
| 90 | "message": err.Error(), |
| 91 | }) |
| 92 | return |
| 93 | } |
| 94 | c.JSON(200, gin.H{ |
| 95 | "success": true, |
| 96 | "message": "", |
| 97 | "data": logs, |
| 98 | }) |
| 99 | } |
| 100 | |
| 101 | func GetLogsStat(c *gin.Context) { |
| 102 | logType, _ := strconv.Atoi(c.Query("type")) |
nothing calls this directly
no test coverage detected