MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetChannelsByIds

Function GetChannelsByIds

model/channel.go:822–826  ·  view source on GitHub ↗
(ids []int)

Source from the content-addressed store, hash-verified

820}
821
822func 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
828func BatchSetChannelTag(ids []int, tag *string) error {
829 // 开启事务

Callers 2

FetchUpstreamRatiosFunction · 0.92
BatchSetChannelTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected