(s string)
| 34 | } |
| 35 | |
| 36 | func 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 获取录音配置 |
no outgoing calls
no test coverage detected