[6.6.0]接管原因数据库

This commit is contained in:
xuxinchao
2024-08-28 11:57:18 +08:00
parent 65c093299c
commit 5b1530f470
8 changed files with 319 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ 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.CategoryInfo
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
@@ -52,4 +53,39 @@ object CallerTakeOverManager {
return providerApi.getAllRecord(context)
}
/**
* 插入接管原因
*/
fun insertReason(context: Context,categoryInfo: CategoryInfo){
providerApi.insertReason(context, categoryInfo)
}
/**
* 修改接管原因
*/
fun updateReason(context: Context,categoryInfo: CategoryInfo){
providerApi.updateReason(context, categoryInfo)
}
/**
* 删除接管原因
*/
fun deleteReason(context: Context,categoryInfo: CategoryInfo){
providerApi.deleteReason(context, categoryInfo)
}
/**
* 获取接管原因列表
*/
suspend fun getAllReason(context: Context,parentId: Int,parentName: String): MutableList<CategoryInfo>{
return providerApi.getAllReason(context,parentId, parentName)
}
/**
* 清空子数据
*/
fun deleteAllReason(context: Context,parentId: Int,parentName: String){
providerApi.deleteAllReason(context, parentId, parentName)
}
}