This commit is contained in:
jianzhichu
2025-12-14 19:13:19 +08:00
parent 9391ace8c7
commit 20e399b2e2
7 changed files with 94 additions and 27 deletions
+11
View File
@@ -22,6 +22,10 @@ namespace dy.net.service
return _cookieRepository.GetAllCookies(whereExpression);
}
public Task<List<DouyinCookie>> GetAllAsync()
{
return _cookieRepository.GetAllAsync();
}
public async Task<bool> Add(DouyinCookie dyUserCookies)
{
@@ -85,5 +89,12 @@ namespace dy.net.service
}
public async Task<bool> ImportCookies(List<DouyinCookie> cookies)
{
await _cookieRepository.DeleteAsync(x => !string.IsNullOrWhiteSpace(x.Id));
await _cookieRepository.InsertRangeAsync(cookies);
return true;
}
}
}