From b1956b66706a7598c8fe87ab607a4e95584f8842 Mon Sep 17 00:00:00 2001 From: WinfredLIN Date: Fri, 15 Nov 2024 14:23:17 +0800 Subject: [PATCH] api definition: instance tip add enable backup param as response --- sqle/api/controller/v1/instance.go | 1 + sqle/docs/docs.go | 3 +++ sqle/docs/swagger.json | 3 +++ sqle/docs/swagger.yaml | 2 ++ 4 files changed, 9 insertions(+) diff --git a/sqle/api/controller/v1/instance.go b/sqle/api/controller/v1/instance.go index aff07aa9f..d2cfd40f6 100644 --- a/sqle/api/controller/v1/instance.go +++ b/sqle/api/controller/v1/instance.go @@ -348,6 +348,7 @@ type InstanceTipResV1 struct { WorkflowTemplateId uint32 `json:"workflow_template_id"` Host string `json:"host"` Port string `json:"port"` + EnableBackup bool `json:"enable_backup"` } type GetInstanceTipsResV1 struct { diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 2f2f9945f..7f7de925f 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -15449,6 +15449,9 @@ var doc = `{ "v1.InstanceTipResV1": { "type": "object", "properties": { + "enable_backup": { + "type": "boolean" + }, "host": { "type": "string" }, diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index 0aa91f974..e45b0ab0a 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -15433,6 +15433,9 @@ "v1.InstanceTipResV1": { "type": "object", "properties": { + "enable_backup": { + "type": "boolean" + }, "host": { "type": "string" }, diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 6b8b34961..7e052d8c1 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -3012,6 +3012,8 @@ definitions: type: object v1.InstanceTipResV1: properties: + enable_backup: + type: boolean host: type: string instance_id: