From 962e33b73007aef7072f645adcb10c03e3c00b32 Mon Sep 17 00:00:00 2001
From: wangqing <408564126@qq.com>
Date: Wed, 25 Dec 2024 18:27:03 +0800
Subject: [PATCH] =?UTF-8?q?release-=E6=8A=96=E9=9F=B3=E5=88=86=E4=BA=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
luoo_music/pom.xml | 2 +-
.../music/controller/SliceController.java | 38 +++++
luoo_user/pom.xml | 16 +++
.../java/com/luoo/user/UserApplication.java | 4 +-
.../user/controller/DouyinController.java | 136 ++++++++++++++++++
pom.xml | 3 +
6 files changed, 197 insertions(+), 2 deletions(-)
create mode 100644 luoo_music/src/main/java/com/luoo/music/controller/SliceController.java
create mode 100644 luoo_user/src/main/java/com/luoo/user/controller/DouyinController.java
diff --git a/luoo_music/pom.xml b/luoo_music/pom.xml
index edfd431..f91471a 100644
--- a/luoo_music/pom.xml
+++ b/luoo_music/pom.xml
@@ -123,7 +123,7 @@
docker-maven-plugin
0.4.13
- 116.62.145.60:5000/${project.artifactId}:${project.version}
+ 116.62.145.60:5000/${project.artifactId}:1.0dev
jdk1.8
["java", "-jar","/${project.build.finalName}.jar"]
diff --git a/luoo_music/src/main/java/com/luoo/music/controller/SliceController.java b/luoo_music/src/main/java/com/luoo/music/controller/SliceController.java
new file mode 100644
index 0000000..616674e
--- /dev/null
+++ b/luoo_music/src/main/java/com/luoo/music/controller/SliceController.java
@@ -0,0 +1,38 @@
+package com.luoo.music.controller;
+
+import api.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Random;
+
+/**
+ * @program: luoo_parent
+ * @description: 拿到视频地址
+ * @author: wangqing
+ * @create: 2024-08-08 08:38
+ **/
+@RestController
+@CrossOrigin
+@Slf4j
+@RequestMapping("/slice")
+@Api(tags = "分享视频素材")
+public class SliceController {
+
+ @GetMapping("/getSliceUrl/{objectId}/{type}")
+ @ApiOperation(value = "获取视频素材", notes = "获取视频素材,type 1为期刊,2为歌曲")
+ public Result