-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # README.md # magic-api-spring-boot-starter/pom.xml # magic-api/pom.xml # magic-api/src/main/java/org/ssssssss/magicapi/controller/MagicGroupController.java # magic-api/src/main/java/org/ssssssss/magicapi/model/JsonCodeConstants.java # magic-api/src/main/java/org/ssssssss/magicapi/provider/impl/MagicDatabaseBackupService.java # magic-editor/pom.xml # magic-editor/src/console/package.json # magic-editor/src/console/src/scripts/parsing/ast.js # magic-editor/src/console/src/scripts/parsing/parser.js # pom.xml
- Loading branch information
Showing
395 changed files
with
8,240 additions
and
30,831 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
> 0.7.x版本之后仅需要一张表两个字段,建表语句如下: | ||
```sql | ||
CREATE TABLE `magic_api_file` ( | ||
CREATE TABLE `magic_api_file_v2` ( | ||
`file_path` varchar(512) NOT NULL, | ||
`file_content` mediumtext, | ||
PRIMARY KEY (`file_path`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 | ||
``` | ||
### 备份表建表语句 | ||
```sql | ||
CREATE TABLE `magic_api_backup` ( | ||
CREATE TABLE `magic_backup_record_v2` ( | ||
`id` varchar(32) NOT NULL COMMENT '原对象ID', | ||
`create_date` bigint(13) NOT NULL COMMENT '备份时间', | ||
`tag` varchar(32) DEFAULT NULL COMMENT '标签', | ||
`type` varchar(32) DEFAULT NULL COMMENT '类型', | ||
`name` varchar(64) DEFAULT NULL COMMENT '原名称', | ||
`content` mediumtext COMMENT '备份内容', | ||
`content` blob COMMENT '备份内容', | ||
`create_by` varchar(64) DEFAULT NULL COMMENT '操作人', | ||
PRIMARY KEY (`id`,`create_date`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 | ||
``` | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.ssssssss</groupId> | ||
<artifactId>magic-api-plugins</artifactId> | ||
<version>2.0.0-beta.1</version> | ||
</parent> | ||
<artifactId>magic-api-plugin-cluster</artifactId> | ||
<packaging>jar</packaging> | ||
<name>magic-api-plugin-cluster</name> | ||
<description>magic-api-plugin-cluster</description> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.ssssssss</groupId> | ||
<artifactId>magic-api-plugin-redis</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-configuration-processor</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
</dependencies> | ||
</project> |
28 changes: 28 additions & 0 deletions
28
...s/magic-api-plugin-cluster/src/main/java/org/ssssssss/magicapi/cluster/ClusterConfig.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,28 @@ | ||
package org.ssssssss.magicapi.cluster; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* 集群配置 | ||
* | ||
* @author mxd | ||
* @since 1.2.0 | ||
*/ | ||
@ConfigurationProperties(prefix = "magic-api.cluster") | ||
public class ClusterConfig { | ||
|
||
/** | ||
* redis 通道 | ||
*/ | ||
private String channel = "magic-api:notify:channel"; | ||
|
||
public String getChannel() { | ||
return channel; | ||
} | ||
|
||
public void setChannel(String channel) { | ||
this.channel = channel; | ||
} | ||
} |
60 changes: 25 additions & 35 deletions
60
.../starter/MagicRedisAutoConfiguration.java → ...pi/cluster/MagicClusterConfiguration.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
Oops, something went wrong.