mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-01 12:16:37 +08:00
37
server/internal/db/api/vo/db_transfer.go
Normal file
37
server/internal/db/api/vo/db_transfer.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package vo
|
||||
|
||||
import "time"
|
||||
|
||||
type DbTransferTaskListVO struct {
|
||||
Id *int64 `json:"id"`
|
||||
|
||||
UpdateTime *time.Time `json:"updateTime"`
|
||||
Modifier string `json:"modifier"`
|
||||
|
||||
RunningState int `json:"runningState"`
|
||||
|
||||
CheckedKeys string `json:"checkedKeys"` // 选中需要迁移的表
|
||||
DeleteTable int `json:"deleteTable"` // 创建表前是否删除表
|
||||
NameCase int `json:"nameCase"` // 表名、字段大小写转换 1无 2大写 3小写
|
||||
Strategy int `json:"strategy"` // 迁移策略 1全量 2增量
|
||||
|
||||
SrcDbId int64 `json:"srcDbId"` // 源库id
|
||||
SrcDbName string `json:"srcDbName"` // 源库名
|
||||
SrcTagPath string `json:"srcTagPath"` // 源库tagPath
|
||||
SrcDbType string `json:"srcDbType"` // 源库类型
|
||||
SrcInstName string `json:"srcInstName"` // 源库实例名
|
||||
|
||||
TargetDbId int `json:"targetDbId"` // 目标库id
|
||||
TargetDbName string `json:"targetDbName"` // 目标库名
|
||||
TargetDbType string `json:"targetDbType"` // 目标库类型
|
||||
TargetInstName string `json:"targetInstName"` // 目标库实例名
|
||||
TargetTagPath string `json:"targetTagPath"` // 目标库tagPath
|
||||
}
|
||||
|
||||
type DbTransferLogListVO struct {
|
||||
CreateTime *time.Time `json:"createTime"`
|
||||
DataSqlFull string `json:"dataSqlFull"`
|
||||
ResNum string `json:"resNum"`
|
||||
ErrText string `json:"errText"`
|
||||
Status *int `json:"status"`
|
||||
}
|
||||
Reference in New Issue
Block a user