-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
期望为 Console 端的用户管理单独提供接口以支持更多筛选条件 #3290
Comments
另外,建议将角色信息也聚合返回。 |
/kind feature |
/assign |
现在api里的V1alpha1UserApiListv1alpha1UserRequest接口没有关键词和角色的属性。是不是要先修改api-client的代码才行? |
api-client 是根据后端的 api 自动生成的,参考 |
后端api的参数应该在哪里修改呢?以及改动后如何重新生成api-client? |
@JustinLiang522 你可以先提交 Halo 的 PR,Console 这边的改动我可以来做。 |
目前用户管理列表的 api 还是自动生成的,要添加更多参数需要在 UserEndpoint 提供一个列表查询的 endpoint 叫 .GET("/users", ...) halo/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java Lines 87 to 97 in 26f29b2
|
OK :) |
所以除了关键词搜索外,后端需要实现的条件筛选有哪些呢?按照现在前端 |
目前应该仅有角色有用,状态暂时没有用到。排序目前提供创建时间升降序即可,登录时间暂时也没用上。 |
#### What type of PR is this? /kind feature #### What this PR does / why we need it: 用户管理列表支持条件筛选和排序,适配:halo-dev/halo#3320 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#3290 #### Screenshots: <img width="922" alt="image" src="https://user-images.githubusercontent.com/21301288/219578426-de396dfb-7ece-496e-b740-d7a36321eafb.png"> #### Special notes for your reviewer: 测试方式: 1. Halo 需要切换到 halo-dev/halo#3320 分支。 2. Console 需要 `pnpm build:packages` 3. 测试用户管理的关键词、条件、排序筛选是否工作正常。 #### Does this PR introduce a user-facing change? ```release-note Console 端的用户列表支持条件筛选和排序。 ```
#### What type of PR is this? /kind bug #### What this PR does / why we need it: 为后端用户管理提供更多筛选接口,包括关键词、角色、创建时间排序 #### Which issue(s) this PR fixes: Fixes #3290 ```release-note NONE ```
…o-dev/console#862) #### What type of PR is this? /kind feature #### What this PR does / why we need it: 用户管理列表支持条件筛选和排序,适配:halo-dev#3320 #### Which issue(s) this PR fixes: Fixes halo-dev#3290 #### Screenshots: <img width="922" alt="image" src="https://user-images.githubusercontent.com/21301288/219578426-de396dfb-7ece-496e-b740-d7a36321eafb.png"> #### Special notes for your reviewer: 测试方式: 1. Halo 需要切换到 halo-dev#3320 分支。 2. Console 需要 `pnpm build:packages` 3. 测试用户管理的关键词、条件、排序筛选是否工作正常。 #### Does this PR introduce a user-facing change? ```release-note Console 端的用户列表支持条件筛选和排序。 ```
你当前使用的版本
2.2.0
描述一下此特性
如图,目前用户管理仅支持通过关键词筛选(由前端实现),期望支持后端的关键词搜索,以及必要的条件筛选,比如角色。
/area core
/area console
/milestone 2.3.x
附加信息
No response
The text was updated successfully, but these errors were encountered: