Skip to content

Commit

Permalink
Merge pull request #284 from actiontech/issue322-1
Browse files Browse the repository at this point in the history
modify: add sqle config to sync task
  • Loading branch information
sjjian authored Jul 18, 2024
2 parents b3e8301 + 96ce7be commit 90abb95
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 15 deletions.
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

0 comments on commit 90abb95

Please sign in to comment.