-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
633 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# TO DO List | ||
|
||
|
||
## Absorb Different Project | ||
|
||
- [ihub-lib](https://github.com/ihub-pub/libs.git)SSO Module | ||
|
||
|
||
## DAO Framework | ||
|
||
- [doma-framework](https://github.com/domaframework/doma.git) |
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
14 changes: 14 additions & 0 deletions
14
components/fluent-openapi/src/test/java/io/fluent/swagger/SwaggerParserTest.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,14 @@ | ||
package io.fluent.swagger; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class SwaggerParserTest { | ||
SwaggerParser parser = new SwaggerParser(); | ||
|
||
@Test | ||
public void testParse() { | ||
|
||
} | ||
} |
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
1 change: 0 additions & 1 deletion
1
fluent-apps/qaserver/src/main/java/io/fluentqa/generator/package-info.java
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
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
File renamed without changes.
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
88 changes: 88 additions & 0 deletions
88
fluent-erupts/fluent-generator/src/main/java/io/fluentqa/generator/model/GeneratorClass.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,88 @@ | ||
package io.fluentqa.generator.model; | ||
|
||
import freemarker.ext.beans.BeansWrapper; | ||
import freemarker.template.TemplateHashModel; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.SneakyThrows; | ||
import xyz.erupt.annotation.Erupt; | ||
import xyz.erupt.annotation.EruptField; | ||
import xyz.erupt.annotation.EruptI18n; | ||
import xyz.erupt.annotation.constant.AnnotationConst; | ||
import xyz.erupt.annotation.sub_erupt.RowOperation; | ||
import xyz.erupt.annotation.sub_erupt.Tpl; | ||
import xyz.erupt.annotation.sub_field.Edit; | ||
import xyz.erupt.annotation.sub_field.EditType; | ||
import xyz.erupt.annotation.sub_field.View; | ||
import xyz.erupt.annotation.sub_field.sub_edit.Search; | ||
import xyz.erupt.jpa.model.MetaModel; | ||
|
||
import javax.persistence.*; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
@EruptI18n | ||
@Erupt(name = "生成Erupt代码", | ||
rowOperation = @RowOperation( | ||
title = "代码预览", icon = "fa fa-code", | ||
mode = RowOperation.Mode.SINGLE, type = RowOperation.Type.TPL, | ||
tpl = @Tpl(path = "generation/erupt/erupt-code-skeleton.ftl", | ||
engine = Tpl.Engine.FreeMarker, | ||
tplHandler = GeneratorClass.class) | ||
) | ||
) | ||
@Table(name = "generator_class") | ||
@Entity | ||
@Getter | ||
@Setter | ||
public class GeneratorClass extends MetaModel implements Tpl.TplHandler { | ||
|
||
@EruptField( | ||
views = @View(title = "名称"), | ||
edit = @Edit(title = "名称", notNull = true, search = @Search(vague = true)) | ||
) | ||
private String name; | ||
|
||
@EruptField( | ||
views = @View(title = "实体类名"), | ||
edit = @Edit(title = "实体类名", notNull = true, search = @Search(vague = true)) | ||
) | ||
private String className; | ||
|
||
@EruptField( | ||
views = @View(title = "表名"), | ||
edit = @Edit(title = "表名", notNull = true, search = @Search(vague = true)) | ||
) | ||
private String tableName; | ||
|
||
@Column(length = AnnotationConst.REMARK_LENGTH) | ||
@EruptField( | ||
views = @View(title = "简介"), | ||
edit = @Edit(title = "简介", type = EditType.TEXTAREA) | ||
) | ||
private String remark; | ||
|
||
// @EruptField( | ||
// views = @View(title = "维护"), | ||
// edit = @Edit(title = "自动维护创建字段与更新字段") | ||
// ) | ||
// private Boolean createField; | ||
|
||
|
||
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) | ||
@JoinColumn(name = "class_id") | ||
@OrderBy("sort") | ||
@EruptField( | ||
edit = @Edit(title = "字段管理", type = EditType.TAB_TABLE_ADD) | ||
) | ||
private Set<GeneratorField> fields; | ||
|
||
@SneakyThrows | ||
@Override | ||
public void bindTplData(Map<String, Object> binding, String[] params) { | ||
TemplateHashModel staticModels = BeansWrapper.getDefaultInstance().getStaticModels(); | ||
TemplateHashModel fileStatics = (TemplateHashModel) staticModels.get(GeneratorType.class.getName()); | ||
binding.put(GeneratorType.class.getSimpleName(), fileStatics); | ||
} | ||
|
||
} |
Oops, something went wrong.