添加拉取配置缓存
This commit is contained in:
parent
8f0f40cc56
commit
786f1f0d25
@ -22,9 +22,15 @@ public class TrackPullCacheService : ApplicationService, ITrackPullCacheService
|
||||
_trackPullConfigRepository = trackPullConfigRepository;
|
||||
}
|
||||
|
||||
public Task<List<TrackPullConfigDto>> GetAllPullConfigsAsync()
|
||||
[NonAction]
|
||||
public async Task<List<TrackPullConfigDto>> GetAllPullConfigsAsync()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return await _trackPullConfigRepository.GetListAsync(x => true, x => new TrackPullConfigDto
|
||||
{
|
||||
SubSystemId = x.SubSystemId,
|
||||
ServiceProviderId = x.ServiceProviderId,
|
||||
PullInterval = x.PullInterval
|
||||
});
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
@ -53,7 +59,6 @@ public class TrackPullCacheService : ApplicationService, ITrackPullCacheService
|
||||
|
||||
var trackPullConfigEntity = await _trackPullConfigRepository.GetFirstAsync(exp);
|
||||
if (trackPullConfigEntity == null) return data;
|
||||
|
||||
var trackPullConfigDetail = await _trackPullConfigRepository.GetDetailAsync(trackPullConfigEntity.Id);
|
||||
if (trackPullConfigDetail is null) return data;
|
||||
var trackPullContentList = await _trackPullConfigRepository.GetContentListCacheAsync(trackPullConfigEntity.Id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user