互动
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

5 years ago
5 years ago
  1. package im_service
  2. import (
  3. "errors"
  4. "hudongzhuanjia/libs/im"
  5. "hudongzhuanjia/models"
  6. )
  7. func SendNoticeByActivityId(activityId int64, _type im.NoticeStatus, data map[string]interface{}, members ...string) error {
  8. live := new(models.LiveConfig)
  9. exist, err := live.GetByActivityId(activityId)
  10. if err != nil {
  11. return err
  12. }
  13. if !exist {
  14. return errors.New("直播信息不存在")
  15. }
  16. return im.SendGroupSystemNotification(live.ImGroupId, _type, data, members...)
  17. }