(c *gin.Context, channelId int)
| 240 | } |
| 241 | |
| 242 | func addUsedChannel(c *gin.Context, channelId int) { |
| 243 | useChannel := c.GetStringSlice("use_channel") |
| 244 | useChannel = append(useChannel, fmt.Sprintf("%d", channelId)) |
| 245 | c.Set("use_channel", useChannel) |
| 246 | } |
| 247 | |
| 248 | func getChannel(c *gin.Context, group, originalModel string, retryCount int) (*model.Channel, *types.NewAPIError) { |
| 249 | if retryCount == 0 { |
no outgoing calls
no test coverage detected