Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KunMoe/kun-galgame-patch
/ functions
Functions
1,135 in github.com/KunMoe/kun-galgame-patch
⨍
Functions
1,135
◇
Types & classes
365
Method
GetFollowing
GetFollowing returns followee user briefs, batch-resolved from OAuth. See GetFollowers for `viewerID` semantics.
apps/api/internal/user/service/service.go:192
Method
GetFollowing
GetFollowing GET /api/user/:id/following
apps/api/internal/user/handler/handler.go:289
Method
GetGalgame
===== 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
Method
GetGalgameCalendar
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
Method
GetGalgameCalendarPending
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
Method
GetGalgameCalendarPending
GetGalgameCalendarPending GET /api/galgame/calendar/pending?year=YYYY
apps/api/internal/common/handler.go:1008
Method
GetGalgameCalendarTBA
GetGalgameCalendarTBA fetches the global "release date TBA" bucket.
apps/api/internal/galgame/client/client.go:531
Method
GetGalgameCalendarTBA
GetGalgameCalendarTBA GET /api/galgame/calendar/tba
apps/api/internal/common/handler.go:1031
Method
GetGalgameList
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
Method
GetGlobalComments
GetGlobalComments GET /api/comment
apps/api/internal/common/handler.go:260
Method
GetGlobalResources
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
Method
GetHikari
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
Method
GetHome
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
Method
GetLogs
===== Logs =====
apps/api/internal/admin/service/service.go:242
Method
GetLogs
===== Admin Logs =====
apps/api/internal/admin/repository/repository.go:198
Method
GetLogs
GetLogs GET /api/admin/log
apps/api/internal/admin/handler/handler.go:384
Method
GetMessages
GetMessages retrieves paginated messages for a user
apps/api/internal/message/service/service.go:17
Method
GetMessages
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
Method
GetMoemoepointLog
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
Method
GetMoemoepointLog
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
Method
GetMoyuHasPatch
GetMoyuHasPatch GET /api/moyu/patch/has-patch
apps/api/internal/common/handler.go:871
Method
GetMyWikiMessages
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
Method
GetMyWikiMessages
GetMyWikiMessages GET /api/v1/galgame/messages/mine
apps/api/internal/patch/handler/handler.go:1197
Method
GetOrphanCandidateIDs
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
Method
GetOrphanPatches
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
Method
GetOrphanPatches
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
Method
GetOrphanPatches
===== 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
Method
GetPatch
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
Method
GetPatch
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
Method
GetPatchDetail
(id int)
apps/api/internal/patch/repository/repository.go:64
Method
GetPatchDetail
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
Method
GetPatchRanking
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
Method
GetPatchesByIDs
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
Method
GetPost
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
Method
GetPost
GetPost GET /doc/post?slug=<category>/<name> — published only.
apps/api/internal/doc/handler/handler.go:57
Method
GetRandomPatch
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
Method
GetRandomPatchID
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
Method
GetResourceByID
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
Method
GetResourceDetail
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
Method
GetResourceDownloadInfo
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
Method
GetResourceDownloadInfo
IncrementResourceDownload PUT /api/patch/resource/:resourceId/download GetResourceDownloadInfo GET /api/patch/resource/:resourceId/link Minimal paylo
apps/api/internal/patch/handler/handler.go:652
Method
GetResourceFileHistory
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
Method
GetResourceFileHistory
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
Method
GetResourceFileHistory
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
Method
GetResourceFileHistory
===== Resource file history (MOYU-PR5 / M3) =====
apps/api/internal/admin/service/service.go:248
Method
GetResourceFileHistory
===== 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
Method
GetResourceFileHistory
===== 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
Method
GetResourceFileHistoryS3Keys
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
Method
GetResourceRevisions
GetResourceRevisions returns the paginated per-field edit history for one resource (public; Changes are secret-free).
apps/api/internal/patch/service/service.go:1796
Method
GetResourceRevisions
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
Method
GetResourceRevisions
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
Method
GetResources
===== Resources =====
apps/api/internal/patch/service/service.go:809
Method
GetResources
===== Resources =====
apps/api/internal/patch/repository/repository.go:295
Method
GetResources
===== 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
Method
GetResources
===== Resources =====
apps/api/internal/admin/service/service.go:70
Method
GetResources
===== Resources =====
apps/api/internal/admin/repository/repository.go:93
Method
GetResources
===== Resources ===== GetResources GET /api/admin/resource
apps/api/internal/admin/handler/handler.go:173
Method
GetRoomDetail
GetRoomDetail returns the room and its members. Caller must be a member.
apps/api/internal/chat/service/service.go:68
Method
GetRoomDetail
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
Method
GetStats
===== Stats =====
apps/api/internal/admin/service/service.go:218
Method
GetStats
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
Method
GetStats
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
Method
GetStatsSum
()
apps/api/internal/admin/service/service.go:230
Method
GetStatsSum
()
apps/api/internal/admin/repository/repository.go:165
Method
GetStatsSum
GetStatsSum GET /api/admin/stats/sum
apps/api/internal/admin/handler/handler.go:350
Method
GetUnreadTypes
GetUnreadTypes returns the list of unread message types
apps/api/internal/message/service/service.go:22
Method
GetUnreadTypes
GetUnreadTypes returns distinct types of unread messages
apps/api/internal/message/repository/repository.go:45
Method
GetUnreadTypes
GetUnreadTypes GET /api/message/unread
apps/api/internal/message/handler/handler.go:174
Method
GetUserByID
GetUserByID retrieves the local user row (site-local fields only).
apps/api/internal/user/service/service.go:400
Method
GetUserComments
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
Method
GetUserComments
(userID, offset, limit int)
apps/api/internal/user/repository/repository.go:111
Method
GetUserComments
GetUserComments GET /api/user/:id/comment
apps/api/internal/user/handler/handler.go:177
Method
GetUserContributions
GetUserContributions retrieves the user's contribution list.
apps/api/internal/user/service/service.go:395
Method
GetUserContributions
(userID, offset, limit int, includeEmpty bool)
apps/api/internal/user/repository/repository.go:122
Method
GetUserContributions
GetUserContributions GET /api/user/:id/contribute
apps/api/internal/user/handler/handler.go:203
Method
GetUserFavorites
GetUserFavorites retrieves the user's favorite list.
apps/api/internal/user/service/service.go:377
Method
GetUserFavorites
(userID, offset, limit int, includeEmpty bool)
apps/api/internal/user/repository/repository.go:96
Method
GetUserFavorites
GetUserFavorites GET /api/user/:id/favorite
apps/api/internal/user/handler/handler.go:146
Method
GetUserFloating
GetUserFloating retrieves the floating-card view of a user.
apps/api/internal/user/service/service.go:134
Method
GetUserFloating
GetUserFloating GET /api/user/:id/floating
apps/api/internal/user/handler/handler.go:73
Method
GetUserInfo
GetUserInfo GET /api/user/:id
apps/api/internal/user/handler/handler.go:57
Method
GetUserPatches
GetUserPatches retrieves the user's patch list.
apps/api/internal/user/service/service.go:357
Method
GetUserPatches
===== 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
Method
GetUserPatches
GetUserPatches GET /api/user/:id/patch
apps/api/internal/user/handler/handler.go:88
Method
GetUserPurgePreview
===== 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
Method
GetUserRanking
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
Method
GetUserResources
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
Method
GetUserResources
(userID, offset, limit int)
apps/api/internal/user/repository/repository.go:85
Method
GetUserResources
GetUserResources GET /api/user/:id/resource
apps/api/internal/user/handler/handler.go:113
Function
GetValidator
()
apps/api/pkg/utils/validate.go:61
Method
GetWikiMessagesReadState
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
Function
HasRole
HasRole reports whether the current request's roles set contains role.
apps/api/internal/middleware/auth.go:307
Function
HikariCORS
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
Function
IncludeEmptyGalgames
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
Method
IncrementResourceDownload
(resourceID int)
apps/api/internal/patch/service/service.go:1321
Method
IncrementResourceDownload
(resourceID, patchID int)
apps/api/internal/patch/repository/repository.go:335
Method
IncrementResourceDownload
(c fiber.Ctx)
apps/api/internal/patch/handler/handler.go:692
Method
IncrementView
IncrementView bumps the counter without touching updated_at (UpdateColumn).
apps/api/internal/doc/repository/repository.go:56
Method
IncrementView
(id int)
apps/api/internal/patch/service/service.go:506
Method
IncrementView
(id int)
apps/api/internal/patch/repository/repository.go:143
← previous
next →
601–700 of 1,135, ranked by callers