Skip to content

Commit

Permalink
docs-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Sep 19, 2024
1 parent e6b20d1 commit 6229bd4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* [x] 主体框架搭建
* [x] 同步数据库访问接入
* [ ] 异步数据库访问接入
* [ ] 标准增删改查能力接入
* [x] 标准增删改查能力接入
- [x] 数据新增
- [x] 数据修改
- [x] 数据删除
Expand All @@ -29,14 +29,13 @@
- [x] 数据查询-多表关联
- [x] 数据查询-主子表关联
- [x] 数据查询-树形构建
- [x] 数据脱敏
* [ ] 扩展能力接入
- [x] 数据查询-数据脱敏
* [x] 扩展能力接入
- [x] 代码内创建表
- [x] 软删除
- [x] 通用业务字段自动创建
- [x] 数据加密
- [x] 数据签名(数据完整性校验)
- [ ] 数据归档
- [x] 数据签名(数据完整性校验)
- [x] 内部数据变动广播
* [ ] UI渲染接口
- [ ] 列表配置
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ allprojects {

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"

maxHeapSize = '2g'
}

compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.ximatai.muyun.ability;

import jakarta.annotation.PostConstruct;
import jakarta.transaction.Transactional;
import net.ximatai.muyun.database.IDatabaseAccess;
import net.ximatai.muyun.database.builder.TableBuilder;
import net.ximatai.muyun.database.builder.TableWrapper;
Expand All @@ -9,24 +10,26 @@ public interface ITableCreateAbility {

TableWrapper fitOutTable();

@Transactional
@PostConstruct
default void create(IDatabaseAccess databaseAccess) {
TableWrapper wrapper = fitOutTable();
if (this instanceof ICommonBusinessAbility commonBusinessAbility) {
commonBusinessAbility.getCommonColumns().forEach(wrapper::addColumn);
if (this instanceof ICommonBusinessAbility ability) {
ability.getCommonColumns().forEach(wrapper::addColumn);
}
if (this instanceof ISoftDeleteAbility softDeleteAbility) {
wrapper.addColumn(softDeleteAbility.getSoftDeleteColumn());
if (this instanceof ISoftDeleteAbility ability) {
wrapper.addColumn(ability.getSoftDeleteColumn());
}
if (this instanceof ITreeAbility treeAbility) {
wrapper.addColumn(treeAbility.getParentKeyColumn());
if (this instanceof ITreeAbility ability) {
wrapper.addColumn(ability.getParentKeyColumn());
}
if (this instanceof ISortAbility sortAbility) {
wrapper.addColumn(sortAbility.getSortColumn().getColumn());
if (this instanceof ISortAbility ability) {
wrapper.addColumn(ability.getSortColumn().getColumn());
}
if (this instanceof ISecurityAbility securityAbility) {
securityAbility.getSignColumns().forEach(wrapper::addColumn);
if (this instanceof ISecurityAbility ability) {
ability.getSignColumns().forEach(wrapper::addColumn);
}

new TableBuilder(databaseAccess).build(wrapper);
}
}
Expand Down

0 comments on commit 6229bd4

Please sign in to comment.