package org.hzhub.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.hzhub.erp.domain.entity.ErpApiConfig;

/**
 * ERP动态API配置Mapper
 *
 * @author HZHub Team
 */
@Mapper
public interface ErpApiConfigMapper extends BaseMapper<ErpApiConfig> {

    /**
     * 根据API路径和方法查询配置
     *
     * @param apiPath API路径
     * @param apiMethod HTTP方法
     * @param apiVersion API版本
     * @return API配置
     */
    ErpApiConfig selectByPathAndMethod(@Param("apiPath") String apiPath,
                                       @Param("apiMethod") String apiMethod,
                                       @Param("apiVersion") String apiVersion);
}