|
|
@@ -8,12 +8,10 @@ import com.tzld.videoVector.model.param.MatchTopNVideoParam;
|
|
|
import com.tzld.videoVector.model.vo.VideoMatchResult;
|
|
|
import com.tzld.videoVector.service.VideoSearchService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/videoSearch")
|
|
|
@@ -36,4 +34,9 @@ public class VideoSearchController {
|
|
|
public CommonResponse<List<VideoMatchResult>> matchTopNVideo(@RequestBody MatchTopNVideoParam param) {
|
|
|
return CommonResponse.success(videoSearchService.matchTopNVideo(param));
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/getAllConfigCodes")
|
|
|
+ public CommonResponse<Map<String, String>> getAllConfigCodes() {
|
|
|
+ return CommonResponse.success(videoSearchService.getAllConfigCodes());
|
|
|
+ }
|
|
|
}
|