feat(issue-#155): rename plugin module to meta (#156)

* feat(issue-#155): rename  module plugin to meta

* feat: remove unused md file

* refactor: rename plugin module to meta

* fix: trigger document error

* fix: code checkstyle
This commit is contained in:
vran
2022-05-08 22:47:47 +08:00
committed by GitHub
parent f2c4de5bb1
commit bab82d43df
93 changed files with 201 additions and 182 deletions

View File

@@ -7,7 +7,7 @@ dependencies {
// internal module
implementation project(":common")
implementation project(":dao")
implementation project(":plugin")
implementation project(":meta")
// spring boot
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'

View File

@@ -7,6 +7,8 @@ import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.stream.Collectors;
@@ -62,6 +64,10 @@ public interface DocumentPojoConverter {
Integer tableDocumentId,
TriggerMeta meta);
default LocalDateTime toLocalDateTime(String dateTime) {
return LocalDateTime.parse(dateTime, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
}
default List<TableForeignKeyDocumentPojo> toForeignKeyPojo(Integer docId,
Integer tableMetaId,
List<ForeignKeyMeta> foreignKeys) {