package com.zsElectric.boot.charging.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsElectric.boot.business.model.vo.applet.AppletConnectorDetailVO;
import com.zsElectric.boot.charging.entity.ThirdPartyConnectorInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 第三方充电接口信息Mapper接口
 *
 * @author system
 * @since 2025-12-11
 */
@Mapper
public interface ThirdPartyConnectorInfoMapper extends BaseMapper<ThirdPartyConnectorInfo> {
    
    /**
     * 获取充电接口详情（包含基本信息、价格信息、企业价格）
     *
     * @param userId 用户ID
     * @param currentTime 当前时间 HHmmss格式
     * @param userBalance 用户余额
     * @param newUserDiscount 新用户优惠金额
     * @return 充电接口详情
     */
    AppletConnectorDetailVO selectConnectorDetailById(
            @Param("connectorCode") String connectorCode,
            @Param("userId") Long userId,
            @Param("currentTime") String currentTime,
            @Param("userBalance") BigDecimal userBalance,
            @Param("newUserDiscount") BigDecimal newUserDiscount
    );
}
