forked from siteserver/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIChannelRepository.cs
More file actions
45 lines (30 loc) · 1.52 KB
/
IChannelRepository.cs
File metadata and controls
45 lines (30 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System.Collections.Generic;
using System.Threading.Tasks;
using Datory;
using SSCMS.Enums;
using SSCMS.Models;
namespace SSCMS.Repositories
{
public partial interface IChannelRepository : IRepository
{
Task InsertChannelAsync(Channel parentChannel, Channel channel);
Task<int> InsertAsync(int siteId, int parentId, string channelName, string indexName,
string contentModelPluginId, List<string> contentRelatedPluginIds, int channelTemplateId,
int contentTemplateId);
Task<int> InsertAsync(Channel channel);
Task UpdateAsync(Channel channel);
Task UpdateChannelTemplateIdAsync(Channel channel);
Task UpdateContentTemplateIdAsync(Channel channel);
Task DeleteAsync(Site site, int channelId, int adminId);
Task DeleteAllAsync(int siteId);
Task<bool> IsFilePathExistsAsync(int siteId, string filePath);
string GetWhereString(string group, string groupNot, bool isImageExists, bool isImage);
Task<List<int>> GetChannelIdsByTotalNumAsync(List<int> channelIds, int totalNum, string orderByString,
string whereString);
Task<List<string>> GetAllFilePathBySiteIdAsync(int siteId);
int GetTemplateUseCount(int siteId, int templateId, TemplateType templateType, bool isDefault,
List<Channel> channels);
Task<List<int>> GetChannelIdsAsync(Template template);
List<int> GetChannelIdsByTemplateId(bool isChannelTemplate, int templateId, List<Channel> channels);
}
}