package com.fs.newAdv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.newAdv.domain.Site;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 站点管理表 Mapper接口
 *
 * @author zhangqin
 * @date 2025-11-03
 */
@Mapper
public interface SiteMapper extends BaseMapper<Site> {

    /**
     * 查询配置了回传的站点列表
     */
    @Select("SELECT * FROM adv_site WHERE config_callback = 1")
    List<Site> selectCallbackEnabledSites();
}

