forked from Siyy/RoadFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIAppLibrary.cs
More file actions
67 lines (57 loc) · 1.86 KB
/
IAppLibrary.cs
File metadata and controls
67 lines (57 loc) · 1.86 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
using System.Collections.Generic;
namespace Data.Interface
{
public interface IAppLibrary
{
/// <summary>
/// 新增
/// </summary>
int Add(Data.Model.AppLibrary model);
/// <summary>
/// 更新
/// </summary>
int Update(Data.Model.AppLibrary model);
/// <summary>
/// 查询所有记录
/// </summary>
List<Data.Model.AppLibrary> GetAll();
/// <summary>
/// 查询单条记录
/// </summary>
Model.AppLibrary Get(Guid id);
/// <summary>
/// 删除
/// </summary>
int Delete(Guid id);
/// <summary>
/// 查询记录条数
/// </summary>
long GetCount();
/// <summary>
/// 得到一页数据
/// </summary>
/// <param name="pager"></param>
/// <param name="query"></param>
/// <param name="order"></param>
/// <param name="size"></param>
/// <param name="numbe"></param>
/// <param name="title"></param>
/// <param name="type"></param>
/// <param name="address"></param>
/// <returns></returns>
List<Data.Model.AppLibrary> GetPagerData(out string pager, string query = "", string order = "Type,Title", int size = 15, int number = 1, string title = "", string type = "", string address = "");
/// <summary>
/// 查询一个类别下所有记录
/// </summary>
List<Data.Model.AppLibrary> GetAllByType(string type);
/// <summary>
/// 删除记录
/// </summary>
int Delete(string[] idArray);
/// <summary>
/// 根据代码查询一条记录
/// </summary>
Data.Model.AppLibrary GetByCode(string code);
}
}