(ids []int)
| 820 | } |
| 821 | |
| 822 | func GetChannelsByIds(ids []int) ([]*Channel, error) { |
| 823 | var channels []*Channel |
| 824 | err := DB.Where("id in (?)", ids).Find(&channels).Error |
| 825 | return channels, err |
| 826 | } |
| 827 | |
| 828 | func BatchSetChannelTag(ids []int, tag *string) error { |
| 829 | // 开启事务 |
no outgoing calls
no test coverage detected