yxh преди 4 години
родител
ревизия
4290ca7290
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      api/v1/system/sys_user.go
  2. 1 0
      internal/app/system/controller/sys_user.go

+ 1 - 1
api/v1/system/sys_user.go

@@ -39,7 +39,7 @@ type UserSearchReq struct {
 	DeptIds  []int64 //所属部门id数据
 	DeptIds  []int64 //所属部门id数据
 	Mobile   string  `p:"mobile"`
 	Mobile   string  `p:"mobile"`
 	Status   string  `p:"status"`
 	Status   string  `p:"status"`
-	KeyWords string  `p:"userName"`
+	KeyWords string  `p:"keyWords"`
 	commonApi.PageReq
 	commonApi.PageReq
 }
 }
 
 

+ 1 - 0
internal/app/system/controller/sys_user.go

@@ -115,6 +115,7 @@ func (c *userController) List(ctx context.Context, req *system.UserSearchReq) (r
 		return
 		return
 	}
 	}
 	res = new(system.UserSearchRes)
 	res = new(system.UserSearchRes)
+	res.Total = total
 	res.UserList, err = service.User().GetUsersRoleDept(ctx, userList)
 	res.UserList, err = service.User().GetUsersRoleDept(ctx, userList)
 	return
 	return
 }
 }