return domain after creating success (#7355)
Co-authored-by: ouyangyewei <yewei.oyyw@alibaba-inc.com>
This commit is contained in:
parent
255670fda9
commit
f6fd7f6540
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -151,6 +151,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;
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ public class TenantServiceImpl extends BaseServiceImpl implements TenantService
|
|||
createTenantDirIfNotExists(tenantCode);
|
||||
}
|
||||
|
||||
result.put(Constants.DATA_LIST, tenant);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -174,6 +174,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