用户管理页新增分组查询

This commit is contained in:
iszcz committed 2024-04-20 02:13:11 +08:00
1 parent b26e53bcd4
commit e00a468464
3 files changed
+92 -33

No files matched your search

+2 -1
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,