-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHttpDataManage.kt
39 lines (34 loc) · 945 Bytes
/
HttpDataManage.kt
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
package com.manna.monitor.room.export
/**
* Define the database operation external call interface for operating HttpDataEntity
*/
interface HttpDataManage {
/**
* single insert
*/
fun insert(data: HttpDataEntity)
/**
* batch insert
*/
fun insertList(dataList: MutableList<HttpDataEntity>)
fun delete(data: HttpDataEntity)
fun deleteList(dataList: MutableList<HttpDataEntity>)
fun update(data: HttpDataEntity)
fun updateList(dataList: MutableList<HttpDataEntity>)
/**
* query by page
*/
suspend fun queryPager(page: Int, pageSize: Int): MutableList<HttpDataEntity>
/**
* query by page and api path
*/
suspend fun queryPagerWithPath(
path: String,
page: Int,
pageSize: Int
): MutableList<HttpDataEntity>
/**
* Custom query
*/
suspend fun queryCustom(queryFilter: QueryFilter): MutableList<HttpDataEntity>
}