From e73f5981c9ba89f725cc0a8fd2d010b3b1b87fa1 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 18 Apr 2022 16:24:12 +0800 Subject: [PATCH] organization --- internal/api/organization/organization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/organization/organization.go b/internal/api/organization/organization.go index 5b7d1d437..986ff01c1 100644 --- a/internal/api/organization/organization.go +++ b/internal/api/organization/organization.go @@ -307,8 +307,8 @@ func UpdateUserInDepartment(c *gin.Context) { } req := &rpc.UpdateUserInDepartmentReq{DepartmentMember: &open_im_sdk.DepartmentMember{}} + utils.CopyStructFields(req.DepartmentMember, ¶ms) utils.CopyStructFields(req, ¶ms) - err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID) req.OpUserID = opUserID if err != nil {