package event_s import ( "git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/rpc" "hilo-group/domain/event/group_ev" "hilo-group/myerr/bizerr" ) // 用户进房后推送mic信息 func GroupInMicChangeEvent() { group_ev.AddTxGroupInEventAsync(func(model *domain.Model, event interface{}) error { e, ok := event.(*group_ev.TxGroupInEvent) if !ok { return bizerr.InvalidParameter } return rpc.SendSocketMicChange(e.UserId) // todo }) }