(statusParam string)
| 42 | } |
| 43 | |
| 44 | func parseStatusFilter(statusParam string) int { |
| 45 | switch strings.ToLower(statusParam) { |
| 46 | case "enabled", "1": |
| 47 | return common.ChannelStatusEnabled |
| 48 | case "disabled", "0": |
| 49 | return 0 |
| 50 | default: |
| 51 | return -1 |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func GetAllChannels(c *gin.Context) { |
| 56 | pageInfo := common.GetPageQuery(c) |
no outgoing calls
no test coverage detected