MCPcopy Create free account
hub / github.com/53AI/53AIHub / parseMCPStyleID

Function parseMCPStyleID

api/controller/file.go:73–82  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

71}
72
73func parseMCPStyleID(id string) (int64, error) {
74 if id == "" {
75 return 0, errors.New("ID不能为空")
76 }
77 parsed, err := hashids.TryParseID(id)
78 if err != nil || parsed <= 0 {
79 return 0, errors.New("无效的ID")
80 }
81 return parsed, nil
82}
83
84// ParentExists godoc
85// @Summary 查看文档父级是否存在

Callers 7

ParentExistsFunction · 0.85
GetFileFunction · 0.85
DeleteFileFunction · 0.85
DeleteFileAsyncFunction · 0.85
GetFileDeletionPreviewFunction · 0.85
RestoreFileFunction · 0.85
HardDeleteFileFunction · 0.85

Calls 1

NewMethod · 0.45

Tested by

no test coverage detected