diff --git a/sqle/api/controller/v1/configuration.go b/sqle/api/controller/v1/configuration.go index 0752a9f9ef..ede9d7835e 100644 --- a/sqle/api/controller/v1/configuration.go +++ b/sqle/api/controller/v1/configuration.go @@ -446,9 +446,9 @@ func GetFeishuConfigurationV1(c echo.Context) error { } type UpdateFeishuConfigurationReqV1 struct { - AppID *string `json:"app_id" form:"app_id"` - AppSecret *string `json:"app_secret" form:"app_secret" ` - IsFeishuNotificationEnabled *bool `json:"is_feishu_notification_enabled" from:"is_feishu_notification_enabled" description:"是否启用飞书推送"` + AppID *string `json:"app_id" form:"app_id" validate:"required" description:"飞书应用ID"` + AppSecret *string `json:"app_secret" form:"app_secret" validate:"required" description:"飞书应用Secret"` + IsFeishuNotificationEnabled *bool `json:"is_feishu_notification_enabled" from:"is_feishu_notification_enabled" validate:"required" description:"是否启用飞书推送"` } // UpdateFeishuConfigurationV1 diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index fafa72f23b..8883031434 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -14238,6 +14238,11 @@ var doc = `{ }, "v1.UpdateFeishuConfigurationReqV1": { "type": "object", + "required": [ + "app_id", + "app_secret", + "is_feishu_notification_enabled" + ], "properties": { "app_id": { "type": "string" diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index fe462a1a5b..abc391c4ad 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -14222,6 +14222,11 @@ }, "v1.UpdateFeishuConfigurationReqV1": { "type": "object", + "required": [ + "app_id", + "app_secret", + "is_feishu_notification_enabled" + ], "properties": { "app_id": { "type": "string" diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 7698af7423..13395d9c39 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -3470,6 +3470,10 @@ definitions: type: string is_feishu_notification_enabled: type: boolean + required: + - app_id + - app_secret + - is_feishu_notification_enabled type: object v1.UpdateInstanceReqV1: properties: