ISystemLabelRepository.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Datory;
  4. using GxPress.Common.Page;
  5. using GxPress.Request.SystemLabel;
  6. using GxPress.Result.SystemLabel;
  7. namespace GxPress.Repository.Interface.SystemLabel
  8. {
  9. public interface ISystemLabelRepository : IRepository
  10. {
  11. Task<Entity.SystemLabel.SystemLabel> GetAsync(int id);
  12. Task<bool> DeleteAsync(int id);
  13. Task<int> InsertAsync(Entity.SystemLabel.SystemLabel note);
  14. Task<bool> UpdateAsync(SystemLabelUpRequest note);
  15. Task<PagedList<SystemLabelResult>> GetAllPageAsync(SystemLabelRequest request);
  16. Task<IEnumerable<Entity.SystemLabel.SystemLabel>> GetAllAsync(List<int> ids);
  17. Task<Entity.SystemLabel.SystemLabel> GetByNameAsync(string name);
  18. Task<IEnumerable<SystemLabelResult>> GetAllAsync();
  19. /// <summary>
  20. /// 获取明栏
  21. /// </summary>
  22. /// <param name="request"></param>
  23. /// <returns></returns>
  24. Task<PagedList<SystemLabelResult>> GetAllStarLablePageAsync(Common.Page.PageParameter request);
  25. /// <summary>
  26. /// 获取明栏
  27. /// </summary>
  28. /// <returns></returns>
  29. Task<IEnumerable<SystemLabelResult>> GetStarLableAllAsync();
  30. }
  31. }