[6.6.0]数据闭环

This commit is contained in:
xuxinchao
2024-08-15 10:22:00 +08:00
parent 92f6f4dc99
commit 4e95a07d54
29 changed files with 1581 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
package com.mogo.eagle.core.function.call.takeover
import android.content.Context
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.data.deva.report.TakeOverRecordInfo
import com.mogo.eagle.core.function.api.datacenter.takeover.ITakeOverProvider
import com.mogo.eagle.core.function.call.base.CallerBase
/**
* 接管记录管理
*/
object CallerTakeOverManager {
private val providerApi: ITakeOverProvider
get() = CallerBase.getApiInstance(
ITakeOverProvider::class.java,
MogoServicePaths.PATH_TAKE_OVER_PROVIDER
)
/**
* 插入接管记录数据
*/
fun insertRecord(context: Context, takeOverRecordInfo: TakeOverRecordInfo){
providerApi.insertRecord(context, takeOverRecordInfo)
}
/**
* 修改接管记录数据
*/
fun updateRecord(context: Context,takeOverRecordInfo: TakeOverRecordInfo){
providerApi.updateRecord(context, takeOverRecordInfo)
}
/**
* 删除接管记录
*/
fun deleteRecord(context: Context, takeOverRecordInfo: TakeOverRecordInfo){
providerApi.deleteRecord(context, takeOverRecordInfo)
}
/**
* 删除所有接管数据
*/
fun deleteAllRecord(context: Context){
providerApi.deleteAllRecord(context)
}
/**
* 获取接管记录列表
*/
suspend fun getAllRecord(context: Context): List<TakeOverRecordInfo>{
return providerApi.getAllRecord(context)
}
}