IAppChannelRepository.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Datory;
  4. using GxPress.EnumConst;
  5. namespace GxPress.Repository.Interface.AppChannel
  6. {
  7. public interface IAppChannelRepository : IRepository
  8. {
  9. /// <summary>
  10. /// 获取详情
  11. /// </summary>
  12. /// <param name="id"></param>
  13. /// <returns></returns>
  14. Task<Entity.tede2.AppChannel.AppChannel> GetAsync(int id);
  15. /// <summary>
  16. /// 查询
  17. /// </summary>
  18. /// <returns></returns>
  19. Task<IEnumerable<Entity.tede2.AppChannel.AppChannel>> GetAllAsync(AppChannelConst channelTypeValye);
  20. /// <summary>
  21. /// 删除
  22. /// </summary>
  23. /// <param name="id"></param>
  24. /// <returns></returns>
  25. Task<bool> DeleteAsync(int id);
  26. /// <summary>
  27. /// 修改
  28. /// </summary>
  29. /// <param name="model"></param>
  30. /// <returns></returns>
  31. Task<bool> UpdateAsync(Entity.tede2.AppChannel.AppChannel request);
  32. /// <summary>
  33. /// 添加
  34. /// </summary>
  35. /// <param name="model"></param>
  36. /// <returns></returns>
  37. Task<bool> InsertAsync(Entity.tede2.AppChannel.AppChannel model);
  38. }
  39. }