/*********************************************************************** * Project: CoreCms * ProjectName: 核心内容管理系统 * Web: https://www.corecms.net * Author: 大灰灰 * Email: jianweie@163.com * CreateTime: 2021/1/31 21:45:10 * 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.DTO.Distribution; using CoreCms.Net.Model.ViewModels.UI; using SqlSugar; namespace CoreCms.Net.IServices { /// /// 分销商表 服务工厂接口 /// public interface ICoreCmsDistributionServices : IBaseServices { /// /// 获取分销商信息 /// /// 用户id /// 是否检查满足条件 /// Task GetInfo(int userId, bool checkStatus = false); /// /// 添加用户信息 /// /// /// /// Task AddData(CoreCmsDistribution iData, int userId); /// /// 获取我的推广订单 /// /// /// /// /// Task GetMyOrderList(int userId, int page, int limit = 10, int typeId = 0); /// /// 获取店铺信息 /// /// /// /// /// Task GetStore(int userId); /// /// 获取当前用户返佣设置 /// /// /// Task GetGradeAndCommission(int userId); //检查是否可以成为分销商 Task CheckCondition(Dictionary allConfigs, CoreCmsDistribution info, int userId = 0); /// /// 检查当前用户是否可以升级 /// /// /// Task CheckUpdate(int userId); /// /// 获取代理商排行 /// /// 当前页面索引 /// 分布大小 /// Task> QueryRankingPageAsync(int pageIndex = 1, int pageSize = 20); #region 重写根据条件查询分页数据 /// /// 重写根据条件查询分页数据 /// /// 判断集合 /// 排序方式 /// 当前页面索引 /// 分布大小 /// /// 是否使用WITH(NOLOCK) /// Task> QueryPageAsync( Expression> predicate, Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, int pageSize = 20, bool blUseNoLock = false); #endregion } }