update
This commit is contained in:
@ -11,6 +11,7 @@ import (
|
||||
yunxin "gitea.ddegame.cn/open/servicebase/pkg/common/netease/dto"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/htools"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/tools"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cast"
|
||||
@ -1011,7 +1012,7 @@ func (client *ImClient) GroupMemberKick(ctx context.Context, tid, operator_id, e
|
||||
reqBody := map[string]any{
|
||||
"team_type": 1,
|
||||
"operator_id": operator_id,
|
||||
"team_id": tid,
|
||||
"team_id": tools.StrToInt(tid),
|
||||
"kick_account_ids": members,
|
||||
"extension": extension,
|
||||
}
|
||||
@ -1044,7 +1045,7 @@ func (client *ImClient) GroupMemberLeave(ctx context.Context, tid, account_id, e
|
||||
reqBody := map[string]any{
|
||||
"team_type": 1,
|
||||
"account_id": account_id,
|
||||
"team_id": tid,
|
||||
"team_id": tools.StrToInt(tid),
|
||||
"extension": extension,
|
||||
}
|
||||
bodyBytes, err := json.Marshal(reqBody)
|
||||
@ -1076,7 +1077,7 @@ func (client *ImClient) GroupMemberJoin(ctx context.Context, tid, operator_id, m
|
||||
reqBody := map[string]any{
|
||||
"team_type": 1,
|
||||
"operator_id": operator_id,
|
||||
"team_id": tid,
|
||||
"team_id": tools.StrToInt(tid),
|
||||
"msg": msg,
|
||||
"invite_account_ids": invite_account_ids,
|
||||
"extension": extension,
|
||||
|
||||
Reference in New Issue
Block a user