feat: Add channel search by model field (close #72)

This commit is contained in:
1808837298@qq.com
2024-03-01 21:57:52 +08:00
parent feb40db2bc
commit 413d4f0a66
3 changed files with 48 additions and 17 deletions

View File

@@ -54,8 +54,9 @@ func FixChannelsAbilities(c *gin.Context) {
func SearchChannels(c *gin.Context) {
keyword := c.Query("keyword")
group := c.Query("group")
modelKeyword := c.Query("model")
//idSort, _ := strconv.ParseBool(c.Query("id_sort"))
channels, err := model.SearchChannels(keyword, group)
channels, err := model.SearchChannels(keyword, group, modelKeyword)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,