mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-20 08:49:01 +08:00
push
This commit is contained in:
@@ -168,6 +168,9 @@ func (g *Getui) Push(userIDList []string, title, detailContent, operationID stri
|
|||||||
var IsAsync = true
|
var IsAsync = true
|
||||||
pushReq.IsAsync = &IsAsync
|
pushReq.IsAsync = &IsAsync
|
||||||
pushReq.Taskid = &taskID
|
pushReq.Taskid = &taskID
|
||||||
|
pushReq.Audience = struct {
|
||||||
|
Alias []string `json:"alias"`
|
||||||
|
}{Alias: userIDList}
|
||||||
err = g.request(BatchPushURL, pushReq, token, &pushResp, operationID)
|
err = g.request(BatchPushURL, pushReq, token, &pushResp, operationID)
|
||||||
} else {
|
} else {
|
||||||
reqID := utils.OperationIDGenerator()
|
reqID := utils.OperationIDGenerator()
|
||||||
|
|||||||
Reference in New Issue
Block a user