Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify: add sqle config to sync task #284

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion api/dms/service/v1/db_service_sync_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
pkgConst "github.com/actiontech/dms/internal/dms/pkg/constant"
base "github.com/actiontech/dms/pkg/dms-common/api/base/v1"
pkgParams "github.com/actiontech/dms/pkg/params"
dmsCommonV1 "github.com/actiontech/dms/pkg/dms-common/api/dms/v1"
)

// swagger:model ListDBServiceSyncTasksReply
Expand Down Expand Up @@ -69,6 +70,8 @@ type DBServiceSyncTask struct {
// additional params
// Required: false
AdditionalParam pkgParams.Params `json:"additional_params"`
// SQLE config
SQLEConfig *dmsCommonV1.SQLEConfig `json:"sqle_config"`
}


Expand Down Expand Up @@ -109,7 +112,7 @@ type DeleteDBServiceSyncTaskReq struct {

// swagger:model ListDBServiceSyncTaskTipsReply
type ListDBServiceSyncTaskTipsReply struct {
Tips []DBServiceSyncTaskTip `json:"tips"`
Data []DBServiceSyncTaskTip `json:"data"`

// Generic reply
base.GenericResp
Expand Down
25 changes: 17 additions & 8 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5828,6 +5828,9 @@
"x-go-name": "Source",
"example": "actiontech-dmp"
},
"sqle_config": {
"$ref": "#/definitions/SQLEConfig"
},
"url": {
"description": "addr",
"type": "string",
Expand Down Expand Up @@ -6355,6 +6358,9 @@
"x-go-name": "Source",
"example": "actiontech-dmp"
},
"sqle_config": {
"$ref": "#/definitions/SQLEConfig"
},
"uid": {
"type": "string",
"x-go-name": "UID"
Expand Down Expand Up @@ -7748,6 +7754,9 @@
"x-go-name": "Source",
"example": "actiontech-dmp"
},
"sqle_config": {
"$ref": "#/definitions/SQLEConfig"
},
"uid": {
"type": "string",
"x-go-name": "UID"
Expand All @@ -7770,17 +7779,17 @@
"format": "int64",
"x-go-name": "Code"
},
"message": {
"description": "message",
"type": "string",
"x-go-name": "Message"
},
"tips": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/DBServiceSyncTaskTip"
},
"x-go-name": "Tips"
"x-go-name": "Data"
},
"message": {
"description": "message",
"type": "string",
"x-go-name": "Message"
}
},
"x-go-package": "github.com/actiontech/dms/api/dms/service/v1"
Expand Down Expand Up @@ -9929,7 +9938,7 @@
"x-go-name": "Uid"
}
},
"x-go-package": "github.com/actiontech/dms/api/dms/service/v1"
"x-go-package": "github.com/actiontech/dms/pkg/dms-common/api/dms/v1"
},
"UpdateCompanyNotice": {
"description": "A companynotice",
Expand Down
18 changes: 12 additions & 6 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,8 @@ definitions:
example: actiontech-dmp
type: string
x-go-name: Source
sqle_config:
$ref: '#/definitions/SQLEConfig'
url:
description: addr
example: http://10.186.62.56:10000
Expand Down Expand Up @@ -1272,6 +1274,8 @@ definitions:
example: actiontech-dmp
type: string
x-go-name: Source
sqle_config:
$ref: '#/definitions/SQLEConfig'
uid:
type: string
x-go-name: UID
Expand Down Expand Up @@ -2349,6 +2353,8 @@ definitions:
example: actiontech-dmp
type: string
x-go-name: Source
sqle_config:
$ref: '#/definitions/SQLEConfig'
uid:
type: string
x-go-name: UID
Expand All @@ -2372,15 +2378,15 @@ definitions:
format: int64
type: integer
x-go-name: Code
data:
items:
$ref: '#/definitions/DBServiceSyncTaskTip'
type: array
x-go-name: Data
message:
description: message
type: string
x-go-name: Message
tips:
items:
$ref: '#/definitions/DBServiceSyncTaskTip'
type: array
x-go-name: Tips
type: object
x-go-package: github.com/actiontech/dms/api/dms/service/v1
ListDBServiceSyncTasksReply:
Expand Down Expand Up @@ -4107,7 +4113,7 @@ definitions:
type: string
x-go-name: Uid
type: object
x-go-package: github.com/actiontech/dms/api/dms/service/v1
x-go-package: github.com/actiontech/dms/pkg/dms-common/api/dms/v1
UpdateCompanyNotice:
description: A companynotice
properties:
Expand Down