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