Repository navigation
gen/admin/v1 を実装する admin-api を追加する - #69
Merged
Merged
Conversation
kantacky
marked this pull request as ready for review
October 8, 2026 14:38
kantacky
requested review from
a team,
Hosoda-abo,
hikaru-0602 and
masaya-osuga
October 8, 2026 14:38
kantacky
force-pushed
the
add-admin-api
branch
from
October 11, 2026 05:03
dbf53c8 to
1056acd
Compare
Deploying fun-dotto-server-docs with
|
| Latest commit: |
997ba56
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://46519da2.fun-dotto-server-docs.pages.dev |
| Branch Preview URL: | https://add-admin-api.fun-dotto-server-docs.pages.dev |
kantacky
force-pushed
the
add-admin-api
branch
from
November 1, 2026 02:46
fdc60c5 to
a625b05
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kantacky
force-pushed
the
add-admin-api
branch
from
November 1, 2026 02:56
ac32ae9 to
997ba56
Compare
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.
概要
gen/admin/v1の Connect サービス(25 リソース)を実装する新しい API サーバーadmin-apiを追加します。既存のadmin-bff-apiとは別物です。UseCase 層と Repository 層は設けず、Handler が GORM で DB に直接アクセスします。テストは後続の PR で追加します。
変更内容
Handler(
internal/modules/adminapi/handler)CourseRegistration/FacultyRoomは proto 定義どおり Update なし)crud[T]が*gorm.DBを持ち、GORM モデル(internal/shared/model)をそのまま扱って List / Get / Create / Update / Delete を実行するSubject(担当教員・対象学年・必修区分)とTimetableItem(教室)は、Update 時に子テーブルを置き換えるpage_sizeは 0 → 50、上限 1000、負数はINVALID_ARGUMENT。トークンは base64url でエンコードした不透明な文字列update_mask: 空ならリクエストで値が入っているフィールドを更新。存在しないフィールドや識別子を含む場合はINVALID_ARGUMENTErrorInfo(domainadmin.dotto、reason は<RESOURCE>_NOT_FOUNDなど)を付与。INVALID_ARGUMENTにはBadRequest.field_violationsを付与toConnectErrorで Connect のエラーに変換するPeriod1、Floor1、AllYearなど)に変換するエントリポイント・ビルド設定
cmd/admin-apiを追加(Connect、15 秒のタイムアウト、エラーをアクセスログに記録)mise run buildに admin-api を追加。これまでbin/admin-apiに出力していた admin-bff-api はbin/admin-bff-apiに出力するmise run run:admin-apiを追加CD
確認事項
go build ./...go vet ./...go vet -vettool=./bin/gormuuidlint(Repository 廃止後は未実施)補足
server.Runが HTTP/1.1 のため)🤖 Generated with Claude Code
https://claude.ai/code/session_016M34xEcz4rFzq43PMoZZG5