[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

@@ -1,6 +1,7 @@
package com.mogo.eagle.core.function.api.datacenter.takeover
import android.content.Context
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.base.IMoGoFunctionServerProvider
@@ -34,4 +35,28 @@ interface ITakeOverProvider: IMoGoFunctionServerProvider {
*/
suspend fun getAllRecord(context: Context): MutableList<TakeOverRecordInfo>
/**
* 插入接管原因
*/
fun insertReason(context: Context,categoryInfo: CategoryInfo)
/**
* 修改接管原因
*/
fun updateReason(context: Context,categoryInfo: CategoryInfo)
/**
* 删除接管原因
*/
fun deleteReason(context: Context,categoryInfo: CategoryInfo)
/**
* 获取接管原因列表
*/
suspend fun getAllReason(context: Context,parentId: Int,parentName: String): MutableList<CategoryInfo>
/**
* 清空子数据
*/
fun deleteAllReason(context: Context,parentId: Int,parentName: String)
}