| | |
| | | return ApiResponse.success("门店初始化 " + shopCount + " 条,司机初始化 " + driverCount + " 条"); |
| | | } |
| | | |
| | | @ApiOperation("一次性:为所有城市级别区划填充经纬度到info字段") |
| | | @PostMapping("/fillCityLocation") |
| | | public ApiResponse<String> fillCityLocation() { |
| | | return ApiResponse.success(areasService.fillCityLocation()); |
| | | } |
| | | |
| | | @ApiOperation("全部区划树形查询") |
| | | @PostMapping("/treeList") |
| | | public ApiResponse<List<Areas>> treeList (@RequestBody AreasDto pageWrap) { |
| | |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "计算就地存取预估费用", notes = "根据城市、天数、物品类型和数量计算就地存取预估费用") |
| | | @ApiOperation(value = "计算就地寄存预估费用", notes = "根据城市、天数、物品类型和数量计算就地寄存预估费用") |
| | | @PostMapping("/calculateLocalPrice") |
| | | public ApiResponse<PriceCalculateVO> calculateLocalPrice(@RequestBody @Valid CalculateLocalPriceDTO dto) { |
| | | dto.setMemberId(getMemberId()); |
| | | return ApiResponse.success("操作成功", ordersService.calculateLocalPrice(dto)); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "计算异地存取预估费用", notes = "根据距离、物品类型和数量计算异地存取预估费用") |
| | | @ApiOperation(value = "计算同城寄送预估费用", notes = "根据距离、物品类型和数量计算同城寄送预估费用") |
| | | @PostMapping("/calculateRemotePrice") |
| | | public ApiResponse<PriceCalculateVO> calculateRemotePrice(@RequestBody @Valid CalculateRemotePriceDTO dto) { |
| | | dto.setMemberId(getMemberId()); |
| | | return ApiResponse.success("操作成功", ordersService.calculateRemotePrice(dto)); |
| | | } |
| | | |