|
@@ -6,7 +6,9 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
import com.fdkankan.contro.service.ISceneFileBuildService;
|
|
import com.fdkankan.contro.service.ISceneFileBuildService;
|
|
|
|
+import com.fdkankan.contro.service.ISceneUploadCountService;
|
|
import com.fdkankan.contro.vo.ResponseSceneFile;
|
|
import com.fdkankan.contro.vo.ResponseSceneFile;
|
|
|
|
+import com.fdkankan.contro.vo.SceneUploadCountParamVO;
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
import com.fdkankan.web.response.ResultData;
|
|
import com.fdkankan.web.response.ResultData;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import lombok.extern.log4j.Log4j2;
|
|
@@ -14,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
@@ -34,6 +37,9 @@ public class SceneFileController{
|
|
@Autowired
|
|
@Autowired
|
|
private FYunFileServiceInterface fYunFileService;
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISceneUploadCountService sceneUploadCountService;
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 场景文件上传之前先获取fileId
|
|
* 场景文件上传之前先获取fileId
|
|
@@ -122,4 +128,16 @@ public class SceneFileController{
|
|
@RequestParam(value = "sourceBucket") String sourceBucket) throws Exception {
|
|
@RequestParam(value = "sourceBucket") String sourceBucket) throws Exception {
|
|
return sceneFileBuildService.copyDataAndBuild(sourceBucket,dataSource ,sceneVer);
|
|
return sceneFileBuildService.copyDataAndBuild(sourceBucket,dataSource ,sceneVer);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 记录app触发上传场景
|
|
|
|
+ * @param param
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/increSceneUploadCount")
|
|
|
|
+ public ResultData increSceneUploadCount(@RequestBody @Valid SceneUploadCountParamVO param){
|
|
|
|
+ sceneUploadCountService.increSceneUploadCount(param);
|
|
|
|
+ return ResultData.ok();
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|