package com.moka.gdtauto.mapper;

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

import java.util.List;

/**
 * 账号组与账号关系Mapper接口
 * 
 * @author moka
 * @since 2026-02-24
 */
@Mapper
public interface AccountGroupAccountRelationshipMapper extends BaseMapper<AccountGroupAccountRelationship> {

    /**
     * 批量插入账号组与账号关系
     * 
     * @param relationships 关系列表
     * @return 插入行数
     */
    int batchInsert(@Param("relationships") List<AccountGroupAccountRelationship> relationships);
}
