package com.fs.newAdv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.newAdv.domain.PromotionAccount;
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 PromotionAccountMapper extends BaseMapper<PromotionAccount> {

    /**
     * 查询开启API读取的推广账号
     */
    @Select("SELECT * FROM adv_promotion_account WHERE api_switch = 1")
    List<PromotionAccount> selectApiEnabledAccounts();
}

