You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
474 B
19 lines
474 B
package im_service
|
|
|
|
import (
|
|
"errors"
|
|
"hudongzhuanjia/libs/im"
|
|
"hudongzhuanjia/models"
|
|
)
|
|
|
|
func SendNoticeByActivityId(activityId int64, _type im.NoticeStatus, data map[string]interface{}, members ...string) error {
|
|
live := new(models.LiveConfig)
|
|
exist, err := live.GetByActivityId(activityId)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if !exist {
|
|
return errors.New("直播信息不存在")
|
|
}
|
|
return im.SendGroupSystemNotification(live.ImGroupId, _type, data, members...)
|
|
}
|