53 lines
2.0 KiB
C#
53 lines
2.0 KiB
C#
using SJZY.Track.Domain.Dtos.TrackTemplate;
|
|
|
|
namespace SJZY.Track.Domain.Aggregates.TrackTemplateAggregate;
|
|
|
|
public interface ITrackTemplateRepository : IBasicRepository<TrackTemplateEntity>
|
|
{
|
|
Task<GetTrackTemplateDetailVO?> GetDetailAsync(int id);
|
|
|
|
Task<UnifyPageResultDto<GetTrackTemplateListVO>> GetPageTrackTemplate(GetPageTrackTemplateVO input);
|
|
|
|
/// <summary>
|
|
/// 轨迹模板内容列表
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
Task<UnifyPageResultDto<GetTrackTemplateContentPageOutputVO>> GetContentPageAsync(
|
|
GetTrackTemplateContentPageInputVO input);
|
|
|
|
/// <summary>
|
|
/// 轨迹模板内容详情
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
Task<GetTrackTemplateContentDetailOutputVo> GetContentDetailAsync(int id);
|
|
|
|
Task<bool> IsContentAnyAsync(Expression<Func<TrackTemplateContentEntity, bool>> whereExpression);
|
|
|
|
Task<bool> InsertContentAsync(TrackTemplateContentEntity insertObj);
|
|
|
|
Task<TrackTemplateContentEntity> GetContentByIdAsync(int id);
|
|
|
|
Task<bool> UpdateContentAsync(TrackTemplateContentEntity updateObj);
|
|
|
|
Task<bool> SoftDeleteContentAsync(int id);
|
|
|
|
Task<List<TrackTemplateContentEntity>> GetContentListAsync(
|
|
Expression<Func<TrackTemplateContentEntity, bool>> whereExpression);
|
|
|
|
Task<bool> UpdateContentRangeAsync(List<TrackTemplateContentEntity> updateObjs);
|
|
|
|
Task<T> ContentMaxAsync<T>(Expression<Func<TrackTemplateContentEntity, T>> columns,
|
|
Expression<Func<TrackTemplateContentEntity, bool>> whereExpression);
|
|
|
|
Task<bool> UpdateContentAsync(Expression<Func<TrackTemplateContentEntity, bool>> columns,
|
|
Expression<Func<TrackTemplateContentEntity, bool>> whereExpression);
|
|
|
|
Task<List<TrackTemplateOutputVo>> GetTrackTemplateListAsync(GetTrackTemplateListInputVo input);
|
|
|
|
Task<UnifyPageResultDto<TemplateContentDtoVo>> GetPageTrackTemplateListAsync(GetPageTrackTemplateListInputVo input);
|
|
|
|
Task<List<string>> GetContentByTemplateCodes(string[] codes, int systemId);
|
|
}
|