package com.moka.gdtauto.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moka.gdtauto.entity.TencentAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 腾讯广告账户Mapper接口
 * 
 * @author moka
 * @since 2026-02-06
 */
@Mapper
public interface TencentAccountMapper extends BaseMapper<TencentAccount> {

    /**
     * 批量插入或更新账户信息
     * 使用 INSERT INTO ... ON DUPLICATE KEY UPDATE
     * 
     * @param accounts 账户列表
     * @return 影响行数
     */
    int batchInsertOrUpdate(@Param("accounts") List<TencentAccount> accounts);
}
