From 23f8236c1ae1a1668bff373491beb37477865a2d Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期四, 27 五月 2021 14:02:26 +0800 Subject: [PATCH] 网格综治app随手拍 --- springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java index 6d95c76..4064ff6 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java @@ -4,13 +4,11 @@ import com.panzhihua.common.model.dtos.grid.PageEasyAppDTO; import com.panzhihua.common.model.vos.LoginUserInfoVO; import com.panzhihua.common.model.vos.R; +import com.panzhihua.common.model.vos.community.ComActEasyPhotoVO; import com.panzhihua.common.service.grid.GridService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; -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 javax.annotation.Resource; @@ -25,7 +23,7 @@ @Resource private GridService gridService; - @ApiOperation(value = "随手拍列表") + @ApiOperation(value = "随手拍列表-lyq",response = ComActEasyPhotoVO.class) @PostMapping("list") public R list(@RequestBody PageEasyAppDTO easyAppDTO){ LoginUserInfoVO userInfoVO = this.getLoginUserInfo(); @@ -33,10 +31,19 @@ return R.fail("请先登录"); } easyAppDTO.setCommunityId(userInfoVO.getCommunityId()); + return gridService.easyList(easyAppDTO); + } + @ApiOperation(value = "随手拍详情-lyq",response = ComActEasyPhotoVO.class) + @PostMapping("detail") + public R detail(@RequestParam("easyId") Long easyId){ + return gridService.easyDetailByApp(easyId); + } - - return R.ok(); + @ApiOperation(value = "随手拍类型列表-lyq",response = ComActEasyPhotoVO.class) + @PostMapping("type/list") + public R typeList(){ + return gridService.easyTypeListByApp(); } } -- Gitblit v1.7.1