package com.gxwebsoft.common.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.common.system.entity.TenantPackage;
import com.gxwebsoft.common.system.mapper.TenantPackageMapper;
import com.gxwebsoft.common.system.service.TenantPackageService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 租户套餐ServiceImpl
 *
 * @author WebSoft
 * @since 2025-12-12
 */
@Service
public class TenantPackageServiceImpl extends ServiceImpl<TenantPackageMapper, TenantPackage> implements TenantPackageService {

    @Override
    public List<TenantPackage> listAvailablePackages() {
        return baseMapper.selectAvailablePackages();
    }

    @Override
    public TenantPackage getByVersion(Integer version) {
        return baseMapper.selectByVersion(version);
    }
}
