|
@@ -3,8 +3,11 @@ package com.gis.web.controller;
|
|
|
import com.gis.common.util.Result;
|
|
|
import com.gis.domain.dto.*;
|
|
|
import com.gis.domain.po.CommentEntity;
|
|
|
+import com.gis.domain.po.ProfileEntity;
|
|
|
+import com.gis.domain.po.SlideshowEntity;
|
|
|
import com.gis.domain.po.VisitEntity;
|
|
|
import com.gis.service.*;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -19,7 +22,7 @@ import javax.validation.Valid;
|
|
|
* Created by owen on 2021/6/18 0018 14:50
|
|
|
*/
|
|
|
@Slf4j
|
|
|
-@Api(tags = "展示页")
|
|
|
+@Api(tags = "门户网站")
|
|
|
@RestController
|
|
|
@RequestMapping("api/web")
|
|
|
public class WebController {
|
|
@@ -53,6 +56,19 @@ public class WebController {
|
|
|
@Autowired
|
|
|
WebService webService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ SlideshowService slideshowService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ ProfileService profileService;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("轮播图")
|
|
|
+ @PostMapping("slideshow/list")
|
|
|
+ public Result<SlideshowEntity> slideshowList() {
|
|
|
+ return slideshowService.list();
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "保存网站访问记录", notes = "type, web:管网, scene:线上史馆")
|
|
|
@GetMapping("addVisitWeb/{type}")
|
|
|
public Result addVisitWeb(@PathVariable String type) {
|
|
@@ -68,18 +84,26 @@ public class WebController {
|
|
|
return newsService.addVisit(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "博物馆信息")
|
|
|
- @GetMapping("museum/info")
|
|
|
- public Result museumInfo(){
|
|
|
- return Result.success(museumInfoService.findById(1L));
|
|
|
- }
|
|
|
+//
|
|
|
+// @ApiOperation("列表")
|
|
|
+// @PostMapping("profile/list")
|
|
|
+// public Result<ProfileEntity> profileList() {
|
|
|
+// return profileService.findAll();
|
|
|
+// }
|
|
|
|
|
|
|
|
|
- @ApiOperation(value = "博物馆访问量")
|
|
|
- @GetMapping("museum/getVisit")
|
|
|
- public Result museumGetVisit(){
|
|
|
- return museumInfoService.getVisitByModule("web");
|
|
|
- }
|
|
|
+// @ApiOperation(value = "博物馆信息")
|
|
|
+// @GetMapping("museum/info")
|
|
|
+// public Result museumInfo(){
|
|
|
+// return Result.success(museumInfoService.findById(1L));
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+// @ApiOperation(value = "博物馆访问量")
|
|
|
+// @GetMapping("museum/getVisit")
|
|
|
+// public Result museumGetVisit(){
|
|
|
+// return museumInfoService.getVisitByModule("web");
|
|
|
+// }
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "本馆资讯", notes = "type, news:新闻, info:信息, activity:活动")
|
|
@@ -126,18 +150,18 @@ public class WebController {
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "搜索")
|
|
|
- @PostMapping("search")
|
|
|
- public Result search(@RequestBody SearchDto param){
|
|
|
- return webService.search(param);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @ApiOperation(value = "搜索详情")
|
|
|
- @PostMapping("search/detail")
|
|
|
- public Result searchDetail(@RequestBody ModuleDto param){
|
|
|
- return webService.searchDetail(param);
|
|
|
- }
|
|
|
+// @ApiOperation(value = "搜索")
|
|
|
+// @PostMapping("search")
|
|
|
+// public Result search(@RequestBody SearchDto param){
|
|
|
+// return webService.search(param);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// @ApiOperation(value = "搜索详情")
|
|
|
+// @PostMapping("search/detail")
|
|
|
+// public Result searchDetail(@RequestBody ModuleDto param){
|
|
|
+// return webService.searchDetail(param);
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|