IAdminVerifyRepository.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using Datory;
  5. using GxPress.EnumConst;
  6. namespace GxPress.Repository.Interface.AdminVerify
  7. {
  8. public interface IAdminVerifyRepository : IRepository
  9. {
  10. /// <summary>
  11. /// 添加
  12. /// </summary>
  13. /// <param name="adminVerify"></param>
  14. /// <returns></returns>
  15. Task<int> InsertAsync(Entity.AdminVerify adminVerify);
  16. /// <summary>
  17. /// 清空
  18. /// </summary>
  19. /// <param name="userId"></param>
  20. /// <param name="phone"></param>
  21. /// <returns></returns>
  22. Task<bool> DeleteAllAsync(int userId);
  23. /// <summary>
  24. /// 修改
  25. /// </summary>
  26. /// <param name="id"></param>
  27. /// <param name="disposeTyeConst"></param>
  28. /// <returns></returns>
  29. Task<bool> UpdateAsync(int id, AdminVerifyTypeConst disposeTyeConst);
  30. /// <summary>
  31. /// 修改
  32. /// </summary>
  33. /// <param name="query"></param>
  34. /// <returns></returns>
  35. Task<bool> UpdateAsync(SqlKata.Query query);
  36. /// <summary>
  37. /// 根据ID查询
  38. /// </summary>
  39. /// <param name="id"></param>
  40. /// <returns></returns>
  41. Task<Entity.AdminVerify> GetAsync(int id);
  42. /// <summary>
  43. /// 根据用户查询
  44. /// </summary>
  45. /// <param name="userId"></param>
  46. /// <param name="phone"></param>
  47. /// <returns></returns>
  48. Task<IEnumerable<Entity.AdminVerify>> GetAllAsync(SqlKata.Query query);
  49. /// <summary>
  50. /// 查询未处理
  51. /// </summary>
  52. /// <param name="userId"></param>
  53. /// <returns></returns>
  54. Task<int> GetUDisposeCount(int userId);
  55. /// <summary>
  56. /// 根据ID查询
  57. /// </summary>
  58. /// <param name="id"></param>
  59. /// <returns></returns>
  60. Task<Entity.AdminVerify> GetAsync(SqlKata.Query query);
  61. Task<bool> InsertAsync(List<Entity.AdminVerify> adminVerifys);
  62. /// <summary>
  63. /// 获取用户的验证时间信息
  64. /// </summary>
  65. /// <param name="userId"></param>
  66. /// <returns></returns>
  67. Task<DateTime> GetConfirmationDate(int userId);
  68. }
  69. }