Skip to content

Commit

Permalink
Merge pull request #1794 from actiontech/feishu-8
Browse files Browse the repository at this point in the history
chore:change param validate
  • Loading branch information
hasa1K authored Sep 7, 2023
2 parents 4a117c2 + b59b771 commit 5b5f6ca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqle/api/controller/v1/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14238,6 +14238,11 @@ var doc = `{
},
"v1.UpdateFeishuConfigurationReqV1": {
"type": "object",
"required": [
"app_id",
"app_secret",
"is_feishu_notification_enabled"
],
"properties": {
"app_id": {
"type": "string"
Expand Down
5 changes: 5 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -14222,6 +14222,11 @@
},
"v1.UpdateFeishuConfigurationReqV1": {
"type": "object",
"required": [
"app_id",
"app_secret",
"is_feishu_notification_enabled"
],
"properties": {
"app_id": {
"type": "string"
Expand Down
4 changes: 4 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5b5f6ca

Please sign in to comment.