用户关锁

This commit is contained in:
attiya 2025-11-11 15:30:58 +08:00
parent 32ad4e050e
commit 03d804812d
4 changed files with 30 additions and 0 deletions

View File

@ -38,6 +38,14 @@ public interface OperationsFeignClient {
@GetMapping("/ebikeBikeInfo/api/openLock")
JsonResult<?> openLock(@RequestParam("bikeCode")String bikeCode);
/**
* 用户开锁
*
* @return 结果
*/
@GetMapping("/ebikeBikeInfo/api/lock")
JsonResult<?> lock(@RequestParam("bikeCode")String bikeCode);
/**
* 用户获取车辆详情及其计费规则
*

View File

@ -112,6 +112,17 @@ public class EbikeBikeInfoController {
return JsonResult.success();
}
/**
* 用户关锁
*
* @return 结果
*/
@GetMapping("/api/lock")
public JsonResult<?> lock(@RequestParam("bikeCode") String bikeCode) {
ebikeBikeInfoService.lock(bikeCode);
return JsonResult.success();
}
/**
* 用户获取车辆详情

View File

@ -81,4 +81,10 @@ public interface EbikeBikeInfoService extends IService<EbikeBikeInfo> {
* @return 详情
*/
EbikeUserBikeInfo bikeInfo(String bikeCode);
/**
* 用户关锁
* @param bikeCode 车辆编号
*/
void lock(String bikeCode);
}

View File

@ -384,6 +384,11 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
}
}
@Override
public void lock(String bikeCode) {
}
static EbikeSpecialDay getEbikeSpecialDay(List<EbikeSpecialDay> ebikeSpecialDays) {
LocalDate today = LocalDate.now();
DayOfWeek dayOfWeek = today.getDayOfWeek();