package com.cdzy.operations.service; import com.cdzy.operations.model.vo.EbikeOperationConfigVo; import com.cdzy.operations.model.vo.EbikeRegionVo; import com.mybatisflex.core.service.IService; import com.cdzy.operations.model.entity.EbikeRegion; import org.locationtech.jts.geom.Point; /** * 运营区域表 服务层。 * * @author attiya * @since 2025-10-22 */ public interface EbikeRegionService extends IService { /** * 添加运营区 * @param ebikeRegion 运营区 */ void save(EbikeRegionVo ebikeRegion); /** * 修改运营区 * @param ebikeRegion 运营区 */ void update(EbikeRegionVo ebikeRegion); /** * 保存运营配置 * @param configurationVo 配置信息 */ void operationConfiguration(EbikeOperationConfigVo configurationVo); /** * 获取运营配置 * @param regionId 运营区ID * @return 配置信息 */ EbikeOperationConfigVo getOperationConfiguration(Long regionId); /** * 根据当前位置查询当前运营区信息 * @param point 当前位置 * @return 运营区信息 */ EbikeRegion getRegionByLocation(Point point); }