package com.ylx.massage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylx.massage.domain.TFareSetting;
import com.ylx.massage.domain.vo.TFareSettingVo;

import java.time.LocalDateTime;

/**
 * 车费设置表(TFareSetting)表服务接口
 *
 * @author makejava
 * @since 2024-08-22 17:41:00
 */
public interface TFareSettingService extends IService<TFareSetting> {

    /**
     * 新增车费设置数据
     *
     * @param tFareSetting
     * @return boolean
     */
    boolean add(TFareSetting tFareSetting);

    /**
     * 更新车费设置数据
     *
     * @param tFareSetting
     * @return boolean
     */
    boolean updateFareSetting(TFareSetting tFareSetting);

    /**
     * 根据城市编码获取车费设置 C端
     * @param cityCode
     * @return
     */
    TFareSettingVo getFareSetting(LocalDateTime userBookingTime, String cityCode);

}

