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
ContentType
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:709
Method
ContentType
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:771
Method
ContentType
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:802
Method
ContentType
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:833
Method
ContentType
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:864
Method
CountOrphanPatches
CountOrphanPatches splits the orphan total into the two locally-knowable categories: pending placeholders (`pending-N`) vs. otherwise-malformed vndb_i
apps/api/internal/admin/repository/repository.go:304
Method
Create
(doc *model.Doc)
apps/api/internal/doc/repository/repository.go:43
Method
CreateComment
(patchID, userID int, content string, parentID *int)
apps/api/internal/patch/service/service.go:616
Method
CreateComment
(comment *model.PatchComment)
apps/api/internal/patch/repository/repository.go:205
Method
CreateComment
CreateComment POST /api/patch/:id/comment
apps/api/internal/patch/handler/handler.go:315
Method
CreateLog
(adminUID int, logType string, data any)
apps/api/internal/admin/repository/repository.go:211
Method
CreateMessage
CreateMessage sends a message and updates the room's last_message_time.
apps/api/internal/chat/service/service.go:110
Method
CreateMessage
CreateMessage writes the message and updates the room's last_message_time (in a transaction).
apps/api/internal/chat/repository/repository.go:239
Method
CreateMessage
CreateMessage POST /api/chat/room/:link/message
apps/api/internal/chat/handler/handler.go:399
Method
CreatePatch
===== Patch ===== CreatePatch handles POST /api/patch (D12, 2026-04-21). Strict policy: vndb_id MUST already exist on the Galgame Wiki. We do not POS
apps/api/internal/patch/service/service.go:80
Method
CreatePatch
===== Patch CRUD =====
apps/api/internal/patch/repository/repository.go:23
Method
CreatePatch
CreatePatch POST /api/patch D12 (2026-04-21): the request body is simplified to JSON { "vndb_id": "vXXX" }. The server calls Wiki /galgame/check to v
apps/api/internal/patch/handler/handler.go:100
Method
CreatePost
CreatePost POST /admin/doc
apps/api/internal/doc/handler/handler.go:109
Method
CreateResource
(ctx context.Context, resource *model.PatchResource, userID int)
apps/api/internal/patch/service/service.go:884
Method
CreateResource
(resource *model.PatchResource)
apps/api/internal/patch/repository/repository.go:303
Method
CreateResource
CreateResource POST /api/patch/:id/resource
apps/api/internal/patch/handler/handler.go:523
Method
CreateRoom
CreateRoom creates a group room and inserts the owner as the first member.
apps/api/internal/chat/repository/repository.go:55
Function
CreateSession
(c fiber.Ctx, rdb *redis.Client, session *SessionData)
apps/api/internal/middleware/auth.go:354
Method
CreatorApply
CreatorApply — POST /api/user/creator/apply {message?}: checks moyu's eligibility gate then files the application on the OAuth queue.
apps/api/internal/user/handler/creator.go:32
Method
CreatorStatus
CreatorStatus returns the user's eligibility snapshot + current OAuth application (nil if never applied).
apps/api/internal/user/service/creator.go:60
Method
CreatorStatus
CreatorStatus — GET /api/user/creator/status: moyu eligibility snapshot + the user's current creator application (from the central OAuth queue).
apps/api/internal/user/handler/creator.go:15
Method
Delete
(id int)
apps/api/internal/doc/repository/repository.go:51
Method
DeleteArtifact
(ctx context.Context, uuid string, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:304
Method
DeleteArtifactWithResponse
DeleteArtifactWithResponse request returning *DeleteArtifactResp
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:898
Method
DeleteComment
reason: optional moderation reason, recorded in the author notification + audit when a privileged user deletes someone else's comment.
apps/api/internal/patch/service/service.go:712
Method
DeleteComment
(id int)
apps/api/internal/patch/repository/repository.go:239
Method
DeleteComment
DeleteComment DELETE /api/patch/comment/:commentId
apps/api/internal/patch/handler/handler.go:391
Method
DeleteComment
(commentID, adminUID int)
apps/api/internal/admin/service/service.go:60
Method
DeleteComment
(commentID int)
apps/api/internal/admin/repository/repository.go:64
Method
DeleteComment
DeleteComment DELETE /api/admin/comment/:id
apps/api/internal/admin/handler/handler.go:157
Method
DeleteGalgameDraft
DeleteGalgameDraft proxies DELETE /galgame/:gid (hard delete, status ∈ {3,4}).
apps/api/internal/galgame/client/submission.go:184
Method
DeleteGalgameDraft
DeleteGalgameDraft DELETE /api/v1/galgame/:gid (draft) Hard-delete one's own pending/declined draft (Wiki enforces status ∈ {3,4} + submitter check).
apps/api/internal/patch/handler/handler.go:1084
Method
DeleteMessage
DeleteMessage soft-deletes a message. Sender or moderator/admin may delete.
apps/api/internal/chat/service/service.go:159
Method
DeleteMessage
DeleteMessage DELETE /api/chat/message/:id
apps/api/internal/chat/handler/handler.go:438
Method
DeletePatch
(id, userID int, isAdmin bool)
apps/api/internal/patch/service/service.go:437
Method
DeletePatch
(id int)
apps/api/internal/patch/repository/repository.go:74
Method
DeletePatch
DeletePatch DELETE /api/patch/:id
apps/api/internal/patch/handler/handler.go:244
Method
DeletePost
DeletePost DELETE /admin/doc/:id
apps/api/internal/doc/handler/handler.go:143
Method
DeleteResource
reason is the optional moderation reason, recorded in BOTH the owner notification and the audit log when a privileged user deletes someone else's reso
apps/api/internal/patch/service/service.go:1171
Method
DeleteResource
NOTE: the former PatchRepository.UpdateResource(resource) helper was removed (MOYU-PR5 / M3). All resource updates now go through PatchService.UpdateR
apps/api/internal/patch/repository/repository.go:320
Method
DeleteResource
DeleteResource DELETE /api/patch/resource/:resourceId
apps/api/internal/patch/handler/handler.go:611
Method
DeleteResource
(resourceID, adminUID int)
apps/api/internal/admin/service/service.go:86
Method
DeleteResource
(resourceID int)
apps/api/internal/admin/repository/repository.go:114
Method
DeleteResource
DeleteResource DELETE /api/admin/resource/:id
apps/api/internal/admin/handler/handler.go:208
Function
DestroySession
(c fiber.Ctx, rdb *redis.Client)
apps/api/internal/middleware/auth.go:415
Method
DownloadArtifact
(ctx context.Context, uuid string, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:352
Method
DownloadArtifactWithResponse
DownloadArtifactWithResponse request returning *DownloadArtifactResp
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:933
Method
Ecosystem
Ecosystem GET /api/v1/auth/oauth/ecosystem Public, unauthenticated. Serves the OAuth app-directory strip ("可以用这个账号 登录以下网站") on the login modal. The l
apps/api/internal/auth/handler/handler.go:133
Function
EnrichCalendarBriefs
EnrichCalendarBriefs turns wiki calendar briefs into CalendarCards. There is no wiki re-fetch (the briefs are already complete, incl. release_date / r
apps/api/internal/galgame/enricher/enricher.go:581
Function
EnrichPatch
EnrichPatch enriches a single patch (for the header card; no intro/tag/official). If users is non-nil, the publisher brief is also fetched and attache
apps/api/internal/galgame/enricher/enricher.go:292
Function
EnrichPatchDetail
EnrichPatchDetail enriches the detail page: one extra /galgame/:gid call on top of EnrichPatch to get intro/associated IDs. Returns nil when contentL
apps/api/internal/galgame/enricher/enricher.go:367
Function
EnrichPatches
EnrichPatches enriches a batch of local patches with Wiki data into GalgameCards the frontend can render directly. A single /galgame/batch call cover
apps/api/internal/galgame/enricher/enricher.go:109
Function
ErrAccountBanned
ErrAccountBanned mirrors OAuth's code 10014 (HTTP 403). Per docs/oauth/api-reference.md the frontend should land users on an "account banned" page rat
apps/api/pkg/errors/errors.go:77
Function
ErrAuthExpired
()
apps/api/pkg/errors/errors.go:24
Function
ErrBadRequest
Request related
apps/api/pkg/errors/errors.go:33
Function
ErrBusiness
Business related
apps/api/pkg/errors/errors.go:60
Function
ErrConflict
(msg string)
apps/api/pkg/errors/errors.go:84
Function
ErrForbidden
()
apps/api/pkg/errors/errors.go:28
Function
ErrInternal
Server related
apps/api/pkg/errors/errors.go:52
Function
ErrNotFound
(msg string)
apps/api/pkg/errors/errors.go:40
Function
ErrTooManyRequests
(msg string)
apps/api/pkg/errors/errors.go:88
Function
ErrUnauthorized
Authentication related
apps/api/pkg/errors/errors.go:20
Function
ErrValidation
(msg string)
apps/api/pkg/errors/errors.go:47
Function
ErrWikiGalgameNotFound
ErrWikiGalgameNotFound is returned by POST /patch when the supplied vndb_id does not yet exist on the Galgame Wiki. Distinct code (44001) so the front
apps/api/pkg/errors/errors.go:67
Function
Error
(c fiber.Ctx, err *errors.AppError)
apps/api/pkg/response/response.go:47
Function
ExtractMentionedUserIDs
ExtractMentionedUserIDs scans markdown source for [@text](/user/<id>/...) patterns and returns the unique uids in order of first occurrence.
apps/api/internal/infrastructure/markdown/markdown.go:455
Function
FilterByGalgameContentLimit
FilterByGalgameContentLimit drops items whose owning galgame_id wiki excludes under the given content_limit. Used by list endpoints whose primary rows
apps/api/internal/galgame/enricher/nsfw_filter.go:23
Function
FitJPEG
FitJPEG decodes image bytes in any common format (JPG/PNG/GIF/WebP), resizes fit-inside to within (maxW, maxH) (no upscaling) using the Lanczos filter
apps/api/pkg/imageutil/imageutil.go:23
Method
Follow
Follow creates a follow relation and bumps the denormalized counts.
apps/api/internal/user/service/service.go:139
Method
Follow
Profile mutations (username / bio / password / email / avatar) live on OAuth: the frontend should call OAuth's PATCH /auth/me directly or be redirecte
apps/api/internal/user/handler/handler.go:232
Function
GalgameOnlyCard
GalgameOnlyCard builds a header card for a galgame moyu has NO local patch row for, straight from wiki data (is_on_forum=false). Returns nil when the
apps/api/internal/galgame/enricher/enricher.go:598
Function
GalgameOnlyDetail
GalgameOnlyDetail builds the introduction-tab detail card for a galgame moyu has NO local patch row for, from wiki GET /galgame/:gid (is_on_forum=fals
apps/api/internal/galgame/enricher/enricher.go:627
Method
Generate
(value []byte, kind ast.NodeKind)
apps/api/internal/infrastructure/markdown/markdown.go:51
Function
GetAccessToken
GetAccessToken returns the OAuth access_token bound to the current session (empty string if no session). Handlers that proxy write operations to upstr
apps/api/internal/middleware/auth.go:288
Method
GetAllMessages
GetAllMessages GET /api/message/all Same as GET /api/message but ignores the type filter. Kept as a separate route for parity with the legacy fronten
apps/api/internal/message/handler/handler.go:156
Method
GetAllPatches
===== All Patches (admin browse) ===== GetAllPatches lists every patch with pagination, optionally filtering by substring of vndb_id (game names are o
apps/api/internal/admin/repository/repository.go:227
Method
GetArtifact
(ctx context.Context, uuid string, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:316
Method
GetArtifactWithResponse
GetArtifactWithResponse request
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:674
Method
GetArtifactWithResponse
GetArtifactWithResponse request returning *GetArtifactResp
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:907
Method
GetCommentMarkdown
(commentID int)
apps/api/internal/patch/service/service.go:797
Method
GetCommentMarkdown
(commentID int)
apps/api/internal/patch/repository/repository.go:256
Method
GetCommentMarkdown
GetCommentMarkdown GET /api/patch/comment/:commentId/markdown NSFW gate: look up the comment's owning patch and apply the same content_limit check th
apps/api/internal/patch/handler/handler.go:446
Method
GetCommentPatchID
GetCommentPatchID returns the comment's owning patch.id — used by handlers that need to NSFW-gate the comment's content (markdown view, etc.). Returns
apps/api/internal/patch/repository/repository.go:265
Method
GetCommentVerify
===== Settings ===== GetCommentVerify GET /api/admin/setting/comment-verify
apps/api/internal/admin/handler/handler.go:298
Method
GetComments
===== Comments ===== GetComments returns a page of top-level comments (plus their replies), renders content_html, attaches publisher briefs from OAuth
apps/api/internal/patch/service/service.go:546
Method
GetComments
NOTE: ReplaceAliases is deprecated per D12 (2026-04-21). Aliases are owned by Wiki /galgame/:gid/aliases. ===== Comments =====
apps/api/internal/patch/repository/repository.go:182
Method
GetComments
===== Comments ===== GetComments GET /api/patch/:id/comment NSFW gate: same shape as GetPatch — anonymous (sfw) callers see 404 on a NSFW patch's com
apps/api/internal/patch/handler/handler.go:291
Method
GetComments
===== Comments =====
apps/api/internal/admin/service/service.go:42
Method
GetComments
===== Comments =====
apps/api/internal/admin/repository/repository.go:33
Method
GetComments
===== Comments ===== GetComments GET /api/admin/comment
apps/api/internal/admin/handler/handler.go:122
Method
GetContributorIDs
===== Contributors ===== GetContributorIDs returns the user_ids of every contributor on a patch. The handler layer batches these via OAuth /users/batc
apps/api/internal/patch/repository/repository.go:405
Method
GetContributors
===== Contributors ===== GetContributors GET /api/patch/:id/contributor Returns publisher briefs (id/name/avatar) batch-resolved from OAuth users/bat
apps/api/internal/patch/handler/handler.go:771
Method
GetCreatorOnly
GetCreatorOnly GET /api/admin/setting/creator-only
apps/api/internal/admin/handler/handler.go:315
Method
GetFollowers
GetFollowers returns follower user briefs, batch-resolved from OAuth. `viewerID` (0 for anonymous) is used to stamp each row with the viewer- relative
apps/api/internal/user/service/service.go:182
Method
GetFollowers
GetFollowers GET /api/user/:id/follower
apps/api/internal/user/handler/handler.go:262
← previous
next →
501–600 of 1,135, ranked by callers