forked from apitable/apitable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: wangkailang <[email protected]> Co-authored-by: Caedman Ziwen Lan <[email protected]> Co-authored-by: Kilian <[email protected]> Co-authored-by: Zoe <[email protected]> Co-authored-by: chalme <[email protected]> Co-authored-by: Aria <[email protected]> Co-authored-by: XuKecheng <[email protected]> Co-authored-by: xukecheng <[email protected]> Co-authored-by: Chambers <[email protected]> Co-authored-by: ziqiang <[email protected]> Co-authored-by: Evie Wanmei Huang <[email protected]> Co-authored-by: jeremyyin <[email protected]> Co-authored-by: William Chan <[email protected]> Co-authored-by: wangkailang <[email protected]> Co-authored-by: yanmingZhang <[email protected]> Co-authored-by: Jover <[email protected]> Co-authored-by: paylm penglong feng <[email protected]> Co-authored-by: Caedman Ziwen Lan <[email protected]>
- Loading branch information
1 parent
69aeb70
commit 5002ce3
Showing
165 changed files
with
3,318 additions
and
1,097 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
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
126 changes: 126 additions & 0 deletions
126
.../application/src/main/java/com/apitable/automation/entity/AutomationActionTypeEntity.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,126 @@ | ||
/* | ||
* APITable Ltd. <[email protected]> | ||
* Copyright (C) 2022 APITable Ltd. <https://apitable.com> | ||
* | ||
* This code file is part of APITable Enterprise Edition. | ||
* | ||
* It is subject to the APITable Commercial License and conditional on having a fully paid-up license from APITable. | ||
* | ||
* Access to this code file or other code files in this `enterprise` directory and its subdirectories does not constitute permission to use this code or APITable Enterprise Edition features. | ||
* | ||
* Unless otherwise noted, all files Copyright © 2022 APITable Ltd. | ||
* | ||
* For purchase of APITable Enterprise Edition license, please contact <[email protected]>. | ||
*/ | ||
|
||
package com.apitable.automation.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.FieldFill; | ||
import com.baomidou.mybatisplus.annotation.IdType; | ||
import com.baomidou.mybatisplus.annotation.TableField; | ||
import com.baomidou.mybatisplus.annotation.TableId; | ||
import com.baomidou.mybatisplus.annotation.TableLogic; | ||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import java.io.Serializable; | ||
import java.time.LocalDateTime; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
|
||
/** | ||
* <p> | ||
* Automation - Action Type Table. | ||
* </p> | ||
* | ||
* @author Mybatis Generator Tool | ||
*/ | ||
@Data | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Accessors(chain = true) | ||
@EqualsAndHashCode | ||
@TableName(keepGlobalPrefix = true, value = "automation_action_type") | ||
public class AutomationActionTypeEntity implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Primary Key. | ||
*/ | ||
@TableId(value = "id", type = IdType.ASSIGN_ID) | ||
private Long id; | ||
|
||
/** | ||
* Service ID (link#xxxx_automation_service#service_id). | ||
*/ | ||
private String serviceId; | ||
|
||
/** | ||
* Custom action prototype ID. | ||
*/ | ||
private String actionTypeId; | ||
|
||
/** | ||
* Name. | ||
*/ | ||
private String name; | ||
|
||
/** | ||
* Description. | ||
*/ | ||
private String description; | ||
|
||
/** | ||
* Input JSON normal form. | ||
*/ | ||
private String inputJsonSchema; | ||
|
||
/** | ||
* Output JSON normal form. | ||
*/ | ||
private String outputJsonSchema; | ||
|
||
/** | ||
* Call interface. | ||
*/ | ||
private String endpoint; | ||
|
||
/** | ||
* Internationalized Language Pack. | ||
*/ | ||
private String i18n; | ||
|
||
/** | ||
* Delete Tag(0: No, 1: Yes). | ||
*/ | ||
@TableLogic | ||
private Integer isDeleted; | ||
|
||
/** | ||
* Creator. | ||
*/ | ||
@TableField(fill = FieldFill.INSERT) | ||
private Long createdBy; | ||
|
||
/** | ||
* Last Update By. | ||
*/ | ||
@TableField(fill = FieldFill.INSERT_UPDATE) | ||
private Long updatedBy; | ||
|
||
/** | ||
* Create Time. | ||
*/ | ||
private LocalDateTime createdAt; | ||
|
||
/** | ||
* Update Time. | ||
*/ | ||
private LocalDateTime updatedAt; | ||
|
||
|
||
} |
87 changes: 87 additions & 0 deletions
87
.../application/src/main/java/com/apitable/automation/entity/AutomationRunHistoryEntity.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,87 @@ | ||
/* | ||
* 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.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.IdType; | ||
import com.baomidou.mybatisplus.annotation.TableId; | ||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import java.io.Serializable; | ||
import java.math.BigInteger; | ||
import java.time.LocalDateTime; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
|
||
/** | ||
* <p> | ||
* Automation - Run history table. | ||
* </p> | ||
* | ||
* @author Mybatis Generator Tool | ||
*/ | ||
@Data | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Accessors(chain = true) | ||
@EqualsAndHashCode | ||
@TableName(keepGlobalPrefix = true, value = "automation_run_history") | ||
public class AutomationRunHistoryEntity implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Primary Key. | ||
*/ | ||
@TableId(value = "id", type = IdType.ASSIGN_ID) | ||
private BigInteger id; | ||
|
||
/** | ||
* Task ID. | ||
*/ | ||
private String taskId; | ||
|
||
/** | ||
* Custom Robot ID. | ||
*/ | ||
private String robotId; | ||
|
||
/** | ||
* Space ID. | ||
*/ | ||
private String spaceId; | ||
|
||
/** | ||
* Running status (0: Running, 1: Success, 2: Failure). | ||
*/ | ||
private Integer status; | ||
|
||
/** | ||
* Run Context Details. | ||
*/ | ||
private String data; | ||
|
||
/** | ||
* Create Time. | ||
*/ | ||
private LocalDateTime createdAt; | ||
} |
41 changes: 41 additions & 0 deletions
41
...-server/application/src/main/java/com/apitable/automation/enums/AutomationActionType.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,41 @@ | ||
/* | ||
* 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.enums; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* automation action type. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public enum AutomationActionType { | ||
|
||
SEND_MAIL("sendMail"), | ||
|
||
SEND_REQUEST("sendRequest"), | ||
|
||
|
||
; | ||
|
||
|
||
private final String type; | ||
} |
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
47 changes: 47 additions & 0 deletions
47
.../application/src/main/java/com/apitable/automation/mapper/AutomationActionTypeMapper.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,47 @@ | ||
/* | ||
* 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.mapper; | ||
|
||
import com.apitable.automation.entity.AutomationActionTypeEntity; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import org.apache.ibatis.annotations.Param; | ||
|
||
/** | ||
* action type mapping. | ||
*/ | ||
public interface AutomationActionTypeMapper extends BaseMapper<AutomationActionTypeEntity> { | ||
|
||
/** | ||
* Get action type by endpoint. | ||
* | ||
* @param endpoint invocation interface | ||
* @return action type | ||
*/ | ||
String getActionTypeIdByEndpoint(@Param("endpoint") String endpoint); | ||
|
||
Long selectIdByActionTypeId(@Param("actionTypeId") String actionTypeId); | ||
|
||
/** | ||
* query endpoint. | ||
* | ||
* @param actionTypeId action type id | ||
* @return endpoint | ||
*/ | ||
String selectEndpointByActionTypeId(@Param("actionTypeId") String actionTypeId); | ||
} |
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.