MCPcopy Create free account

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

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

MethodContentType
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
MethodContentType
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
MethodContentType
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
MethodContentType
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
MethodContentType
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
MethodCountOrphanPatches
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
MethodCreate
(doc *model.Doc)
apps/api/internal/doc/repository/repository.go:43
MethodCreateComment
(patchID, userID int, content string, parentID *int)
apps/api/internal/patch/service/service.go:616
MethodCreateComment
(comment *model.PatchComment)
apps/api/internal/patch/repository/repository.go:205
MethodCreateComment
CreateComment POST /api/patch/:id/comment
apps/api/internal/patch/handler/handler.go:315
MethodCreateLog
(adminUID int, logType string, data any)
apps/api/internal/admin/repository/repository.go:211
MethodCreateMessage
CreateMessage sends a message and updates the room's last_message_time.
apps/api/internal/chat/service/service.go:110
MethodCreateMessage
CreateMessage writes the message and updates the room's last_message_time (in a transaction).
apps/api/internal/chat/repository/repository.go:239
MethodCreateMessage
CreateMessage POST /api/chat/room/:link/message
apps/api/internal/chat/handler/handler.go:399
MethodCreatePatch
===== 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
MethodCreatePatch
===== Patch CRUD =====
apps/api/internal/patch/repository/repository.go:23
MethodCreatePatch
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
MethodCreatePost
CreatePost POST /admin/doc
apps/api/internal/doc/handler/handler.go:109
MethodCreateResource
(ctx context.Context, resource *model.PatchResource, userID int)
apps/api/internal/patch/service/service.go:884
MethodCreateResource
(resource *model.PatchResource)
apps/api/internal/patch/repository/repository.go:303
MethodCreateResource
CreateResource POST /api/patch/:id/resource
apps/api/internal/patch/handler/handler.go:523
MethodCreateRoom
CreateRoom creates a group room and inserts the owner as the first member.
apps/api/internal/chat/repository/repository.go:55
FunctionCreateSession
(c fiber.Ctx, rdb *redis.Client, session *SessionData)
apps/api/internal/middleware/auth.go:354
MethodCreatorApply
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
MethodCreatorStatus
CreatorStatus returns the user's eligibility snapshot + current OAuth application (nil if never applied).
apps/api/internal/user/service/creator.go:60
MethodCreatorStatus
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
MethodDelete
(id int)
apps/api/internal/doc/repository/repository.go:51
MethodDeleteArtifact
(ctx context.Context, uuid string, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:304
MethodDeleteArtifactWithResponse
DeleteArtifactWithResponse request returning *DeleteArtifactResp
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:898
MethodDeleteComment
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
MethodDeleteComment
(id int)
apps/api/internal/patch/repository/repository.go:239
MethodDeleteComment
DeleteComment DELETE /api/patch/comment/:commentId
apps/api/internal/patch/handler/handler.go:391
MethodDeleteComment
(commentID, adminUID int)
apps/api/internal/admin/service/service.go:60
MethodDeleteComment
(commentID int)
apps/api/internal/admin/repository/repository.go:64
MethodDeleteComment
DeleteComment DELETE /api/admin/comment/:id
apps/api/internal/admin/handler/handler.go:157
MethodDeleteGalgameDraft
DeleteGalgameDraft proxies DELETE /galgame/:gid (hard delete, status ∈ {3,4}).
apps/api/internal/galgame/client/submission.go:184
MethodDeleteGalgameDraft
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
MethodDeleteMessage
DeleteMessage soft-deletes a message. Sender or moderator/admin may delete.
apps/api/internal/chat/service/service.go:159
MethodDeleteMessage
DeleteMessage DELETE /api/chat/message/:id
apps/api/internal/chat/handler/handler.go:438
MethodDeletePatch
(id, userID int, isAdmin bool)
apps/api/internal/patch/service/service.go:437
MethodDeletePatch
(id int)
apps/api/internal/patch/repository/repository.go:74
MethodDeletePatch
DeletePatch DELETE /api/patch/:id
apps/api/internal/patch/handler/handler.go:244
MethodDeletePost
DeletePost DELETE /admin/doc/:id
apps/api/internal/doc/handler/handler.go:143
MethodDeleteResource
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
MethodDeleteResource
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
MethodDeleteResource
DeleteResource DELETE /api/patch/resource/:resourceId
apps/api/internal/patch/handler/handler.go:611
MethodDeleteResource
(resourceID, adminUID int)
apps/api/internal/admin/service/service.go:86
MethodDeleteResource
(resourceID int)
apps/api/internal/admin/repository/repository.go:114
MethodDeleteResource
DeleteResource DELETE /api/admin/resource/:id
apps/api/internal/admin/handler/handler.go:208
FunctionDestroySession
(c fiber.Ctx, rdb *redis.Client)
apps/api/internal/middleware/auth.go:415
MethodDownloadArtifact
(ctx context.Context, uuid string, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:352
MethodDownloadArtifactWithResponse
DownloadArtifactWithResponse request returning *DownloadArtifactResp
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:933
MethodEcosystem
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
FunctionEnrichCalendarBriefs
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
FunctionEnrichPatch
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
FunctionEnrichPatchDetail
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
FunctionEnrichPatches
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
FunctionErrAccountBanned
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
FunctionErrAuthExpired
()
apps/api/pkg/errors/errors.go:24
FunctionErrBadRequest
Request related
apps/api/pkg/errors/errors.go:33
FunctionErrBusiness
Business related
apps/api/pkg/errors/errors.go:60
FunctionErrConflict
(msg string)
apps/api/pkg/errors/errors.go:84
FunctionErrForbidden
()
apps/api/pkg/errors/errors.go:28
FunctionErrInternal
Server related
apps/api/pkg/errors/errors.go:52
FunctionErrNotFound
(msg string)
apps/api/pkg/errors/errors.go:40
FunctionErrTooManyRequests
(msg string)
apps/api/pkg/errors/errors.go:88
FunctionErrUnauthorized
Authentication related
apps/api/pkg/errors/errors.go:20
FunctionErrValidation
(msg string)
apps/api/pkg/errors/errors.go:47
FunctionErrWikiGalgameNotFound
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
FunctionError
(c fiber.Ctx, err *errors.AppError)
apps/api/pkg/response/response.go:47
FunctionExtractMentionedUserIDs
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
FunctionFilterByGalgameContentLimit
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
FunctionFitJPEG
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
MethodFollow
Follow creates a follow relation and bumps the denormalized counts.
apps/api/internal/user/service/service.go:139
MethodFollow
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
FunctionGalgameOnlyCard
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
FunctionGalgameOnlyDetail
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
MethodGenerate
(value []byte, kind ast.NodeKind)
apps/api/internal/infrastructure/markdown/markdown.go:51
FunctionGetAccessToken
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
MethodGetAllMessages
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
MethodGetAllPatches
===== 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
MethodGetArtifact
(ctx context.Context, uuid string, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:316
MethodGetArtifactWithResponse
GetArtifactWithResponse request
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:674
MethodGetArtifactWithResponse
GetArtifactWithResponse request returning *GetArtifactResp
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:907
MethodGetCommentMarkdown
(commentID int)
apps/api/internal/patch/service/service.go:797
MethodGetCommentMarkdown
(commentID int)
apps/api/internal/patch/repository/repository.go:256
MethodGetCommentMarkdown
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
MethodGetCommentPatchID
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
MethodGetCommentVerify
===== Settings ===== GetCommentVerify GET /api/admin/setting/comment-verify
apps/api/internal/admin/handler/handler.go:298
MethodGetComments
===== 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
MethodGetComments
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
MethodGetComments
===== 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
MethodGetComments
===== Comments =====
apps/api/internal/admin/service/service.go:42
MethodGetComments
===== Comments =====
apps/api/internal/admin/repository/repository.go:33
MethodGetComments
===== Comments ===== GetComments GET /api/admin/comment
apps/api/internal/admin/handler/handler.go:122
MethodGetContributorIDs
===== 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
MethodGetContributors
===== 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
MethodGetCreatorOnly
GetCreatorOnly GET /api/admin/setting/creator-only
apps/api/internal/admin/handler/handler.go:315
MethodGetFollowers
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
MethodGetFollowers
GetFollowers GET /api/user/:id/follower
apps/api/internal/user/handler/handler.go:262
← previousnext →501–600 of 1,135, ranked by callers