1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using System;
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using Datory;
- using GxPress.EnumConst;
- namespace GxPress.Repository.Interface.AdminVerify
- {
- public interface IAdminVerifyRepository : IRepository
- {
- /// <summary>
- /// 添加
- /// </summary>
- /// <param name="adminVerify"></param>
- /// <returns></returns>
- Task<int> InsertAsync(Entity.AdminVerify adminVerify);
- /// <summary>
- /// 清空
- /// </summary>
- /// <param name="userId"></param>
- /// <param name="phone"></param>
- /// <returns></returns>
- Task<bool> DeleteAllAsync(int userId);
- /// <summary>
- /// 修改
- /// </summary>
- /// <param name="id"></param>
- /// <param name="disposeTyeConst"></param>
- /// <returns></returns>
- Task<bool> UpdateAsync(int id, AdminVerifyTypeConst disposeTyeConst);
- /// <summary>
- /// 修改
- /// </summary>
- /// <param name="query"></param>
- /// <returns></returns>
- Task<bool> UpdateAsync(SqlKata.Query query);
- /// <summary>
- /// 根据ID查询
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- Task<Entity.AdminVerify> GetAsync(int id);
- /// <summary>
- /// 根据用户查询
- /// </summary>
- /// <param name="userId"></param>
- /// <param name="phone"></param>
- /// <returns></returns>
- Task<IEnumerable<Entity.AdminVerify>> GetAllAsync(SqlKata.Query query);
- /// <summary>
- /// 查询未处理
- /// </summary>
- /// <param name="userId"></param>
- /// <returns></returns>
- Task<int> GetUDisposeCount(int userId);
- /// <summary>
- /// 根据ID查询
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- Task<Entity.AdminVerify> GetAsync(SqlKata.Query query);
- Task<bool> InsertAsync(List<Entity.AdminVerify> adminVerifys);
- /// <summary>
- /// 获取用户的验证时间信息
- /// </summary>
- /// <param name="userId"></param>
- /// <returns></returns>
- Task<DateTime> GetConfirmationDate(int userId);
- }
- }
|