Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
spec-core | 533aa42 | Commit Preview URL Branch Preview URL |
Feb 03 2026, 05:40 AM |
There was a problem hiding this comment.
Pull request overview
管理者向けにユーザー一覧取得API(GET /admin/user)を追加し、検索・フィルタ・ページネーションを提供するとともに、未使用の /user/{userId}/work エンドポイントを削除するPRです。
Changes:
GET /admin/userのハンドラ/モデル/サーバ実装と、ユーザー一覧(プロフィール+総件数)の取得処理を追加- 検索・フィルタ(
query,schoolGrade,isAdmin)とページネーション(offset,limit)を追加 /user/{userId}/workの仕様・実装を削除し、Swagger/生成物を更新
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/work/get_user_user_id_work.go | /user/{userId}/work の実装削除 |
| pkg/utils/utils.go | limit/offset 用の ClampInt を追加 |
| pkg/user/get_admin_user.go | 管理者ユーザー一覧取得のユースケース実装を追加 |
| pkg/db/sql/user/select_admin_user_list.sql | 管理者向けユーザー一覧の取得SQLを追加 |
| pkg/db/sql/user/count_admin_user_list.sql | 一覧の総件数取得SQLを追加 |
| pkg/db/sql/admin/select_user_is_admin.sql | 末尾の不要行削除(整形) |
| pkg/api/spec.gen.go | Swagger生成物更新(エンドポイント追加・削除反映) |
| pkg/api/server/get_admin_user.go | GET /admin/user のサーバ側ハンドラを追加 |
| pkg/api/server.gen.go | ルーティング/Wrapper生成物更新(追加・削除反映) |
| pkg/api/models.gen.go | GetAdminUserParams / ResGetAdminUser 系モデル追加 |
| pkg/api/authenticator/validate.go | デバッグ出力削除 |
| document/schemas/res_get_admin_user.yml | レスポンススキーマ追加 |
| document/schemas/res_get_admin_user.user.yml | レスポンス(user要素)スキーマ追加 |
| document/schemas/res_get_admin_user.profile.yml | レスポンス(profile要素)スキーマ追加 |
| document/schemas.yml | 新スキーマ参照を追加 |
| document/paths/user_user_id_work.yml | /user/{userId}/work のパス定義削除 |
| document/paths/admin_user.yml | /admin/user のパス定義追加 |
| document/paths.yml | /admin/user 追加・/user/{userId}/work 削除 |
| document/bundle.gen.yml | バンドル生成物更新(追加・削除反映) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/admin/userを追加/user/{userId}/workエンドポイントを削除変更内容
GET /admin/useroffset: ページネーションオフセットlimit: 取得件数制限query: 名前検索(部分一致)schoolGrade: 学年フィルタisAdmin: 管理者フラグフィルタTest plan
GET /admin/userが管理者ユーザーでアクセスできることを確認🤖 Generated with Claude Code