Skip to content

Commit

Permalink
Merge pull request #1784 from actiontech/feishu-api
Browse files Browse the repository at this point in the history
chore:add request body
  • Loading branch information
hasa1K authored Sep 5, 2023
2 parents 7c5e56c + 9646238 commit 682667b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqle/api/controller/v1/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,7 @@ func UpdateFeishuAuditConfigurationV1(c echo.Context) error {
// @Id testFeishuAuditConfigV1
// @Tags configuration
// @Security ApiKeyAuth
// @Param req body v1.TestFeishuConfigurationReqV1 true "test feishu configuration req"
// @Success 200 {object} v1.TestFeishuConfigResV1
// @router /v1/configurations/feishu_audit/test [post]
func TestFeishuAuditConfigV1(c echo.Context) error {
Expand Down
11 changes: 11 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,17 @@ var doc = `{
],
"summary": "测试飞书审批配置",
"operationId": "testFeishuAuditConfigV1",
"parameters": [
{
"description": "test feishu configuration req",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.TestFeishuConfigurationReqV1"
}
}
],
"responses": {
"200": {
"description": "OK",
Expand Down
11 changes: 11 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,17 @@
],
"summary": "测试飞书审批配置",
"operationId": "testFeishuAuditConfigV1",
"parameters": [
{
"description": "test feishu configuration req",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.TestFeishuConfigurationReqV1"
}
}
],
"responses": {
"200": {
"description": "OK",
Expand Down
7 changes: 7 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4931,6 +4931,13 @@ paths:
- application/json
description: test feishu audit configuration
operationId: testFeishuAuditConfigV1
parameters:
- description: test feishu configuration req
in: body
name: req
required: true
schema:
$ref: '#/definitions/v1.TestFeishuConfigurationReqV1'
responses:
"200":
description: OK
Expand Down

0 comments on commit 682667b

Please sign in to comment.