ISpecialLabelRepository.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Datory;
  4. namespace GxPress.Repository.Interface.SpecialLabel
  5. {
  6. public interface ISpecialLabelRepository : IRepository
  7. {
  8. /// <summary>
  9. /// 添加
  10. /// </summary>
  11. /// <param name="model"></param>
  12. /// <returns></returns>
  13. Task<int> InsertAsync(Entity.SystemLabel.SpecialLabel model);
  14. /// <summary>
  15. /// 修改
  16. /// </summary>
  17. /// <param name="model"></param>
  18. /// <returns></returns>
  19. Task<bool> UpdateAsync(Entity.SystemLabel.SpecialLabel model);
  20. /// <summary>
  21. /// 获取
  22. /// </summary>
  23. /// <param name="id"></param>
  24. /// <returns></returns>
  25. Task<Entity.SystemLabel.SpecialLabel> GetAsync(int id);
  26. /// <summary>
  27. /// 删除
  28. /// </summary>
  29. /// <param name="id"></param>
  30. /// <returns></returns>
  31. Task<bool> DeleteAsync(int id);
  32. /// <summary>
  33. /// 获取类型下的数据
  34. /// </summary>
  35. /// <param name="typeValue"></param>
  36. /// <returns></returns>
  37. Task<IEnumerable<Entity.SystemLabel.SpecialLabel>> GetAllAsync(int typeValue);
  38. }
  39. }