-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Chambers <chenbochao@vikadata.com> Co-authored-by: ziqiang <zhaozhiqiang@vikadata.com> Co-authored-by: Michael Xiaoliang Chan <111508006+yo-ooiii@users.noreply.github.com> Co-authored-by: Kilian <wangkailang@users.noreply.github.com> Co-authored-by: Kelly Peilin Chan <kelly@apitable.com> Co-authored-by: Caedman Ziwen Lan <lanziwen@apitable.com> Co-authored-by: Aria <sujian@apitable.com> Co-authored-by: Shawn Deng <dengguiheng@apitable.com> Co-authored-by: William Chan <root@williamchan.me> Co-authored-by: Harry Yep <git@hode.co.uk> Co-authored-by: Guofeng Chen <66124783+functionChenGuoFeng@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: magic conch <38741725+Enternalcode@users.noreply.github.com> Co-authored-by: Kelly Peilin Chan <kelly@vikadata.com> Co-authored-by: yechen <18412022+SmileChen518@users.noreply.github.com> Co-authored-by: Robot Ye Chen <262000730@qq.com> Co-authored-by: Zoe <zhengxu@apitable.com> Co-authored-by: Binson <zoubingshun@aitable.ai> Co-authored-by: Binson <zoubingshun1@apitable.com> Co-authored-by: paylm penglong feng <fengpenglong@vikadata.com> Co-authored-by: liuyi <liuyi@vikadata.com> Co-authored-by: Evie Wanmei Huang <37546178+wmEvie@users.noreply.github.com> Co-authored-by: Kelvin Jiawen Pan <panjiawen@apitable.com> Co-authored-by: Evie <huangwanmei@apitable.com> Co-authored-by: XuKecheng <wsad8254695@outlook.com> Co-authored-by: vac (Brendan) <wangjintao@apitable.com> Co-authored-by: Alex (hufeng) <hufeng@vikadata.com> Co-authored-by: Kelvin <panjiawen@vikadata.com> Co-authored-by: wangkailang <wangkailang@vikadata.com>
- Loading branch information
1 parent
4fd852f
commit a1f76e8
Showing
257 changed files
with
15,126 additions
and
1,886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.99.1 | ||
current_version = 1.0.0 | ||
commit = False | ||
tag = False | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.99.1 | ||
1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.99.1 | ||
1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# OpenAPI Generator Ignore | ||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
# As an example, the C# client generator defines ApiClient.cs. | ||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | ||
#ApiClient.cs | ||
|
||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
#foo/*/qux | ||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
#foo/**/qux | ||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
||
# You can also negate patterns with an exclamation (!). | ||
# For example, you can ignore all files in a docs folder with the file extension .md: | ||
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md | ||
|
||
.github/ | ||
.openapi-generator/ | ||
api/ | ||
docs/ | ||
gradle/ | ||
build.gradle | ||
.gitignore | ||
.travis.yml | ||
build.sbt | ||
git_push.sh | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
pom.xml | ||
README.md | ||
settings.gradle | ||
src/main/AndroidManifest.xml | ||
src/test/java/com/apitable/databusclient/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
...plication/src/main/java/com/apitable/automation/controller/AutomationRobotController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* APITable <https://github.com/apitable/apitable> | ||
* Copyright (C) 2022 APITable Ltd. <https://apitable.com> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.apitable.automation.controller; | ||
|
||
import com.apitable.automation.model.AutomationVO; | ||
import com.apitable.automation.service.IAutomationRobotService; | ||
import com.apitable.core.support.ResponseData; | ||
import com.apitable.databusclient.ApiException; | ||
import com.apitable.shared.component.scanner.annotation.ApiResource; | ||
import com.apitable.shared.component.scanner.annotation.GetResource; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.enums.ParameterIn; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import java.util.List; | ||
import javax.annotation.Resource; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
/** | ||
* Automation run history controller. | ||
*/ | ||
@RestController | ||
@Tag(name = "Authorization related interface") | ||
@ApiResource(path = {"/automation/robots"}) | ||
@Slf4j | ||
public class AutomationRobotController { | ||
|
||
@Resource | ||
private IAutomationRobotService iAutomationRobotService; | ||
|
||
/** | ||
* Get automation run history. | ||
* | ||
* @param resourceId resource id | ||
* @return {@link ResponseData} | ||
*/ | ||
@GetResource(path = "", requiredPermission = false) | ||
@Operation(summary = "Get automation run history") | ||
@Parameter(name = "resourceId", description = "resource id", required = true, schema = @Schema(type = | ||
"string"), in = ParameterIn.QUERY, example = "dst****") | ||
public ResponseData<List<AutomationVO>> getResourceRobots( | ||
@RequestParam("resourceId") String resourceId) | ||
throws ApiException { | ||
return ResponseData.success(iAutomationRobotService.getRobotsByResourceId(resourceId)); | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...tion/src/main/java/com/apitable/automation/controller/AutomationRunHistoryController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* APITable <https://github.com/apitable/apitable> | ||
* Copyright (C) 2022 APITable Ltd. <https://apitable.com> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.apitable.automation.controller; | ||
|
||
import com.apitable.automation.model.AutomationRunHistoryRo; | ||
import com.apitable.automation.service.IAutomationRunHistoryService; | ||
import com.apitable.core.support.ResponseData; | ||
import com.apitable.databusclient.ApiException; | ||
import com.apitable.shared.component.scanner.annotation.ApiResource; | ||
import com.apitable.shared.component.scanner.annotation.PostResource; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import javax.annotation.Resource; | ||
import javax.validation.Valid; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
/** | ||
* Automation run history controller. | ||
*/ | ||
@RestController | ||
@Tag(name = "Authorization related interface") | ||
@ApiResource(path = {"/automation/run-history"}) | ||
@Slf4j | ||
public class AutomationRunHistoryController { | ||
|
||
@Resource | ||
private IAutomationRunHistoryService iAutomationRunHistoryService; | ||
|
||
/** | ||
* Get automation run history. | ||
* | ||
* @param query query object | ||
* @return {@link ResponseData} | ||
*/ | ||
@PostResource(path = "/", requiredPermission = false) | ||
@Operation(summary = "Get automation run history") | ||
public ResponseData<Void> getRunHistory(@Valid final AutomationRunHistoryRo query) | ||
throws ApiException { | ||
iAutomationRunHistoryService.getRobotRunHistory(query.getRobotId()); | ||
return ResponseData.success(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.