33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
using SJZY.Track.Application.Contract.Dtos.TrackPull;
|
|
|
|
namespace SJZY.Track.Application.Contract.Services;
|
|
|
|
public interface ITrackPullCacheService
|
|
{
|
|
string TrackPullKey(int subSystemId, int serviceProviderId);
|
|
string TrackPullContentKey(int subSystemId, int serviceProviderId);
|
|
|
|
/// <summary>
|
|
/// 获取所有拉取配置
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<List<TrackPullConfigDto>> GetAllPullConfigsAsync();
|
|
|
|
/// <summary>
|
|
/// 获取服务商拉取配置
|
|
/// </summary>
|
|
/// <param name="subSystemId">子系统id</param>
|
|
/// <param name="serviceProviderId">服务商id</param>
|
|
/// <returns></returns>
|
|
Task<TrackPullParamWithContentConfigDto> GetPullParamWithContentConfigAsync(int subSystemId, int serviceProviderId);
|
|
|
|
/// <summary>
|
|
/// 设置拉取配置缓存
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="subSystemId">子系统id</param>
|
|
/// <param name="serviceProviderId">服务商id</param>
|
|
/// <returns></returns>
|
|
Task<TrackPullParamWithContentConfigDto> SetPullConfigAsync(int? id = null, int? subSystemId = null,
|
|
int? serviceProviderId = null);
|
|
} |