mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 03:42:08 +08:00
sync
This commit is contained in:
parent
cfc01bb3d9
commit
e9f46271ba
@ -20,6 +20,7 @@ import (
|
|||||||
"github.com/openimsdk/protocol/group"
|
"github.com/openimsdk/protocol/group"
|
||||||
"github.com/openimsdk/tools/a2r"
|
"github.com/openimsdk/tools/a2r"
|
||||||
"github.com/openimsdk/tools/apiresp"
|
"github.com/openimsdk/tools/apiresp"
|
||||||
|
"github.com/openimsdk/tools/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GroupApi rpcclient.Group
|
type GroupApi rpcclient.Group
|
||||||
@ -145,7 +146,7 @@ func (o *GroupApi) GetIncrementalGroupMember(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (o *GroupApi) GetIncrementalGroupMemberBatch(c *gin.Context) {
|
func (o *GroupApi) GetIncrementalGroupMemberBatch(c *gin.Context) {
|
||||||
type BatchIncrementalReq[A any] struct {
|
type BatchIncrementalReq struct {
|
||||||
UserID string `json:"user_id"`
|
UserID string `json:"user_id"`
|
||||||
List []*group.GetIncrementalGroupMemberReq `json:"list"`
|
List []*group.GetIncrementalGroupMemberReq `json:"list"`
|
||||||
}
|
}
|
||||||
@ -172,6 +173,7 @@ func (o *GroupApi) GetIncrementalGroupMemberBatch(c *gin.Context) {
|
|||||||
if len(resp.List) == 0 {
|
if len(resp.List) == 0 {
|
||||||
apiresp.GinError(c, err)
|
apiresp.GinError(c, err)
|
||||||
} else {
|
} else {
|
||||||
|
log.ZError(c, "group incr sync versopn", err, "groupID", req.GroupID, "success", len(resp.List))
|
||||||
apiresp.GinSuccess(c, resp)
|
apiresp.GinSuccess(c, resp)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user