MCPcopy Index your code
hub / github.com/53AI/53AIHub / DecodeIDsInStruct

Function DecodeIDsInStruct

api/middleware/request_decoder.go:239–241  ·  view source on GitHub ↗

DecodeIDsInStruct 手动解码结构体中的ID字段(用于特殊情况)

(data interface{})

Source from the content-addressed store, hash-verified

237
238// DecodeIDsInStruct 手动解码结构体中的ID字段(用于特殊情况)
239func DecodeIDsInStruct(data interface{}) interface{} {
240 return decodeRequestIDs(data)
241}
242
243// BatchDecodeIDStrings 批量解码ID字符串数组
244func BatchDecodeIDStrings(encodedIDs []string) ([]int64, error) {

Callers

nothing calls this directly

Calls 1

decodeRequestIDsFunction · 0.85

Tested by

no test coverage detected