[6.6.0]接管原因数据库
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user