Merge pull request #213 from iszcz/pr

用户管理页-新增分组查询
This commit is contained in:
Calcium-Ion
2024-04-24 14:51:08 +08:00
committed by GitHub
3 changed files with 92 additions and 33 deletions

View File

@@ -216,7 +216,8 @@ func GetAllUsers(c *gin.Context) {
func SearchUsers(c *gin.Context) {
keyword := c.Query("keyword")
users, err := model.SearchUsers(keyword)
group := c.Query("group")
users, err := model.SearchUsers(keyword, group)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,