From 1f96b960ab6d427016607c694bee38c29e8f7e81 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 18 Apr 2022 15:51:17 +0800 Subject: [PATCH] organization --- internal/api/organization/organization.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/organization/organization.go b/internal/api/organization/organization.go index 4bcd140f4..eeaf49e1e 100644 --- a/internal/api/organization/organization.go +++ b/internal/api/organization/organization.go @@ -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, ¶ms) - utils.CopyStructFields(req.UserInDepartment, ¶ms) + utils.CopyStructFields(req.DepartmentMember, ¶ms) err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID) req.OpUserID = opUserID