| | |
| | | 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.OpenElecBikeRequest; |
| | | import com.doumee.dao.business.web.request.RepairRequest; |
| | | import com.doumee.dao.business.web.response.HomeResponse; |
| | | import com.doumee.dao.business.web.response.MemberRidesDetailResponse; |
| | | import com.doumee.dao.business.web.response.MemberRidesResponse; |
| | | import com.doumee.dao.business.web.response.RidesDetailResponse; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.jtt808.web.service.Jtt808Service; |
| | |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @LoginRequired |
| | | @ApiOperation(value = "扫码获取车辆信息", notes = "小程序端") |
| | | @GetMapping("/getBikeChargingRule") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "code", value = "锁头码、电车码", required = true) |
| | | }) |
| | | public ApiResponse<MemberRidesResponse> getBikeChargingRule(@RequestParam String code) { |
| | | return ApiResponse.success("操作成功",memberRidesService.getBikeChargingRule(code,getMemberId())); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @LoginRequired |
| | | @ApiOperation(value = "扫码解锁", notes = "小程序端") |
| | |
| | | return ApiResponse.success("查询成功",systemDictDataBiz.queryByCode(dicCode,label)); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "电车站点还车", notes = "电车站点还车") |
| | | @PostMapping("/backElecBike") |
| | | public ApiResponse backElecBike(@RequestBody BackElecBikeRequest param) { |
| | |
| | | jtt808Service.backElecBike(param); |
| | | return ApiResponse.success( null); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "电车临时停车", notes = "电车临时停车") |
| | | @PostMapping("/pauseElecBike") |
| | | public ApiResponse pauseElecBike(@RequestBody BackElecBikeRequest param) { |
| | |
| | | jtt808Service.pauseElecBike(param); |
| | | return ApiResponse.success( null); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "电车开锁", notes = "电车开锁") |
| | | @PostMapping("/openElecBike") |
| | | public ApiResponse openElecBike(@RequestBody OpenElecBikeRequest param) { |
| | | param.setMemberId(getMemberId()); |
| | | jtt808Service.openLock(param); |
| | | return ApiResponse.success( null); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "临停开锁", notes = "临停开锁") |
| | | @PostMapping("/pauseOpenElecBike") |
| | | public ApiResponse pauseOpenElecBike(@RequestBody BackElecBikeRequest param) { |
| | | param.setMemberId(getMemberId()); |
| | | jtt808Service.pauseOpenElecBike(param); |
| | | return ApiResponse.success( null); |
| | | } |
| | | |
| | | |
| | | } |