feat: able to fix channels

This commit is contained in:
CaIon
2024-01-10 13:23:43 +08:00
parent 3e13810ca2
commit 6a24e8953f
4 changed files with 80 additions and 0 deletions

View File

@@ -35,6 +35,22 @@ func GetAllChannels(c *gin.Context) {
return
}
func FixChannelsAbilities(c *gin.Context) {
count, err := model.FixAbility()
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": err.Error(),
})
return
}
c.JSON(http.StatusOK, gin.H{
"success": true,
"message": "",
"data": count,
})
}
func SearchChannels(c *gin.Context) {
keyword := c.Query("keyword")
group := c.Query("group")