package com.gxwebsoft.common.system.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxwebsoft.common.system.entity.TenantPackage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 租户套餐Mapper
 *
 * @author WebSoft
 * @since 2025-12-12
 */
@InterceptorIgnore(tenantLine = "true")
public interface TenantPackageMapper extends BaseMapper<TenantPackage> {

    /**
     * 查询所有上架的套餐
     *
     * @return List<TenantPackage>
     */
    List<TenantPackage> selectAvailablePackages();

    /**
     * 根据版本号查询套餐
     *
     * @param version 版本号
     * @return TenantPackage
     */
    TenantPackage selectByVersion(@Param("version") Integer version);
}
