Skip to content

Commit

Permalink
rename: origin to original
Browse files Browse the repository at this point in the history
  • Loading branch information
winfredLIN committed Nov 22, 2024
1 parent c4ae4a7 commit 668d8c9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions sqle/api/controller/v1/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

type UpdateSqlBackupStrategyReq struct {
Strategy string `json:"strategy" enums:"none,manual,reverse_sql,origin_row"`
Strategy string `json:"strategy" enums:"none,manual,reverse_sql,original_row"`
}

// UpdateSqlBackupStrategy
Expand All @@ -27,7 +27,7 @@ func UpdateSqlBackupStrategy(c echo.Context) error {
}

type UpdateTaskBackupStrategyReq struct {
Strategy string `json:"strategy" enums:"none,manual,reverse_sql,origin_row"`
Strategy string `json:"strategy" enums:"none,manual,reverse_sql,original_row"`
}

// UpdateTaskBackupStrategy
Expand Down Expand Up @@ -73,7 +73,7 @@ type BackupSqlData struct {
OriginSQL string `json:"origin_sql"`
OriginTaskId uint `json:"origin_task_id"`
BackupSqls []string `json:"backup_sqls"`
BackupStrategy string `json:"backup_strategy" enums:"none,manual,reverse_sql,origin_row"`
BackupStrategy string `json:"backup_strategy" enums:"none,manual,reverse_sql,original_row"`
InstanceName string `json:"instance_name"`
InstanceId string `json:"instance_id"`
ExecStatus string `json:"exec_status"`
Expand Down
2 changes: 1 addition & 1 deletion sqle/api/controller/v2/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type AuditTaskSQLResV2 struct {
RollbackSQLs []string `json:"rollback_sqls,omitempty"`
Description string `json:"description"`
SQLType string `json:"sql_type"`
BackupStrategy string `json:"backup_strategy" enums:"none,manual,reverse_sql,origin_row"`
BackupStrategy string `json:"backup_strategy" enums:"none,manual,reverse_sql,original_row"`
BackupStrategyTip string `json:"backup_strategy_tip"`
AssociatedRollbackWorkflows []*AssociatedRollbackWorkflow `json:"associated_rollback_workflows"`
}
Expand Down
8 changes: 4 additions & 4 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11797,7 +11797,7 @@ var doc = `{
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
},
"description": {
Expand Down Expand Up @@ -17595,7 +17595,7 @@ var doc = `{
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
}
}
Expand Down Expand Up @@ -17684,7 +17684,7 @@ var doc = `{
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
}
}
Expand Down Expand Up @@ -18822,7 +18822,7 @@ var doc = `{
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
},
"backup_strategy_tip": {
Expand Down
8 changes: 4 additions & 4 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -11781,7 +11781,7 @@
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
},
"description": {
Expand Down Expand Up @@ -17579,7 +17579,7 @@
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
}
}
Expand Down Expand Up @@ -17668,7 +17668,7 @@
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
}
}
Expand Down Expand Up @@ -18806,7 +18806,7 @@
"none",
"manual",
"reverse_sql",
"origin_row"
"original_row"
]
},
"backup_strategy_tip": {
Expand Down
8 changes: 4 additions & 4 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ definitions:
- none
- manual
- reverse_sql
- origin_row
- original_row
type: string
description:
type: string
Expand Down Expand Up @@ -4452,7 +4452,7 @@ definitions:
- none
- manual
- reverse_sql
- origin_row
- original_row
type: string
type: object
v1.UpdateSqlFileOrderV1Req:
Expand Down Expand Up @@ -4512,7 +4512,7 @@ definitions:
- none
- manual
- reverse_sql
- origin_row
- original_row
type: string
type: object
v1.UpdateWechatConfigurationReqV1:
Expand Down Expand Up @@ -5297,7 +5297,7 @@ definitions:
- none
- manual
- reverse_sql
- origin_row
- original_row
type: string
backup_strategy_tip:
type: string
Expand Down

0 comments on commit 668d8c9

Please sign in to comment.