|
|
|
@@ -2,6 +2,7 @@ package com.ruoyi.platform.service.impl; |
|
|
|
|
|
|
|
import com.ruoyi.common.core.utils.DateUtils; |
|
|
|
import com.ruoyi.common.security.utils.SecurityUtils; |
|
|
|
import com.ruoyi.platform.constant.Constant; |
|
|
|
import com.ruoyi.platform.domain.Dataset; |
|
|
|
import com.ruoyi.platform.domain.DatasetTempStorage; |
|
|
|
import com.ruoyi.platform.service.DatasetTempStorageService; |
|
|
|
@@ -90,6 +91,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
gitProjectVo.setDescription(datasetVo.getDescription()); |
|
|
|
gitProjectVo.setPrivate(!datasetVo.getIsPublic()); |
|
|
|
gitProjectVo.setUserId(userId); |
|
|
|
gitProjectVo.setProjectCategoryId(Constant.Git_Category_Id); |
|
|
|
// 创建项目 |
|
|
|
Map project = gitService.createProject(token, gitProjectVo); |
|
|
|
Integer gitlinIid = (Integer) project.get("id"); |
|
|
|
@@ -272,7 +274,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
Map<String, Object> userInfo = JsonUtils.jsonToMap(userReq); |
|
|
|
Integer userId = (Integer) userInfo.get("user_id"); |
|
|
|
// 拼接查询url |
|
|
|
String url = gitendpoint + "/api/projects.json?user_id=" + userId + "&sort_by=praises_count"; |
|
|
|
String url = gitendpoint + "/api/projects.json?sort_direction=praises_count&sort_by=desc&category_id=" + Constant.Git_Category_Id; |
|
|
|
|
|
|
|
String name = dataset.getName(); |
|
|
|
if (StringUtils.isNotEmpty(name)) { |
|
|
|
|