/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System.Collections.Generic;
using System.Threading.Tasks;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.UI;
namespace CoreCms.Net.IServices
{
///
/// 商品分类 服务工厂接口
///
public interface ICoreCmsGoodsCategoryServices : IBaseServices
{
#region 获取缓存的所有数据==========================================================
///
/// 获取缓存的所有数据
///
///
Task> GetCaChe();
#endregion
///
/// 判断商品分类下面是否有某一个商品分类
///
///
///
///
Task IsChild(int catParentId, int catId);
///
/// 判断是否含有子类
///
///
///
///
///
bool IsHave(List list, int catParentId, int catId);
#region 重写增删改查操作===========================================================
///
/// 事务重写异步插入方法
///
///
///
Task InsertAsync(CoreCmsGoodsCategory entity);
///
/// 重写异步更新方法方法
///
///
///
Task UpdateAsync(CoreCmsGoodsCategory entity);
///
/// 重写删除指定ID的数据
///
///
///
Task DeleteByIdAsync(object id);
#endregion
}
}