|
|
@@ -0,0 +1,23 @@
|
|
|
+package com.tzld.piaoquan.api.controller.contentplatform;
|
|
|
+
|
|
|
+
|
|
|
+import com.tzld.piaoquan.api.model.param.contentplatform.LogUploadParam;
|
|
|
+import com.tzld.piaoquan.api.service.LoghubService;
|
|
|
+import com.tzld.piaoquan.growth.common.common.base.CommonResponse;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/contentPlatform/logHub")
|
|
|
+@CrossOrigin(origins = "*")
|
|
|
+public class LoghubController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ LoghubService loghubService;
|
|
|
+
|
|
|
+ @PostMapping("/upload")
|
|
|
+ public CommonResponse<Void> logUpload(@RequestBody LogUploadParam param) {
|
|
|
+ loghubService.logUploadByKey(param.getData(), param.getKey());
|
|
|
+ return CommonResponse.success();
|
|
|
+ }
|
|
|
+}
|