2016-09-02 18:05:17 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2015-12-15 23:04:20 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Domain.Interface
|
|
|
|
|
{
|
|
|
|
|
public interface ICategoryRepository :IRepository<Category>
|
|
|
|
|
{
|
|
|
|
|
IEnumerable<Category> LoadCategorys(int pageindex, int pagesize);
|
|
|
|
|
|
2017-10-11 16:19:34 +08:00
|
|
|
|
IEnumerable<Category> LoadInOrgs(params string[] orgId);
|
|
|
|
|
int GetCategoryCntInOrgs(params string[] orgIds);
|
|
|
|
|
IEnumerable<Category> LoadInOrgs(int pageindex, int pagesize, params string[] orgIds);
|
2016-10-17 00:20:55 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取子分类ID
|
|
|
|
|
/// </summary>
|
2017-10-11 16:19:34 +08:00
|
|
|
|
string[] GetSubIds(string orgId);
|
2016-10-17 00:20:55 +08:00
|
|
|
|
|
2017-10-11 16:19:34 +08:00
|
|
|
|
void Delete(string id);
|
2015-12-15 23:04:20 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|