/***********************************************************************
* Project: CoreCms
* ProjectName: 核心内容管理系统
* Web: https://www.corecms.net
* Author: 大灰灰
* Email: jianweie@163.com
* CreateTime: 2025/9/2 17:54:05
* Description: 暂无
***********************************************************************/
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.Basics;
using CoreCms.Net.Model.ViewModels.UI;
using SqlSugar;
namespace CoreCms.Net.IServices
{
///
/// 预约表 服务工厂接口
///
public interface ISQReservationsServices : IBaseServices
{
#region 重写增删改查操作===========================================================
///
/// 重写异步插入方法
///
///
///
new Task InsertAsync(SQReservations entity);
///
/// 重写异步更新方法
///
///
///
new Task UpdateAsync(SQReservations entity);
///
/// 重写异步更新方法
///
///
///
new Task UpdateAsync(List entity);
///
/// 重写删除指定ID的数据
///
///
///
new Task DeleteByIdAsync(object id);
///
/// 重写删除指定ID集合的数据(批量删除)
///
///
///
new Task DeleteByIdsAsync(int[] ids);
#endregion
#region 获取缓存的所有数据==========================================================
///
/// 获取缓存的所有数据
///
///
Task> GetCaChe();
///
/// 更新cache
///
Task> UpdateCaChe();
#endregion
#region 重写根据条件查询分页数据
///
/// 重写根据条件查询分页数据
///
/// 判断集合
/// 排序方式
/// 当前页面索引
/// 分布大小
///
/// 是否使用WITH(NOLOCK)
///
new Task> QueryPageAsync(
Expression> predicate,
Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1,
int pageSize = 20, bool blUseNoLock = false);
#endregion
#region 预约模板消息通知==========================================================
///
/// 组局失败通知(批量入队模板消息)
///
/// 预约
/// 需通知的参与人集合
Task NotifyReservationFailedAsync(SQReservations reservation, IEnumerable participants, string tips = "组局人数未满,自动解散!");
///
/// 组局成功通知(批量入队模板消息)
///
/// 预约
/// 需通知的参与人集合
Task NotifyReservationSuccessAsync(SQReservations reservation, IEnumerable participants);
#endregion
}
}