[Improvement][API] create project success return project id (#4927)

* create project success return project id.

* update return data structure
This commit is contained in:
zhuangchong 2021-03-02 18:03:59 +08:00 committed by GitHub
parent d01b2c432e
commit ba2bb22100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.api.service.impl;
import static org.apache.dolphinscheduler.api.utils.CheckUtils.checkDesc;
@ -97,7 +98,7 @@ public class ProjectServiceImpl extends BaseServiceImpl implements ProjectServic
.build();
if (projectMapper.insert(project) > 0) {
result.put(Constants.DATA_LIST, project);
result.put(Constants.DATA_LIST, project.getId());
putMsg(result, Status.SUCCESS);
} else {
putMsg(result, Status.CREATE_PROJECT_ERROR);