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

Function parseUserIDs

api/controller/recording_admin.go:36–48  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

34}
35
36func parseUserIDs(s string) []int64 {
37 if strings.TrimSpace(s) == "" {
38 return nil
39 }
40 var ids []int64
41 for _, part := range strings.Split(s, ",") {
42 part = strings.TrimSpace(part)
43 if id, err := strconv.ParseInt(part, 10, 64); err == nil && id > 0 {
44 ids = append(ids, id)
45 }
46 }
47 return ids
48}
49
50// GetRecordingConfig godoc
51// @Summary 获取录音配置

Callers 2

ListAllRecordingsFunction · 0.85
GetRecordingStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected