IAdminVerifyService.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.EnumConst;
  4. using GxPress.Result.App.AdminVerify;
  5. namespace GxPress.Service.Interface.AdminVerify
  6. {
  7. public interface IAdminVerifyService : IService
  8. {
  9. /// <summary>
  10. /// 清空
  11. /// </summary>
  12. /// <param name="userId"></param>
  13. /// <returns></returns>
  14. Task<bool> DeleteAllAsync(int userId);
  15. /// <summary>
  16. /// 修改
  17. /// </summary>
  18. /// <param name="id"></param>
  19. /// <param name="disposeTyeConst"></param>
  20. /// <returns></returns>
  21. Task<bool> UpdateAsync(int id, AdminVerifyTypeConst disposeTyeConst);
  22. /// <summary>
  23. /// 根据ID查询
  24. /// </summary>
  25. /// <param name="id"></param>
  26. /// <returns></returns>
  27. Task<Entity.AdminVerify> GetAsync(int id);
  28. /// <summary>
  29. /// 根据用户查询
  30. /// </summary>
  31. /// <param name="userId"></param>
  32. /// <returns></returns>
  33. Task<IEnumerable<AdminVerifySearchResult>> GetAllAsync(int userId);
  34. /// <summary>
  35. /// 查询未处理
  36. /// </summary>
  37. /// <param name="userId"></param>
  38. /// <returns></returns>
  39. Task<int> GetUDisposeCount(int userId);
  40. }
  41. }