Skip to content

Commit 63159d6

Browse files
authored
Merge pull request #2223 from actiontech/issue-2222-api
define api
2 parents 1eb3744 + 10b3fcc commit 63159d6

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

sqle/api/controller/v2/task.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type AuditTaskSQLResV2 struct {
2929
Number uint `json:"number"`
3030
ExecSQL string `json:"exec_sql"`
3131
SQLSourceFile string `json:"sql_source_file"`
32+
SQLStartLine uint64 `json:"sql_start_line"`
3233
AuditResult []*AuditResult `json:"audit_result"`
3334
AuditLevel string `json:"audit_level"`
3435
AuditStatus string `json:"audit_status"`

sqle/docs/docs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12095,6 +12095,9 @@ var doc = `{
1209512095
},
1209612096
"sql_source_file": {
1209712097
"type": "string"
12098+
},
12099+
"sql_start_line": {
12100+
"type": "integer"
1209812101
}
1209912102
}
1210012103
},

sqle/docs/swagger.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12079,6 +12079,9 @@
1207912079
},
1208012080
"sql_source_file": {
1208112081
"type": "string"
12082+
},
12083+
"sql_start_line": {
12084+
"type": "integer"
1208212085
}
1208312086
}
1208412087
},

sqle/docs/swagger.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3167,6 +3167,8 @@ definitions:
31673167
type: string
31683168
sql_source_file:
31693169
type: string
3170+
sql_start_line:
3171+
type: integer
31703172
type: object
31713173
v2.BatchCancelWorkflowsReqV2:
31723174
properties:

0 commit comments

Comments
 (0)