organization

This commit is contained in:
skiffer-git 2022-04-18 16:24:12 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent a030d7181c
commit e73f5981c9

View File

@ -307,8 +307,8 @@ func UpdateUserInDepartment(c *gin.Context) {
}
req := &rpc.UpdateUserInDepartmentReq{DepartmentMember: &open_im_sdk.DepartmentMember{}}
utils.CopyStructFields(req.DepartmentMember, &params)
utils.CopyStructFields(req, &params)
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
req.OpUserID = opUserID
if err != nil {