{"id":36706272,"url":"https://github.com/wuda0112/foundation","last_synced_at":"2026-01-12T11:42:59.805Z","repository":{"id":50447167,"uuid":"263061164","full_name":"wuda0112/foundation","owner":"wuda0112","description":"Java中台项目，电商中台项目，CMS中台项目。建房子需要打地基，软件开发也一样，优秀的基础设施才能支撑复杂的业务","archived":false,"fork":false,"pushed_at":"2022-11-16T01:55:07.000Z","size":8450,"stargazers_count":44,"open_issues_count":3,"forks_count":35,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-04T07:42:44.899Z","etag":null,"topics":["cms","db-design","java-ecommerce-system"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wuda0112.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-11T14:09:33.000Z","updated_at":"2025-06-16T07:56:08.000Z","dependencies_parsed_at":"2022-08-12T21:21:23.474Z","dependency_job_id":null,"html_url":"https://github.com/wuda0112/foundation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wuda0112/foundation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuda0112%2Ffoundation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuda0112%2Ffoundation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuda0112%2Ffoundation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuda0112%2Ffoundation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wuda0112","download_url":"https://codeload.github.com/wuda0112/foundation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuda0112%2Ffoundation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cms","db-design","java-ecommerce-system"],"created_at":"2026-01-12T11:42:59.745Z","updated_at":"2026-01-12T11:42:59.788Z","avatar_url":"https://github.com/wuda0112.png","language":"Java","readme":"\n\n### ---Java中台项目，Web开发也能面向对象编程，拒绝面条代码。---\n\n# 数据库设计\n- 目前已经有54个表\n\n- [数据库设计文档](https://github.com/wuda0112/foundation/wiki/DB-index)\n- [数据库源文件 DB-Design.mwb ](https://github.com/wuda0112/foundation/blob/master/DB-Design.mwb)\n\n- 使用 **MySQL Workbench** 打开\n\n持续更新中......\n\n# 系统设计文档\n- [系统文档源文件 System-Design.mm](https://github.com/wuda0112/foundation/blob/master/System-Design.mm)\n\n- 使用**FreeMind**打开\n\n包含数据库设计文档，系统约束说明，专有名词说明等等，持续更新中......\n\n# wiki\n[quick start](https://github.com/wuda0112/foundation/wiki)\n\n# 模块简介\n- foundation-lang： 定义了很多工具类，常用的与业务无关的基础类，比如，[树形结构](https://github.com/wuda0112/foundation/tree/master/foundation-lang/src/main/java/com/wuda/foundation/lang/tree/)，[Snowflake唯一ID生成器](https://github.com/wuda0112/foundation/blob/master/foundation-lang/src/main/java/com/wuda/foundation/lang/keygen/KeyGeneratorSnowflake.java)等等。没有数据库相关的维护。\n- foundation-jooq: 使用[jooq](https://www.jooq.org/)作为ORM框架，因此，在这个模块中封装了很多逻辑，并且代码生成也在这个模块中\n- foundation-core: 所有的数据库管理都在这个模块中，根据数据库的Scheme分类，对应相应的程序Package，包括\n- - [commons](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/commons)： 用于维护与业务无关，通用的数据库表，比如维护email,phone,通用的实体属性等\n- - [property](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/commons/property): 通用的属性，比如电商系统中，商品的属性\n- - [DataType](https://github.com/wuda0112/foundation/tree/master/foundation-lang/src/main/java/com/wuda/foundation/lang/datatype): 自定义数据类型，和Property结合，可以定义Property的数据类型\n- - [item](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/item): 维护Item模块，Item可以表示很多概念，比如最常见的商品\n- - [notification](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/notification): 通知体系\n- - [security](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/security)： 维护权限控制体系\n- - [menu](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/security/menu): 角色的菜单权限，可以实现类似 Windows 的文件系统的权限分配效果\n- - [store](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/store): 维护店铺模块\n- - [user](https://github.com/wuda0112/foundation/tree/master/foundation-core/src/main/java/com/wuda/foundation/core/user)： 维护用户体系，最主要的就是维护数据库表的完整性\n- - 持续更新中......\n\n# 推荐的优势\n- 数据库中台项目，不耦合业务，基于这个中台可以发展出各种业务\n- 像使用开源组件一样，100%面向对象编程，绝对不是dao,mapper这样一路下来的面条代码\n- 数据库设计很抽象，不为特点业务开发，比如像权限体系，很多都是user-role这样的模式，而我们这里使用subject,target,action等这样的抽象概念，参考[JAAS](https://docs.oracle.com/javase/7/docs/technotes/guides/security/jaas/JAASRefGuide.html)，几乎可以表示所有的权限体系。\n- 丰富的文档，注释\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuda0112%2Ffoundation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwuda0112%2Ffoundation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuda0112%2Ffoundation/lists"}