MCPcopy Create free account

hub / github.com/KunMoe/kun-galgame-patch / functions

Functions1,135 in github.com/KunMoe/kun-galgame-patch

MethodGetFollowing
GetFollowing returns followee user briefs, batch-resolved from OAuth. See GetFollowers for `viewerID` semantics.
apps/api/internal/user/service/service.go:192
MethodGetFollowing
GetFollowing GET /api/user/:id/following
apps/api/internal/user/handler/handler.go:289
MethodGetGalgame
===== All Patches (admin browse) ===== GetGalgame GET /api/admin/galgame Lists every patch with pagination. The optional `search` query is matched ag
apps/api/internal/admin/handler/handler.go:276
MethodGetGalgameCalendar
GetGalgameCalendar fetches one ISO month. month is strict "YYYY-MM" or "" for the current month (JST, wiki-side). contentLimit is "sfw" / "nsfw" (exac
apps/api/internal/galgame/client/client.go:498
MethodGetGalgameCalendarPending
GetGalgameCalendarPending fetches the "year-only, month TBD" bucket. year is strict "YYYY" or "" for the current year (JST, wiki-side).
apps/api/internal/galgame/client/client.go:515
MethodGetGalgameCalendarPending
GetGalgameCalendarPending GET /api/galgame/calendar/pending?year=YYYY
apps/api/internal/common/handler.go:1008
MethodGetGalgameCalendarTBA
GetGalgameCalendarTBA fetches the global "release date TBA" bucket.
apps/api/internal/galgame/client/client.go:531
MethodGetGalgameCalendarTBA
GetGalgameCalendarTBA GET /api/galgame/calendar/tba
apps/api/internal/common/handler.go:1031
MethodGetGalgameList
GetGalgameList GET /api/galgame Local-side filters: translation type + sort. NSFW filter follows the wiki content_limit protocol (docs/galgame_wiki/0
apps/api/internal/common/handler.go:182
MethodGetGlobalComments
GetGlobalComments GET /api/comment
apps/api/internal/common/handler.go:260
MethodGetGlobalResources
GetGlobalResources GET /api/resource NSFW filter follows the wiki content_limit protocol (default sfw). Filtered AFTER the page slice is drawn: `tota
apps/api/internal/common/handler.go:352
MethodGetHikari
GetHikari GET /api/hikari?vndb_id=... Public partner API — CORS allowlist + rate limit are applied at the route (see router.go). Response mirrors the
apps/api/internal/common/handler.go:655
MethodGetHome
GetHome GET /api/home Returns "recent activity on this service" (latest 12 patches + 6 resources + 6 comments). NSFW filtering follows the wiki conte
apps/api/internal/common/handler.go:108
MethodGetLogs
===== Logs =====
apps/api/internal/admin/service/service.go:242
MethodGetLogs
===== Admin Logs =====
apps/api/internal/admin/repository/repository.go:198
MethodGetLogs
GetLogs GET /api/admin/log
apps/api/internal/admin/handler/handler.go:384
MethodGetMessages
GetMessages retrieves paginated messages for a user
apps/api/internal/message/service/service.go:17
MethodGetMessages
GetMessages retrieves messages for a user, optionally filtered by type. NOTE: Count and Find MUST run on independent statements. gorm v2 mutates the
apps/api/internal/message/repository/repository.go:26
MethodGetMoemoepointLog
GetMoemoepointLog reads a page of the user's OWN moemoepoint ledger from OAuth (the unified source of truth — moyu stores no local ledger). Cursor pag
apps/api/internal/user/service/service.go:286
MethodGetMoemoepointLog
GetMoemoepointLog GET /api/user/moemoepoint/log The authenticated user's OWN moemoepoint ledger. The user id comes from the session (never a path para
apps/api/internal/user/handler/handler.go:329
MethodGetMoyuHasPatch
GetMoyuHasPatch GET /api/moyu/patch/has-patch
apps/api/internal/common/handler.go:871
MethodGetMyWikiMessages
GetMyWikiMessages proxies GET /galgame/messages/mine (Bearer). Used by the notification center to merge wiki notifications with local ones.
apps/api/internal/galgame/client/submission.go:313
MethodGetMyWikiMessages
GetMyWikiMessages GET /api/v1/galgame/messages/mine
apps/api/internal/patch/handler/handler.go:1197
MethodGetOrphanCandidateIDs
GetOrphanCandidateIDs returns the ids of all candidate orphans (cheap local filter only — the handler then verifies them against Wiki by id).
apps/api/internal/admin/repository/repository.go:274
MethodGetOrphanPatches
GetOrphanPatches returns the list of true orphan patches. excludeIDs are candidates Wiki confirmed exist by id (not real orphans).
apps/api/internal/admin/service/service.go:264
MethodGetOrphanPatches
GetOrphanPatches returns a paginated list of orphan patches (see orphanCond), ordered by resource count descending so admins can prioritize "important
apps/api/internal/admin/repository/repository.go:284
MethodGetOrphanPatches
===== Orphan Patches (D12) ===== GetOrphanPatches GET /api/admin/patch/orphans Lists TRUE "orphan" patches. The `vndb_id` not being a well-formed VND
apps/api/internal/admin/handler/handler.go:414
MethodGetPatch
GetPatch returns the local patch row, or gorm.ErrRecordNotFound when moyu has none. It does NOT materialize: a galgame that only exists on the wiki ("
apps/api/internal/patch/service/service.go:238
MethodGetPatch
GetPatch GET /api/patch/:id D12: return the flat GalgameCard structure directly (no longer wrapped in patch / is_favorite layers). Frontend PatchHead
apps/api/internal/patch/handler/handler.go:150
MethodGetPatchDetail
(id int)
apps/api/internal/patch/repository/repository.go:64
MethodGetPatchDetail
GetPatchDetail GET /api/patch/:id/detail D12: detail enrichment goes through Wiki /galgame/:gid to additionally fetch intro / tag_ids / official_ids.
apps/api/internal/patch/handler/handler.go:192
MethodGetPatchRanking
GetPatchRanking GET /api/ranking/patch Top 60 patches sorted by view / download / favorite. Results are passed through the enricher so each row carri
apps/api/internal/common/handler.go:840
MethodGetPatchesByIDs
GetPatchesByIDs fetches multiple patch rows in one query, preserving the caller-supplied id order so the enricher's downstream join keeps galgame orde
apps/api/internal/patch/repository/repository.go:40
MethodGetPost
GetPost renders one published doc by slug. Missing OR draft → ErrRecordNotFound so the handler maps both to a 404.
apps/api/internal/doc/service/service.go:214
MethodGetPost
GetPost GET /doc/post?slug=<category>/<name> — published only.
apps/api/internal/doc/handler/handler.go:57
MethodGetRandomPatch
GetRandomPatch GET /api/home/random NSFW: forwards content_limit so the random landing page can't dump a NSFW patch into an anonymous (sfw-default) b
apps/api/internal/patch/handler/handler.go:800
MethodGetRandomPatchID
includeEmpty=false hides games with no patch resources (the "显示无补丁资源的 游戏" toggle, default off) so "随机游戏" never lands on a patch-less game.
apps/api/internal/patch/repository/repository.go:150
MethodGetResourceByID
GetResourceByID exposes the resource row so the service layer can read Storage / S3Key before DELETE (admin needs them to clean up the S3 object, see
apps/api/internal/admin/repository/repository.go:132
MethodGetResourceDetail
GetResourceDetail GET /api/resource/:id Returns the resource with its owning patch enriched via Wiki, plus up to 5 recommended resources from the sam
apps/api/internal/common/handler.go:406
MethodGetResourceDownloadInfo
GetResourceDownloadInfo backs the lightweight GET /patch/resource/:id/link. The /resource/:id detail endpoint additionally Wiki-enriches the owning pa
apps/api/internal/patch/service/service.go:1333
MethodGetResourceDownloadInfo
IncrementResourceDownload PUT /api/patch/resource/:resourceId/download GetResourceDownloadInfo GET /api/patch/resource/:resourceId/link Minimal paylo
apps/api/internal/patch/handler/handler.go:652
MethodGetResourceFileHistory
GetResourceFileHistory returns the privacy-safe, paginated file-replacement audit for one resource. Public (any visitor, incl. anonymous): deliberatel
apps/api/internal/patch/service/service.go:1732
MethodGetResourceFileHistory
GetResourceFileHistory returns the file-replacement audit rows for one resource, newest first. Public surface (the privacy-safe projection that drops
apps/api/internal/patch/repository/repository.go:509
MethodGetResourceFileHistory
GetResourceFileHistory GET /api/patch/resource/:resourceId/history Public, privacy-safe view of one resource's file-replacement audit (when / who-rol
apps/api/internal/patch/handler/handler.go:1263
MethodGetResourceFileHistory
===== Resource file history (MOYU-PR5 / M3) =====
apps/api/internal/admin/service/service.go:248
MethodGetResourceFileHistory
===== Resource file history (MOYU-PR5 / M3) ===== GetResourceFileHistory returns the audit trail for one resource, newest first. Page-based; default l
apps/api/internal/admin/repository/repository.go:178
MethodGetResourceFileHistory
===== Logs ===== GetResourceFileHistory GET /api/admin/resource/:id/history Returns the append-only file-replacement audit trail for one patch_resour
apps/api/internal/admin/handler/handler.go:367
MethodGetResourceFileHistoryS3Keys
GetResourceFileHistoryS3Keys mirrors PatchRepository's same-named helper (kept here so admin doesn't reach across modules into the patch repo). Needed
apps/api/internal/admin/repository/repository.go:143
MethodGetResourceRevisions
GetResourceRevisions returns the paginated per-field edit history for one resource (public; Changes are secret-free).
apps/api/internal/patch/service/service.go:1796
MethodGetResourceRevisions
GetResourceRevisions returns the per-field edit-diff history for one resource, newest first. Public (stored Changes are secret-free). Paginated.
apps/api/internal/patch/repository/repository.go:525
MethodGetResourceRevisions
GetResourceRevisions GET /api/patch/resource/:resourceId/revisions Public per-field edit history (diff) for one resource: each row is one edit with a
apps/api/internal/patch/handler/handler.go:1284
MethodGetResources
===== Resources =====
apps/api/internal/patch/service/service.go:809
MethodGetResources
===== Resources =====
apps/api/internal/patch/repository/repository.go:295
MethodGetResources
===== Resources ===== GetResources GET /api/patch/:id/resource NSFW gate: same as GetComments. Resource notes / titles may describe NSFW content expl
apps/api/internal/patch/handler/handler.go:504
MethodGetResources
===== Resources =====
apps/api/internal/admin/service/service.go:70
MethodGetResources
===== Resources =====
apps/api/internal/admin/repository/repository.go:93
MethodGetResources
===== Resources ===== GetResources GET /api/admin/resource
apps/api/internal/admin/handler/handler.go:173
MethodGetRoomDetail
GetRoomDetail returns the room and its members. Caller must be a member.
apps/api/internal/chat/service/service.go:68
MethodGetRoomDetail
GetRoomDetail GET /api/chat/room/:link Returns the room plus its full member list (with each user's profile). Caller must be a member.
apps/api/internal/chat/handler/handler.go:300
MethodGetStats
===== Stats =====
apps/api/internal/admin/service/service.go:218
MethodGetStats
User management & creator-application repo methods are gone with the migration: identity is owned by OAuth, and the creator role was retired. ===== St
apps/api/internal/admin/repository/repository.go:156
MethodGetStats
The "禁止注册" (disable-register) setting was removed — registration is unified on the OAuth server (the local register flow no longer exists), so the tog
apps/api/internal/admin/handler/handler.go:341
MethodGetStatsSum
()
apps/api/internal/admin/service/service.go:230
MethodGetStatsSum
()
apps/api/internal/admin/repository/repository.go:165
MethodGetStatsSum
GetStatsSum GET /api/admin/stats/sum
apps/api/internal/admin/handler/handler.go:350
MethodGetUnreadTypes
GetUnreadTypes returns the list of unread message types
apps/api/internal/message/service/service.go:22
MethodGetUnreadTypes
GetUnreadTypes returns distinct types of unread messages
apps/api/internal/message/repository/repository.go:45
MethodGetUnreadTypes
GetUnreadTypes GET /api/message/unread
apps/api/internal/message/handler/handler.go:174
MethodGetUserByID
GetUserByID retrieves the local user row (site-local fields only).
apps/api/internal/user/service/service.go:400
MethodGetUserComments
GetUserComments retrieves the user's comment list with each comment enriched with its owning patch's Wiki summary (name only — banner is not needed fo
apps/api/internal/user/service/service.go:384
MethodGetUserComments
(userID, offset, limit int)
apps/api/internal/user/repository/repository.go:111
MethodGetUserComments
GetUserComments GET /api/user/:id/comment
apps/api/internal/user/handler/handler.go:177
MethodGetUserContributions
GetUserContributions retrieves the user's contribution list.
apps/api/internal/user/service/service.go:395
MethodGetUserContributions
(userID, offset, limit int, includeEmpty bool)
apps/api/internal/user/repository/repository.go:122
MethodGetUserContributions
GetUserContributions GET /api/user/:id/contribute
apps/api/internal/user/handler/handler.go:203
MethodGetUserFavorites
GetUserFavorites retrieves the user's favorite list.
apps/api/internal/user/service/service.go:377
MethodGetUserFavorites
(userID, offset, limit int, includeEmpty bool)
apps/api/internal/user/repository/repository.go:96
MethodGetUserFavorites
GetUserFavorites GET /api/user/:id/favorite
apps/api/internal/user/handler/handler.go:146
MethodGetUserFloating
GetUserFloating retrieves the floating-card view of a user.
apps/api/internal/user/service/service.go:134
MethodGetUserFloating
GetUserFloating GET /api/user/:id/floating
apps/api/internal/user/handler/handler.go:73
MethodGetUserInfo
GetUserInfo GET /api/user/:id
apps/api/internal/user/handler/handler.go:57
MethodGetUserPatches
GetUserPatches retrieves the user's patch list.
apps/api/internal/user/service/service.go:357
MethodGetUserPatches
===== User Profile Lists ===== All list helpers below split Count and Find onto independent statements via .Session(&gorm.Session{}). Reusing one chai
apps/api/internal/user/repository/repository.go:69
MethodGetUserPatches
GetUserPatches GET /api/user/:id/patch
apps/api/internal/user/handler/handler.go:88
MethodGetUserPurgePreview
===== User purge (anti-spam, admin-only) ===== GetUserPurgePreview GET /api/admin/user/:id/purge-preview?purge_owned_patches= Dry run: returns the co
apps/api/internal/admin/handler/handler.go:228
MethodGetUserRanking
GetUserRanking GET /api/ranking/user Top 60 users sorted by one of: - moemoepoint (default) - patch — count of patches the user owns - resourc
apps/api/internal/common/handler.go:765
MethodGetUserResources
GetUserResources retrieves the user's resource list with each resource enriched with its owning patch's Wiki summary (name + banner) so the user/:id/r
apps/api/internal/user/service/service.go:365
MethodGetUserResources
(userID, offset, limit int)
apps/api/internal/user/repository/repository.go:85
MethodGetUserResources
GetUserResources GET /api/user/:id/resource
apps/api/internal/user/handler/handler.go:113
FunctionGetValidator
()
apps/api/pkg/utils/validate.go:61
MethodGetWikiMessagesReadState
GetWikiMessagesReadState GET /api/v1/galgame/messages/read-state Returns the caller's last-read marker for wiki notifications. Used by the notificati
apps/api/internal/patch/handler/handler.go:1158
FunctionHasRole
HasRole reports whether the current request's roles set contains role.
apps/api/internal/middleware/auth.go:307
FunctionHikariCORS
HikariCORS is the dynamic CORS for the external Hikari API: it reflects the request Origin ONLY when it matches a partner-site pattern, and answers th
apps/api/internal/middleware/cors.go:81
FunctionIncludeEmptyGalgames
IncludeEmptyGalgames reports whether a browse-list caller opted in to seeing galgames that have no patch resources (patch.resource_count = 0), via the
apps/api/pkg/utils/contentlimit.go:63
MethodIncrementResourceDownload
(resourceID int)
apps/api/internal/patch/service/service.go:1321
MethodIncrementResourceDownload
(resourceID, patchID int)
apps/api/internal/patch/repository/repository.go:335
MethodIncrementResourceDownload
(c fiber.Ctx)
apps/api/internal/patch/handler/handler.go:692
MethodIncrementView
IncrementView bumps the counter without touching updated_at (UpdateColumn).
apps/api/internal/doc/repository/repository.go:56
MethodIncrementView
(id int)
apps/api/internal/patch/service/service.go:506
MethodIncrementView
(id int)
apps/api/internal/patch/repository/repository.go:143
← previousnext →601–700 of 1,135, ranked by callers