|
|
@@ -2,12 +2,15 @@ package cn.seecoder.seecoderportalserver.serviceImpl.subsystem;
|
|
|
|
|
|
import cn.seecoder.seecoderportalserver.service.subsystem.DevcloudService;
|
|
|
import cn.seecoder.seecoderportalserver.service.HttpService;
|
|
|
+import cn.seecoder.seecoderportalserver.serviceImpl.GroupServiceImpl;
|
|
|
import cn.seecoder.seecoderportalserver.web.rest.errors.CustomErrorException;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import org.apache.http.NameValuePair;
|
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
@@ -19,6 +22,8 @@ import java.util.List;
|
|
|
@SuppressWarnings("AlibabaUndefineMagicConstant")
|
|
|
@Service
|
|
|
public class DevcloudServiceImpl implements DevcloudService {
|
|
|
+ private final static Logger log = LoggerFactory.getLogger(DevcloudServiceImpl.class);
|
|
|
+
|
|
|
private final String devcloudUri = "https://devcloud-server.seec.seecoder.cn";
|
|
|
private final HttpService httpService;
|
|
|
|
|
|
@@ -88,6 +93,7 @@ public class DevcloudServiceImpl implements DevcloudService {
|
|
|
|
|
|
@Override
|
|
|
public JSONObject createProject(JSONObject project) {
|
|
|
+ log.debug("create project - json object - {}", project);
|
|
|
JSONObject result;
|
|
|
try {
|
|
|
result = JSONObject.parseObject(
|