Skip to content

Commit

Permalink
fix: create group params
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloomingg committed Feb 10, 2022
1 parent 8c54cce commit 50d312a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/group/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package group

import (
"fmt"
"github.com/jinzhu/copier"
comm "open_im_sdk/internal/common"
ws "open_im_sdk/internal/interaction"
"open_im_sdk/open_im_sdk_callback"
Expand Down Expand Up @@ -200,9 +201,8 @@ func (g *Group) createGroup(callback open_im_sdk_callback.Base, group sdk.Create
apiReq := api.CreateGroupReq{}
apiReq.OperationID = operationID
apiReq.OwnerUserID = g.loginUserID
apiReq.GroupName = group.GroupName
apiReq.GroupType = group.GroupType
apiReq.MemberList = memberList
copier.Copy(&apiReq, &group)
realData := api.CreateGroupResp{}
log.NewInfo(operationID, utils.GetSelfFuncName(), "api req args: ", apiReq)
g.p.PostFatalCallback(callback, constant.CreateGroupRouter, apiReq, &realData.GroupInfo, apiReq.OperationID)
Expand Down
2 changes: 1 addition & 1 deletion pkg/sdk_params_callback/group_sdk_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

type CreateGroupBaseInfoParam struct {
GroupName string `json:"groupName"`
GroupType int32 `json:"groupType"`
SetGroupInfoParam
}

type CreateGroupMemberRoleParam []*server_api_params.GroupAddMemberInfo
Expand Down

0 comments on commit 50d312a

Please sign in to comment.