mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +08:00
getui
This commit is contained in:
parent
caf4ab60cd
commit
2c308af615
@ -51,7 +51,7 @@ type AuthResp struct {
|
|||||||
type PushReq struct {
|
type PushReq struct {
|
||||||
RequestID string `json:"request_id"`
|
RequestID string `json:"request_id"`
|
||||||
Audience struct {
|
Audience struct {
|
||||||
Cid []string `json:"cid"`
|
Alias []string `json:"alias"`
|
||||||
} `json:"audience"`
|
} `json:"audience"`
|
||||||
PushMessage struct {
|
PushMessage struct {
|
||||||
Notification Notification `json:"notification,omitempty"`
|
Notification Notification `json:"notification,omitempty"`
|
||||||
@ -91,8 +91,8 @@ func (g *Getui) Push(userIDList []string, alert, detailContent, platform, operat
|
|||||||
pushReq := PushReq{
|
pushReq := PushReq{
|
||||||
RequestID: utils.OperationIDGenerator(),
|
RequestID: utils.OperationIDGenerator(),
|
||||||
Audience: struct {
|
Audience: struct {
|
||||||
Cid []string `json:"cid"`
|
Alias []string `json:"alias"`
|
||||||
}{Cid: []string{userIDList[0]}},
|
}{Alias: []string{userIDList[0]}},
|
||||||
}
|
}
|
||||||
pushReq.PushMessage.Notification = Notification{
|
pushReq.PushMessage.Notification = Notification{
|
||||||
Title: alert,
|
Title: alert,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user