organization

This commit is contained in:
skiffer-git 2022-04-18 15:51:17 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent 5271d22174
commit ec9474e96f
1 changed files with 2 additions and 2 deletions

View File

@ -234,9 +234,9 @@ func CreateDepartmentMember(c *gin.Context) {
return
}
req := &rpc.CreateDepartmentMemberReq{UserInDepartment: &open_im_sdk.UserInDepartment{}}
req := &rpc.CreateDepartmentMemberReq{DepartmentMember: &open_im_sdk.DepartmentMember{}}
utils.CopyStructFields(req, &params)
utils.CopyStructFields(req.UserInDepartment, &params)
utils.CopyStructFields(req.DepartmentMember, &params)
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
req.OpUserID = opUserID