(c *gin.Context)
| 207 | } |
| 208 | |
| 209 | func FixChannelsAbilities(c *gin.Context) { |
| 210 | success, fails, err := model.FixAbility() |
| 211 | if err != nil { |
| 212 | common.ApiError(c, err) |
| 213 | return |
| 214 | } |
| 215 | c.JSON(http.StatusOK, gin.H{ |
| 216 | "success": true, |
| 217 | "message": "", |
| 218 | "data": gin.H{ |
| 219 | "success": success, |
| 220 | "fails": fails, |
| 221 | }, |
| 222 | }) |
| 223 | } |
| 224 | |
| 225 | func SearchChannels(c *gin.Context) { |
| 226 | keyword := c.Query("keyword") |
nothing calls this directly
no test coverage detected