mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 04:39:00 +08:00
return domain after creating success (#7050)
Co-authored-by: ouyangyewei <yewei.oyyw@alibaba-inc.com>
This commit is contained in:
parent
c2585a1170
commit
7b20f4c239
@ -110,6 +110,7 @@ public class AccessTokenServiceImpl extends BaseServiceImpl implements AccessTok
|
||||
int insert = accessTokenMapper.insert(accessToken);
|
||||
|
||||
if (insert > 0) {
|
||||
result.put(Constants.DATA_LIST, accessToken);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
} else {
|
||||
putMsg(result, Status.CREATE_ACCESS_TOKEN_ERROR);
|
||||
|
@ -110,7 +110,7 @@ public class ProjectServiceImpl extends BaseServiceImpl implements ProjectServic
|
||||
}
|
||||
|
||||
if (projectMapper.insert(project) > 0) {
|
||||
result.put(Constants.DATA_LIST, project.getId());
|
||||
result.put(Constants.DATA_LIST, project);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
} else {
|
||||
putMsg(result, Status.CREATE_PROJECT_ERROR);
|
||||
|
@ -157,6 +157,7 @@ public class QueueServiceImpl extends BaseServiceImpl implements QueueService {
|
||||
queueObj.setUpdateTime(now);
|
||||
|
||||
queueMapper.insert(queueObj);
|
||||
result.put(Constants.DATA_LIST, queueObj);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
|
||||
return result;
|
||||
|
@ -122,6 +122,7 @@ public class TenantServiceImpl extends BaseServiceImpl implements TenantService
|
||||
createTenantDirIfNotExists(tenantCode);
|
||||
}
|
||||
|
||||
result.put(Constants.DATA_LIST, tenant);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
|
||||
return result;
|
||||
|
@ -180,6 +180,7 @@ public class UsersServiceImpl extends BaseServiceImpl implements UsersService {
|
||||
HadoopUtils.getInstance().mkdir(userPath);
|
||||
}
|
||||
|
||||
result.put(Constants.DATA_LIST, user);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
return result;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user