| | |
| | | package com.doumee.api.web; |
| | | |
| | | //import com.doumee.api.Repeat.RepeatSubmit; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.web.request.BackElecBikeRequest; |
| | | import com.doumee.dao.business.web.request.RepairRequest; |
| | | import com.doumee.dao.business.web.response.MemberRidesDetailResponse; |
| | | import com.doumee.dao.business.web.response.RidesDetailResponse; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.jtt808.web.service.Jtt808Service; |
| | | import com.doumee.service.business.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.yzh.commons.model.APIResult; |
| | | import org.yzh.protocol.t808.T0201_0500; |
| | | import org.yzh.protocol.t808.T8500; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private GoodsorderService goodsorderService; |
| | | @Autowired |
| | | private Jtt808Service jtt808Service; |
| | | |
| | | @Autowired |
| | | private RentSiteService rentSiteService; |
| | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @PreventRepeat |
| | | @LoginRequired |
| | | @ApiOperation(value = "押金支付", notes = "小程序端") |
| | | @GetMapping("/createGoodsOrderPay") |
| | |
| | | public ApiResponse<Object> createGoodsOrderPay() { |
| | | return ApiResponse.success("操作成功",goodsorderService.createGoodsOrderPay(getMemberId())); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "骑行明细", notes = "小程序端") |
| | |
| | | public ApiResponse<RidesDetailResponse> ridesDetail(@RequestParam String goodsOrderId) { |
| | | return ApiResponse.success("查询成功",goodsorderService.getRidesDetailResponse(goodsOrderId)); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "租车点列表", notes = "小程序端") |
| | |
| | | rentSite.setStatus(Constants.ZERO); |
| | | return ApiResponse.success("查询成功",rentSiteService.findList(rentSite)); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("消费明细") |
| | |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @LoginRequired |
| | | @ApiOperation(value = "扫码解锁", notes = "小程序端") |
| | | @GetMapping("/openLock") |
| | |
| | | return ApiResponse.success("操作成功",memberRidesService.openLock(code,getMemberId())); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "刷新解锁情况", notes = "小程序端") |
| | | @GetMapping("/refreshLock") |
| | |
| | | public ApiResponse<MemberRidesDetailResponse> refreshLock(@RequestParam String id) { |
| | | return ApiResponse.success("操作成功",memberRidesService.refreshLock(id)); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @PreventRepeat |
| | |
| | | public ApiResponse<SystemDictData> getSysDict(@RequestParam String dicCode, @RequestParam String label) { |
| | | return ApiResponse.success("查询成功",systemDictDataBiz.queryByCode(dicCode,label)); |
| | | } |
| | | |
| | | @ApiOperation(value = "电车站点还车", notes = "电车站点还车") |
| | | @PostMapping("/backElecBike") |
| | | public ApiResponse backElecBike(@RequestBody BackElecBikeRequest param) { |
| | | param.setMemberId(getMemberId()); |
| | | jtt808Service.backElecBike(param); |
| | | return ApiResponse.success( null); |
| | | } |
| | | } |