用户管理页新增分组查询

This commit is contained in:
iszcz
2024-04-20 01:25:47 +08:00
parent e6765ef32d
commit 79cf70683f
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,