|
@@ -3,10 +3,9 @@ package com.gis.cms.controller;
|
|
|
import com.gis.cms.entity.dto.NewsPageDataDto;
|
|
|
import com.gis.admin.entity.dto.RegisterDto;
|
|
|
import com.gis.cms.entity.dto.StatusPageDataDto;
|
|
|
-import com.gis.cms.service.BarrageService;
|
|
|
-import com.gis.cms.service.GoodsService;
|
|
|
-import com.gis.cms.service.MartyrService;
|
|
|
-import com.gis.cms.service.NewsService;
|
|
|
+import com.gis.cms.entity.vo.CommentVo;
|
|
|
+import com.gis.cms.mapper.MyBaseMapper;
|
|
|
+import com.gis.cms.service.*;
|
|
|
import com.gis.common.base.aop.WebControllerLog;
|
|
|
import com.gis.common.base.entity.dto.PageDateDto;
|
|
|
import com.gis.common.base.entity.dto.PageDto;
|
|
@@ -58,6 +57,12 @@ public class WebController {
|
|
|
@Autowired
|
|
|
LogService logService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ MyBaseMapper myBaseMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ CommentService commentService;
|
|
|
+
|
|
|
|
|
|
|
|
|
@WebControllerLog(description = "门户网站-弹幕列表")
|
|
@@ -67,6 +72,14 @@ public class WebController {
|
|
|
return barrageService.search(param, 1);
|
|
|
}
|
|
|
|
|
|
+ @WebControllerLog(description = "门户网站-保存并获取访问量")
|
|
|
+ @ApiOperation("保存并获取访问量")
|
|
|
+ @GetMapping("webVisit")
|
|
|
+ public Result webVisit(){
|
|
|
+ myBaseMapper.addVist("web");
|
|
|
+ return Result.success(myBaseMapper.getVisit("web"));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// @WebControllerLog(description = "门户网站-场景点赞")
|
|
|
// @ApiOperation("场景-点赞")
|
|
@@ -86,6 +99,14 @@ public class WebController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @WebControllerLog(description = "门户网站-精品典藏详情")
|
|
|
+ @ApiOperation("精品典藏-列表")
|
|
|
+ @GetMapping("goods/detail/{id}")
|
|
|
+ public Result<GoodsEntity> goodsDetail(@PathVariable Long id){
|
|
|
+ return goodsService.detail(id);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@WebControllerLog(description = "门户网站-烈士列表(详情)")
|
|
|
@ApiOperation("烈士-列表")
|
|
|
@PostMapping("martyr/list")
|
|
@@ -97,6 +118,14 @@ public class WebController {
|
|
|
return martyrService.search(dto, 1);
|
|
|
}
|
|
|
|
|
|
+ @WebControllerLog(description = "门户网站-烈士详情")
|
|
|
+ @ApiOperation("烈士-详情")
|
|
|
+ @GetMapping("martyr/detail/{id}")
|
|
|
+ public Result<MartyrEntity> martyrDetail(@PathVariable Long id){
|
|
|
+ return martyrService.detail(id);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@WebControllerLog(description = "门户网站-知识列表(详情)")
|
|
|
@ApiOperation("知识-列表")
|
|
@@ -107,6 +136,21 @@ public class WebController {
|
|
|
return newsService.search(param, 1);
|
|
|
}
|
|
|
|
|
|
+ @WebControllerLog(description = "门户网站-知识详情")
|
|
|
+ @ApiOperation("知识-详情")
|
|
|
+ @GetMapping("news/detail/{id}")
|
|
|
+ public Result<NewsEntity> newsDetail(@PathVariable Long id){
|
|
|
+ return newsService.detail(id);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @WebControllerLog(description = "门户网站-留言树列表")
|
|
|
+ @ApiOperation("门户网站-留言树列表")
|
|
|
+ @PostMapping("comment/listTree")
|
|
|
+ public Result<CommentVo> list(@RequestBody PageDateDto param) {
|
|
|
+ return commentService.voListTree(param, 1);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 2021-07-12
|