|
@@ -2,10 +2,8 @@ package com.redxun.knowledge.analysis.controller;
|
|
|
|
|
|
import com.redxun.common.annotation.ClassDefine;
|
|
import com.redxun.common.annotation.ClassDefine;
|
|
import com.redxun.common.base.entity.JsonResult;
|
|
import com.redxun.common.base.entity.JsonResult;
|
|
-import com.redxun.knowledge.analysis.entity.vo.KnowledgeCategoryVo;
|
|
|
|
-import com.redxun.knowledge.analysis.entity.vo.KnowledgeCompanyVo;
|
|
|
|
-import com.redxun.knowledge.analysis.entity.vo.SearchParticipleWordCloudVo;
|
|
|
|
-import com.redxun.knowledge.analysis.entity.vo.SearchVisitHistogramVo;
|
|
|
|
|
|
+import com.redxun.knowledge.analysis.entity.vo.*;
|
|
|
|
+import com.redxun.knowledge.analysis.service.AnalysisAlbumServiceImpl;
|
|
import com.redxun.knowledge.analysis.service.AnalysisCommonServiceImpl;
|
|
import com.redxun.knowledge.analysis.service.AnalysisCommonServiceImpl;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -39,6 +37,9 @@ public class AnalysisCommonController {
|
|
@Autowired
|
|
@Autowired
|
|
private AnalysisCommonServiceImpl analysisCommonService;
|
|
private AnalysisCommonServiceImpl analysisCommonService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private AnalysisAlbumServiceImpl analysisAlbumService;
|
|
|
|
+
|
|
@ApiOperation("PC 各模块整体数量统计")
|
|
@ApiOperation("PC 各模块整体数量统计")
|
|
@GetMapping("totalAmount")
|
|
@GetMapping("totalAmount")
|
|
public JsonResult totalAmount() {
|
|
public JsonResult totalAmount() {
|
|
@@ -94,7 +95,16 @@ public class AnalysisCommonController {
|
|
@ApiOperation("专辑创建总量")
|
|
@ApiOperation("专辑创建总量")
|
|
@GetMapping("albumAmount")
|
|
@GetMapping("albumAmount")
|
|
public JsonResult albumAmount(@RequestParam("type") String type){
|
|
public JsonResult albumAmount(@RequestParam("type") String type){
|
|
- Map<String ,Object> result = analysisCommonService.albumAmount(type);
|
|
|
|
|
|
+ Map<String ,Object> result = analysisAlbumService.albumAmount(type);
|
|
|
|
+ return JsonResult.getSuccessResult(result);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("专辑详情Top访问量(pv)统计")
|
|
|
|
+ @GetMapping("albumDetailVisits")
|
|
|
|
+ public JsonResult albumDetailVisits(@RequestParam("type") String type,
|
|
|
|
+ @RequestParam(value = "tops",required = false,defaultValue = "10") Integer tops){
|
|
|
|
+ List<AlbumDetailVisitsVo> result = analysisAlbumService.albumDetailVisits(type,tops);
|
|
return JsonResult.getSuccessResult(result);
|
|
return JsonResult.getSuccessResult(result);
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|