Skip to content

Commit 41bf5a0

Browse files
committed
gen swag
1 parent ed24982 commit 41bf5a0

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

sqle/docs/docs.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,19 +3843,19 @@ var doc = `{
38433843
"ApiKeyAuth": []
38443844
}
38453845
],
3846-
"description": "generate audit plan token",
3846+
"description": "refresh audit plan token",
38473847
"tags": [
38483848
"instance_audit_plan"
38493849
],
3850-
"summary": "生成扫描任务token",
3851-
"operationId": "generateAuditPlanTokenV1",
3850+
"summary": "重置扫描任务token",
3851+
"operationId": "refreshAuditPlanTokenV1",
38523852
"parameters": [
38533853
{
38543854
"description": "update instance audit plan token",
38553855
"name": "audit_plan",
38563856
"in": "body",
38573857
"schema": {
3858-
"$ref": "#/definitions/v1.GenerateAuditPlanTokenReqV1"
3858+
"$ref": "#/definitions/v1.RefreshAuditPlanTokenReqV1"
38593859
}
38603860
},
38613861
{
@@ -14521,14 +14521,6 @@ var doc = `{
1452114521
}
1452214522
}
1452314523
},
14524-
"v1.GenerateAuditPlanTokenReqV1": {
14525-
"type": "object",
14526-
"properties": {
14527-
"expires_in_days": {
14528-
"type": "integer"
14529-
}
14530-
}
14531-
},
1453214524
"v1.GetAbnormalAuditPlanInstancesResp": {
1453314525
"type": "object",
1453414526
"properties": {
@@ -17837,6 +17829,14 @@ var doc = `{
1783717829
}
1783817830
}
1783917831
},
17832+
"v1.RefreshAuditPlanTokenReqV1": {
17833+
"type": "object",
17834+
"properties": {
17835+
"expires_in_days": {
17836+
"type": "integer"
17837+
}
17838+
}
17839+
},
1784017840
"v1.RejectWorkflowReqV1": {
1784117841
"type": "object",
1784217842
"properties": {

sqle/docs/swagger.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,19 +3827,19 @@
38273827
"ApiKeyAuth": []
38283828
}
38293829
],
3830-
"description": "generate audit plan token",
3830+
"description": "refresh audit plan token",
38313831
"tags": [
38323832
"instance_audit_plan"
38333833
],
3834-
"summary": "生成扫描任务token",
3835-
"operationId": "generateAuditPlanTokenV1",
3834+
"summary": "重置扫描任务token",
3835+
"operationId": "refreshAuditPlanTokenV1",
38363836
"parameters": [
38373837
{
38383838
"description": "update instance audit plan token",
38393839
"name": "audit_plan",
38403840
"in": "body",
38413841
"schema": {
3842-
"$ref": "#/definitions/v1.GenerateAuditPlanTokenReqV1"
3842+
"$ref": "#/definitions/v1.RefreshAuditPlanTokenReqV1"
38433843
}
38443844
},
38453845
{
@@ -14505,14 +14505,6 @@
1450514505
}
1450614506
}
1450714507
},
14508-
"v1.GenerateAuditPlanTokenReqV1": {
14509-
"type": "object",
14510-
"properties": {
14511-
"expires_in_days": {
14512-
"type": "integer"
14513-
}
14514-
}
14515-
},
1451614508
"v1.GetAbnormalAuditPlanInstancesResp": {
1451714509
"type": "object",
1451814510
"properties": {
@@ -17821,6 +17813,14 @@
1782117813
}
1782217814
}
1782317815
},
17816+
"v1.RefreshAuditPlanTokenReqV1": {
17817+
"type": "object",
17818+
"properties": {
17819+
"expires_in_days": {
17820+
"type": "integer"
17821+
}
17822+
}
17823+
},
1782417824
"v1.RejectWorkflowReqV1": {
1782517825
"type": "object",
1782617826
"properties": {

sqle/docs/swagger.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,11 +1510,6 @@ definitions:
15101510
$ref: '#/definitions/v1.DatabaseSchemaObject'
15111511
type: array
15121512
type: object
1513-
v1.GenerateAuditPlanTokenReqV1:
1514-
properties:
1515-
expires_in_days:
1516-
type: integer
1517-
type: object
15181513
v1.GetAbnormalAuditPlanInstancesResp:
15191514
properties:
15201515
code:
@@ -3787,6 +3782,11 @@ definitions:
37873782
value:
37883783
type: string
37893784
type: object
3785+
v1.RefreshAuditPlanTokenReqV1:
3786+
properties:
3787+
expires_in_days:
3788+
type: integer
3789+
type: object
37903790
v1.RejectWorkflowReqV1:
37913791
properties:
37923792
reason:
@@ -9309,14 +9309,14 @@ paths:
93099309
- instance_audit_plan
93109310
/v1/projects/{project_name}/instance_audit_plans/{instance_audit_plan_id}/token:
93119311
patch:
9312-
description: generate audit plan token
9313-
operationId: generateAuditPlanTokenV1
9312+
description: refresh audit plan token
9313+
operationId: refreshAuditPlanTokenV1
93149314
parameters:
93159315
- description: update instance audit plan token
93169316
in: body
93179317
name: audit_plan
93189318
schema:
9319-
$ref: '#/definitions/v1.GenerateAuditPlanTokenReqV1'
9319+
$ref: '#/definitions/v1.RefreshAuditPlanTokenReqV1'
93209320
- description: project name
93219321
in: path
93229322
name: project_name
@@ -9334,7 +9334,7 @@ paths:
93349334
$ref: '#/definitions/controller.BaseRes'
93359335
security:
93369336
- ApiKeyAuth: []
9337-
summary: 生成扫描任务token
9337+
summary: 重置扫描任务token
93389338
tags:
93399339
- instance_audit_plan
93409340
/v1/projects/{project_name}/instance_tips:

0 commit comments

Comments
 (0)