test: 为测试 stub 添加缺失的 GroupRepository 接口方法

新增 BindAccountsToGroup 和 GetAccountIDsByGroupIDs 方法的 stub 实现,
确保测试文件中的 mock 类型满足 GroupRepository 接口要求。
This commit is contained in:
liuxiongfeng
2026-02-02 22:01:41 +08:00
parent e1a4a7b8c0
commit ce1d2904c7
6 changed files with 49 additions and 1 deletions

View File

@@ -440,7 +440,7 @@ func (r *groupRepository) GetAccountIDsByGroupIDs(ctx context.Context, groupIDs
if err != nil {
return nil, err
}
defer rows.Close()
defer func() { _ = rows.Close() }()
var accountIDs []int64
for rows.Next() {