using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using GxPress.Entity; using GxPress.Request.App.GroupFolder; using GxPress.Request.App.GroupUser; using Datory; using GxPress.EnumConst; using SqlKata; namespace GxPress.Repository.Interface { public interface IGroupUserRepository : IRepository { Task UpdateAsync(GroupUserUpRequest request); Task DeleteAsync(SqlKata.Query query); Task> FindGroupUserAsync(GroupUserFindRequest request); Task InsertAsync(int userId, int groupId, GroupUserRoleTyeConst groupUserRoleId); Task GetAsync(SqlKata.Query q); Task> GetAllAsync(SqlKata.Query q); Task InsertAsync(GroupUser groupUser); /// /// 设置用户是否免打扰 /// /// /// /// Task SetIsUDisturbAsync(int groupId, int userId); Task InsertAsync(List groupUsers); /// /// 根据用户ID获取所加入的小组用户 /// /// /// Task> GetGroupUserByUserIdAsync(int userId); /// /// 获取用户加入小组的人数 /// /// /// Task GetUserIntoGroupUserCountAsync(int userId); Task CountAsync(int groupId); Task UpdateAsync(Entity.GroupUser groupUser); /// /// 查询小组用户是否存在 /// /// /// /// Task ExistsAsync(int userId, int groupId); Task UpdateGroupUserReadDateAsync(int userId, int groupId); } }