|
|
@@ -0,0 +1,71 @@
|
|
|
+package com.style24.front.biz.web;
|
|
|
+
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+
|
|
|
+import com.style24.front.biz.service.TsfKollusService;
|
|
|
+import com.style24.front.support.controller.TsfBaseController;
|
|
|
+import com.style24.persistence.domain.KollusResult;
|
|
|
+
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Kollus Upload Controller (카테노이드 동영상 업로드)
|
|
|
+ *
|
|
|
+ * @author gagamel
|
|
|
+ * @since 2021. 4. 16
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+@RequestMapping("/kollus")
|
|
|
+@Slf4j
|
|
|
+public class TsfKollusUploadController extends TsfBaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TsfKollusService kollusService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 상품 동영상 업로드 결과
|
|
|
+ * @author gagamel
|
|
|
+ * @since 2021. 4. 16
|
|
|
+ */
|
|
|
+ @GetMapping("/goods/upload/result")
|
|
|
+ public void updateGoodsVideoResult(KollusResult result) {
|
|
|
+ log.info("{}", result);
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(result.getMedia_content_key()) && StringUtils.isNotBlank(result.getUpload_file_key())) {
|
|
|
+ kollusService.updateGoodsVideoResult(result);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 리뷰 동영상 업로드 결과
|
|
|
+ * @author gagamel
|
|
|
+ * @since 2021. 4. 16
|
|
|
+ */
|
|
|
+ @GetMapping("/review/upload/result")
|
|
|
+ public void updateReviewVideoResult(KollusResult result) {
|
|
|
+ log.info("{}", result);
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(result.getMedia_content_key()) && StringUtils.isNotBlank(result.getUpload_file_key())) {
|
|
|
+ kollusService.updateReviewVideoResult(result);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 전시 동영상 업로드 결과
|
|
|
+ * @author gagamel
|
|
|
+ * @since 2021. 4. 16
|
|
|
+ */
|
|
|
+ @GetMapping("/display/upload/result")
|
|
|
+ public void updateDisplayVideoResult(KollusResult result) {
|
|
|
+ log.info("{}", result);
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(result.getMedia_content_key()) && StringUtils.isNotBlank(result.getUpload_file_key())) {
|
|
|
+ kollusService.updateDisplayVideoResult(result);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|