[dev_arch_opt_3.0]录包工具三期

This commit is contained in:
xuxinchao
2023-02-22 18:44:33 +08:00
parent b8cbf7bb15
commit 088be3f4fb
52 changed files with 2128 additions and 123 deletions

View File

@@ -0,0 +1,12 @@
package com.mogo.eagle.core.data.badcase
/**
* @author XuXinChao
* @description bag附加信息(录音,备注,接管信息)
* @since: 2023/2/2
*/
data class BagDescriptionEntity(var description: String,// bag接管描述或重命名信息
var hasAudio: Boolean,// 此bag是否具有录音文件
var audioUrl: String,// bag附加录音文件的文件名
var reportBI: Boolean //上报BI状态
)

View File

@@ -0,0 +1,20 @@
package com.mogo.eagle.core.data.badcase
/**
* @author XuXinChao
* @description 单个key值对应的包信息
* @since: 2023/2/1
*/
class BagInfoEntity(){
var key: Long = 0// bag key值
var totalSize: Long = 0// 所有子包或合并后的包的总大小
var timestamp: String = ""// 时间戳
var bagPath: String ?= null// bag所在路径
var mergeStat: Boolean = false// 合并状态
var uploadStat: Boolean = false// 上传cos桶状态
var description: BagDescriptionEntity ?= null// 包描述信息
var subBags: ArrayList<SubBagEntity> =ArrayList()// 子包信息
var selectStatus: Boolean = false //Bag包勾选状态默认为未勾选
var itemType: Int = 0 //0是正常Bag包1为时间Title
var timeStr: String = ""
}

View File

@@ -0,0 +1,15 @@
package com.mogo.eagle.core.data.badcase
/**
* @author XuXinChao
* @description 包管理请求
* @since: 2023/2/1
*/
class BagManagerEntity(){
var reqType: Int = 1// 请求类型:0-invalid 1-获取空间使用信息 2-遍历所有bag 3-上传cos 4-删除bag 5-为bag添加附加信息
var keyReq: Long =0// 要操作的包的key值,发送请求且reqType=(3,4,5)时有效
var descReq: BagDescriptionEntity ?= null// 更新包附加信息,发送请求且reqType=5时有效
var spaceInfoResp: List<BagSpaceInfoEntity> = ArrayList()// 空间使用信息,获取响应且reqType=1时有效
val bagsInfoResp: MutableList<BagInfoEntity> = ArrayList()// 包信息列表,获取响应且reqType=2时有效
var uploadCosResp: UploadCosStatEntity ?=null//反馈上传cos桶结果,获取响应且reqType=3时有效
}

View File

@@ -0,0 +1,11 @@
package com.mogo.eagle.core.data.badcase
/**
* @author XuXinChao
* @description bag目录空间使用情况
* @since: 2023/2/1
*/
data class BagSpaceInfoEntity(var host: String,// 主机名
var diskSpaceInfo: SpaceInfoEntity,// 硬盘空间信息
var BagDirsSpaceInfo: List<SpaceInfoEntity>// /home/mogo/data/bags下各子空间信息
)

View File

@@ -0,0 +1,13 @@
package com.mogo.eagle.core.data.badcase
/**
* @author XuXinChao
* @description 车端BadCase存储空间使用情况
* @since: 2023/2/1
*/
data class SpaceInfoEntity(
var directory: String,// 路径名,为空表示总空间,否则表示对应的/home/mogo/data/bags下的子目录
var total: Long,// 总空间
var free: Long,// 可用空间
var used: Long // 已用空间
)

View File

@@ -0,0 +1,11 @@
package com.mogo.eagle.core.data.badcase
/**
* @author XuXinChao
* @description 各主机上报的包信息
* @since: 2023/2/1
*/
data class SubBagEntity(var key: Long,//bag key值
var host: String,//主机名
var size: Long //此子包的大小
)

View File

@@ -0,0 +1,11 @@
package com.mogo.eagle.core.data.badcase
/**
* @author XuXinChao
* @description 上传cos桶状态
* @since: 2023/2/1
*/
data class UploadCosStatEntity(var key: Long,
var stat: Int,// 0-成功 1-执行中 2-copy过程失败 3-合并过程失败 4-上传过程失败
var message: String// 失败时的具体描述
)