MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / getSubscribesByTarget

Method getSubscribesByTarget

plugin/minecraftobserver/store.go:210–220  ·  view source on GitHub ↗

获取渠道对应的订阅列表

(targetID, targetType int64)

Source from the content-addressed store, hash-verified

208
209// 获取渠道对应的订阅列表
210func (d *db) getSubscribesByTarget(targetID, targetType int64) (subs []serverSubscribe, err error) {
211 if d == nil {
212 return nil, errDBConn
213 }
214 subs = []serverSubscribe{}
215 if err = d.sdb.Model(&serverSubscribe{}).Where("target_id = ? and target_type = ?", targetID, targetType).Find(&subs).Error; err != nil {
216 // logrus.Errorln(logPrefix+"getSubscribesByTarget ERROR: ", err)
217 return
218 }
219 return
220}

Callers 2

Test_DAOFunction · 0.80
initFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_DAOFunction · 0.64