diff --git a/internal/api/organization/organization.go b/internal/api/organization/organization.go index d64e21d37..eed92ba41 100644 --- a/internal/api/organization/organization.go +++ b/internal/api/organization/organization.go @@ -24,7 +24,7 @@ func CreateDepartment(c *gin.Context) { } req := &rpc.CreateDepartmentReq{} utils.CopyStructFields(req, ¶ms) - utils.CopyStructFields(req.DepartmentInfo, ¶ms.Department) + utils.CopyStructFields(req.DepartmentInfo, params.Department) err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID) req.OpUserID = opUserID if err != nil {