ComplianceServer/code/Hg.Core.Domain/Impl/ICmsNewsDomain.cs

38 lines
949 B
C#

using Hg.Core.Domain.Dto.CmsNews;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hg.Core.Domain.Impl
{
public interface ICmsNewsDomain : IScopedDependency
{
Task<int> CreateOrUpdateCmsNews(CreateOrUpdateCmsNewsDto dto);
Task<bool> Upload(UploadCmsNewDto dto);
Task<CmsNewsDto> GetCmsNews(int id);
Task<bool> Audit(AuditCmsNewsDto dto);
Task<bool> Delete(DelCmsNewsDto dto);
/// <summary>
/// 搜索CmsNews类分页。
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
Task<PageResult<CmsNewsDto>> SearchCmsNews(SearchCmsNewsDto dto);
Task<List<CmsNewsLogDto>> GetCmsNewsLogs(int id);
Task SyncCmsNews();
Task SyncCmsNews2();
Dictionary<int, string> GetReasonForRejectionNew();
Task SyncNews();
}
}