2022-10-26 20:49:29 +08:00
|
|
|
package entity
|
|
|
|
|
|
2025-05-20 21:04:47 +08:00
|
|
|
import "mayfly-go/pkg/model"
|
|
|
|
|
|
2023-12-27 22:59:20 +08:00
|
|
|
// InstanceQuery 数据库实例查询
|
2023-08-27 11:07:29 +08:00
|
|
|
type InstanceQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
model.PageParam
|
|
|
|
|
|
2024-04-17 21:28:28 +08:00
|
|
|
Id uint64 `json:"id" form:"id"`
|
|
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
|
Code string `json:"code" form:"code"`
|
|
|
|
|
Host string `json:"host" form:"host"`
|
2024-05-16 17:26:32 +08:00
|
|
|
TagPath string `json:"tagPath" form:"tagPath"`
|
2024-10-16 17:24:50 +08:00
|
|
|
Keyword string `json:"keyword" form:"keyword"`
|
2024-04-17 21:28:28 +08:00
|
|
|
Codes []string
|
2023-08-27 11:07:29 +08:00
|
|
|
}
|
|
|
|
|
|
2024-01-05 05:31:32 +00:00
|
|
|
type DataSyncTaskQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
model.PageParam
|
|
|
|
|
|
2024-01-05 05:31:32 +00:00
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
|
Status int8 `json:"status" form:"status"`
|
|
|
|
|
}
|
|
|
|
|
type DataSyncLogQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
model.PageParam
|
|
|
|
|
|
2024-01-05 05:31:32 +00:00
|
|
|
TaskId uint64 `json:"task_id" form:"taskId"`
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-15 09:01:51 +00:00
|
|
|
type DbTransferTaskQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
model.PageParam
|
|
|
|
|
|
2024-10-20 03:52:23 +00:00
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
|
Status int8 `json:"status" form:"status"`
|
|
|
|
|
CronAble int8 `json:"cronAble" form:"cronAble"`
|
|
|
|
|
}
|
|
|
|
|
type DbTransferFileQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
model.PageParam
|
|
|
|
|
|
2024-10-20 03:52:23 +00:00
|
|
|
TaskId uint64 `json:"task_id" form:"taskId"`
|
|
|
|
|
Name string `json:"name" form:"name"`
|
2024-03-15 09:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DbTransferLogQuery struct {
|
|
|
|
|
TaskId uint64 `json:"task_id" form:"taskId"`
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-26 20:49:29 +08:00
|
|
|
// 数据库查询实体,不与数据库表字段一一对应
|
|
|
|
|
type DbQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
model.PageParam
|
|
|
|
|
|
2024-05-21 12:34:26 +08:00
|
|
|
Id uint64 `form:"id"`
|
|
|
|
|
TagPath string `form:"tagPath"`
|
|
|
|
|
Code string `json:"code" form:"code"`
|
|
|
|
|
Codes []string
|
2023-08-30 22:41:42 +08:00
|
|
|
InstanceId uint64 `form:"instanceId"`
|
2023-07-08 20:05:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DbSqlExecQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
model.PageParam
|
|
|
|
|
|
2024-02-29 22:12:50 +08:00
|
|
|
Id uint64 `json:"id" form:"id"`
|
|
|
|
|
DbId uint64 `json:"dbId" form:"dbId"`
|
|
|
|
|
Db string `json:"db" form:"db"`
|
|
|
|
|
Table string `json:"table" form:"table"`
|
|
|
|
|
Type int8 `json:"type" form:"type"` // 类型
|
|
|
|
|
FlowBizKey string `json:"flowBizKey" form:"flowBizKey"`
|
2025-06-09 21:18:55 +08:00
|
|
|
Keyword string `json:"keyword" form:"keyword"`
|
|
|
|
|
StartTime string `json:"startTime" form:"startTime"`
|
|
|
|
|
EndTime string `json:"endTime" form:"endTime"`
|
2024-02-29 22:12:50 +08:00
|
|
|
|
|
|
|
|
Status []int8
|
2023-07-08 20:05:55 +08:00
|
|
|
CreatorId uint64
|
2022-10-26 20:49:29 +08:00
|
|
|
}
|
2023-12-27 22:59:20 +08:00
|
|
|
|
2024-01-30 13:12:43 +00:00
|
|
|
// DbBackupQuery 数据库备份任务查询
|
|
|
|
|
type DbBackupQuery struct {
|
2023-12-27 22:59:20 +08:00
|
|
|
Id uint64 `json:"id" form:"id"`
|
|
|
|
|
DbName string `json:"dbName" form:"dbName"`
|
|
|
|
|
IntervalDay int `json:"intervalDay" form:"intervalDay"`
|
|
|
|
|
InDbNames []string `json:"-" form:"-"`
|
|
|
|
|
DbInstanceId uint64 `json:"-" form:"-"`
|
|
|
|
|
Repeated bool `json:"repeated" form:"repeated"` // 是否重复执行
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DbBackupHistoryQuery 数据库备份任务查询
|
|
|
|
|
type DbBackupHistoryQuery struct {
|
|
|
|
|
Id uint64 `json:"id" form:"id"`
|
|
|
|
|
DbBackupId uint64 `json:"dbBackupId" form:"dbBackupId"`
|
|
|
|
|
DbId string `json:"dbId" form:"dbId"`
|
|
|
|
|
DbName string `json:"dbName" form:"dbName"`
|
|
|
|
|
InDbNames []string `json:"-" form:"-"`
|
|
|
|
|
DbInstanceId uint64 `json:"dbInstanceId" form:"dbInstanceId"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DbRestoreQuery 数据库备份任务查询
|
2024-01-30 13:12:43 +00:00
|
|
|
type DbRestoreQuery struct {
|
2025-05-20 21:04:47 +08:00
|
|
|
*model.PageParam
|
|
|
|
|
|
2024-01-30 13:12:43 +00:00
|
|
|
Id uint64 `json:"id" form:"id"`
|
|
|
|
|
DbName string `json:"dbName" form:"dbName"`
|
|
|
|
|
InDbNames []string `json:"-" form:"-"`
|
|
|
|
|
DbInstanceId uint64 `json:"-" form:"-"`
|
|
|
|
|
Repeated bool `json:"repeated" form:"repeated"` // 是否重复执行
|
|
|
|
|
}
|
2023-12-27 22:59:20 +08:00
|
|
|
|
|
|
|
|
// DbRestoreHistoryQuery 数据库备份任务查询
|
|
|
|
|
type DbRestoreHistoryQuery struct {
|
|
|
|
|
Id uint64 `json:"id" form:"id"`
|
|
|
|
|
DbRestoreId uint64 `json:"dbRestoreId" form:"dbRestoreId"`
|
|
|
|
|
}
|