| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.annotation.LoginDriverRequired; |
| | | import com.doumee.core.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.LoginShopRequired; |
| | |
| | | import com.doumee.dao.business.model.Areas; |
| | | import com.doumee.dao.business.model.Banner; |
| | | import com.doumee.dao.business.model.Category; |
| | | import com.doumee.dao.business.model.AppVersion; |
| | | import com.doumee.dao.business.model.Notice; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.dao.dto.AreasDto; |
| | | import com.doumee.dao.dto.CalculateLocalPriceDTO; |
| | | import com.doumee.dao.dto.CalculateRemotePriceDTO; |
| | | import com.doumee.dao.dto.DirectionInfoDTO; |
| | | import com.doumee.dao.dto.SameCityCheckDTO; |
| | | import com.doumee.dao.vo.PriceCalculateVO; |
| | | import com.doumee.dao.vo.ActiveOrderTipVO; |
| | |
| | | @Autowired |
| | | private NoticeService noticeService; |
| | | |
| | | @Autowired |
| | | private AppVersionService appVersionService; |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @ApiOperation("全部区划树形查询") |
| | | @PostMapping("/treeList") |
| | | public ApiResponse<List<Areas>> treeList (@RequestBody AreasDto pageWrap) { |
| | |
| | | }) |
| | | public ApiResponse<List<Banner>> getBannerList(@RequestParam Integer position) { |
| | | return ApiResponse.success("操作成功", bannerService.findListByPosition(position)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取轮播图详情", notes = "根据ID返回轮播图详情,含图片全路径") |
| | | @GetMapping("/getBannerDetail") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "轮播图主键", required = true) |
| | | }) |
| | | public ApiResponse<Banner> getBannerDetail(@RequestParam Integer id) { |
| | | return ApiResponse.success("查询成功", bannerService.findById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取城市已开通物品尺寸", notes = "根据城市主键查询已开通的物品尺寸(category type=4)") |
| | |
| | | } |
| | | pageWrap.getModel().setUserId(this.getMemberId()); |
| | | pageWrap.getModel().setUserType(Constants.ZERO); |
| | | return ApiResponse.success("查询成功", noticeService.findPage(pageWrap)); |
| | | PageData<Notice> pageData = noticeService.findPage(pageWrap); |
| | | noticeService.readAllNotice(0, this.getMemberId()); |
| | | return ApiResponse.success("查询成功", pageData); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | pageWrap.getModel().setUserId(this.getShopId()); |
| | | pageWrap.getModel().setUserType(Constants.TWO); |
| | | return ApiResponse.success("查询成功", noticeService.findPage(pageWrap)); |
| | | PageData<Notice> pageData = noticeService.findPage(pageWrap); |
| | | noticeService.readAllNotice(Constants.TWO, this.getShopId()); |
| | | return ApiResponse.success("查询成功", pageData); |
| | | } |
| | | |
| | | @LoginShopRequired |
| | |
| | | } |
| | | pageWrap.getModel().setUserId(this.getDriverId()); |
| | | pageWrap.getModel().setUserType(Constants.ONE); |
| | | return ApiResponse.success("查询成功", noticeService.findPage(pageWrap)); |
| | | PageData<Notice> pageData = noticeService.findPage(pageWrap); |
| | | noticeService.readAllNotice(Constants.ONE, this.getDriverId()); |
| | | return ApiResponse.success("查询成功", pageData); |
| | | } |
| | | |
| | | @LoginDriverRequired |
| | | @ApiOperation(value = "路径规划", notes = "调用高德地图路径规划接口,返回路线信息") |
| | | @PostMapping("/directionInfo") |
| | | public ApiResponse<JSONObject> directionInfo(@RequestBody @Valid DirectionInfoDTO dto) { |
| | | return ApiResponse.success("操作成功", MapUtil.directionInfo(dto.getMode(), dto.getFrom(), dto.getTo())); |
| | | } |
| | | |
| | | @LoginDriverRequired |
| | |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取最新APP版本") |
| | | @GetMapping("/getApiVersion") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "平台类型 0=Android 1=IOS", required = true) |
| | | }) |
| | | public ApiResponse<AppVersion> getApiVersion(@RequestParam Integer type) { |
| | | AppVersion appVersion = appVersionService.getLatestVersion(type); |
| | | appVersion.setFileUrl("http://llfc.lmpro.cn/apkversion/gtxljc.apk"); |
| | | return ApiResponse.success("查询成功", appVersion); |
| | | } |
| | | |
| | | |
| | | } |