From c37acfa5fd70c1d658295f5635b630d3beef7ce0 Mon Sep 17 00:00:00 2001 From: lisy <linlangsur163@163.com> Date: 星期五, 21 七月 2023 18:25:48 +0800 Subject: [PATCH] 探索玩湃-门店:列表+详情+评价 --- cloud-server-account/src/main/java/com/dsh/account/controller/ExploreWPController.java | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 41 insertions(+), 5 deletions(-) diff --git a/cloud-server-account/src/main/java/com/dsh/account/controller/ExploreWPController.java b/cloud-server-account/src/main/java/com/dsh/account/controller/ExploreWPController.java index 64fd0c1..a585588 100644 --- a/cloud-server-account/src/main/java/com/dsh/account/controller/ExploreWPController.java +++ b/cloud-server-account/src/main/java/com/dsh/account/controller/ExploreWPController.java @@ -1,11 +1,12 @@ package com.dsh.account.controller; +import com.dsh.account.feignclient.other.model.StoreDetailList; +import com.dsh.account.feignclient.other.model.StoreInfo; import com.dsh.account.feignclient.other.model.SysNotice; -import com.dsh.account.model.vo.exploreDetail.ExploreDatasVo; import com.dsh.account.model.vo.exploreDetail.LonLatRequest; -import com.dsh.account.model.vo.exploreDetails.QuestionDetailsVo; -import com.dsh.account.model.vo.exploreDetails.QuestionIns; +import com.dsh.account.model.vo.exploreDetail.QuestionIns; +import com.dsh.account.model.vo.exploreDetail.StoreDetailsVo; import com.dsh.account.service.TStudentService; import com.dsh.account.util.ResultUtil; import io.swagger.annotations.ApiImplicitParam; @@ -33,7 +34,7 @@ @ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") }) - public ResultUtil<ExploreDatasVo> indexOfExploreDetail(LonLatRequest llrequest){ + public ResultUtil<List<StoreInfo>> indexOfExploreDetail(LonLatRequest llrequest){ try { return ResultUtil.success(tsService.queryIndexOfExplores(llrequest)); }catch (Exception e){ @@ -70,7 +71,7 @@ @ResponseBody @PostMapping("/base/exploreWP/exceptionList") @ApiOperation(value = "联系客服-常见问题列表", tags = {"APP-探索玩湃"}) - public ResultUtil<QuestionDetailsVo> queryFrequentlyAskedQuestionDetails(){ + public ResultUtil<List<QuestionIns>> queryFrequentlyAskedQuestionDetails(){ try { return ResultUtil.success(tsService.queryQuestionData()); }catch (Exception e){ @@ -105,4 +106,39 @@ } + @ResponseBody + @PostMapping("/base/exploreWP/storeList") + @ApiOperation(value = "联系客服-门店列表", tags = {"APP-探索玩湃"}) + @ApiImplicitParams({ + @ApiImplicitParam(value = "距离数值", name = "space", required = true, dataType = "int"), + @ApiImplicitParam(value = "城市code", name = "space", required = true, dataType = "string"), + @ApiImplicitParam(value = "纬度", name = "latitude", required = true, dataType = "string"), + @ApiImplicitParam(value = "经度", name = "longitude", required = true, dataType = "string"), + }) + public ResultUtil<List<StoreDetailList>> getStoreListCon(Integer space,String cityCode,String latitude,String longitude){ + try { + return ResultUtil.success(tsService.queryStoreList(space,cityCode,latitude,longitude)); + }catch (Exception e){ + return ResultUtil.runErr(); + } + } + + + @ResponseBody + @PostMapping("/base/exploreWP/storeDetail") + @ApiOperation(value = "联系客服-门店详情", tags = {"APP-探索玩湃"}) + @ApiImplicitParams({ + @ApiImplicitParam(value = "门店id", name = "storeId", required = true, dataType = "int"), + }) + public ResultUtil<StoreDetailsVo> getStoreDetails(Integer storeId){ + try { + return ResultUtil.success(tsService.getStoreDetail(storeId)); + }catch (Exception e){ + return ResultUtil.runErr(); + } + } + + + + } -- Gitblit v1.7.1