midway-fatcms 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +391 -351
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,407 +1,447 @@
1
1
  # Midway FatCMS
2
2
 
3
- **企业级低代码/零代码开发平台**
4
-
5
- 基于 Midway.js 框架的多租户 SaaS 低代码平台,提供 API 网关、CRUD-Pro 引擎、工作流、文档管理等企业级功能。
6
-
7
- ## 项目简介
8
-
9
- Midway FatCMS 是一个功能完整的企业级低代码开发平台,旨在通过配置化的方式快速构建企业应用系统。系统核心特性包括:
10
-
11
- - **零代码 CRUD 开发**:通过配置自动生成 CRUD 接口
12
- - **动态 API 管理**:支持 SQL 查询、沙箱脚本、自定义代码三种 API 类型
13
- - **API 网关与代理**:反向代理、负载均衡、流量控制
14
- - **多租户架构**:基于域名的租户隔离,支持 SaaS 部署
15
- - **工作流引擎**:灵活的业务流程管理
16
- - **文档管理系统**:支持文档库、版本控制、权限管理
17
- - **文件服务**:OSS 对接、上传下载、预览管理
18
-
19
- ## 核心功能
20
-
21
- ### 1. CRUD-Pro 引擎
22
-
23
- **智能 CRUD 生成引擎**,提供配置化的数据库操作能力:
24
-
25
- - **标准化 CRUD**:基于表配置自动生成增删改查接口
26
- - **复杂查询支持**:分页、排序、筛选、关联查询
27
- - **字段级权限**:支持字段可见性、只读、必填等控制
28
- - **数据验证**:内置 20+ 种验证器(邮箱、手机号、日期等)
29
- - **关联关系**:自动处理一对一、一对多、多对多关系
30
- - **软删除**:支持逻辑删除和物理删除
31
- - **审计日志**:自动记录创建人、修改人、时间戳
32
- - **多数据库支持**:MySQL、PostgreSQL、SQL Server
33
-
34
- **应用场景**:
35
- - 快速搭建后台管理系统
36
- - 数据管理平台
37
- - 报表查询系统
38
- - 业务配置中心
39
-
40
- ### 2. 动态 API 管理(Any API)
41
-
42
- **三种 API 创建方式**,满足不同复杂度需求:
43
-
44
- #### 2.1 SQL 查询 API
45
- - 直接编写 SQL,自动转换为 REST API
46
- - 支持参数化查询、防 SQL 注入
47
- - 适用于复杂报表、数据分析
48
-
49
- #### 2.2 沙箱脚本 API
50
- - 使用 Node.js VM 沙箱执行自定义代码
51
- - 提供安全的运行环境
52
- - 内置工具库(axios、lodash、moment 等)
53
- - 访问数据库、Redis、OSS 等资源
54
-
55
- #### 2.3 自定义代码 API
56
- - 完全自定义的业务逻辑
57
- - 类似 Serverless Function
58
- - 热更新,无需重启服务
59
-
60
- **安全控制**:
61
- - 权限验证(登录、角色、功能点)
62
- - 限流控制(令牌桶算法)
63
- - 服务降级开关
64
- - 超时控制
65
- - IP 黑白名单
66
-
67
- **应用场景**:
68
- - 快速开发业务接口
69
- - 数据聚合 API
70
- - 第三方集成
71
- - 微服务编排
72
-
73
- ### 3. API 网关与代理
74
-
75
- **企业级 API 网关**,提供完整的代理转发能力:
76
-
77
- #### 负载均衡策略
78
- - 轮询(Round Robin)
79
- - 加权轮询(Weighted Round Robin)
80
- - 随机(Random)
81
- - 加权随机(Weighted Random)
82
- - IP Hash(同一 IP 固定路由)
83
- - 用户 Hash(同一用户固定路由)
84
- - 会话 Hash(同一会话固定路由)
85
-
86
- #### 流量控制
87
- - 请求限流
88
- - 超时控制
89
- - 重试机制
90
- - 熔断降级
91
-
92
- #### 安全特性
93
- - 真实 IP 透传
94
- - 用户上下文传递
95
- - Host/Origin 修改
96
- - 请求/响应头控制
97
-
98
- **应用场景**:
99
- - 微服务网关
100
- - 灰度发布
101
- - A/B 测试
102
- - 流量分发
103
- - 服务聚合
104
-
105
- ### 4. 多租户架构
106
-
107
- **工作台(Workbench)系统**,实现完整的多租户隔离:
108
-
109
- #### 租户隔离机制
110
- - **域名识别**:根据请求域名自动识别租户
111
- - **数据隔离**:租户数据完全隔离
112
- - **权限隔离**:用户、角色、权限独立管理
113
- - **资源隔离**:文件、配置、应用独立
114
-
115
- #### 灵活配置
116
- - 支持主域名 + 2 个备用域名
117
- - 通配符域名支持
118
- - 租户模板机制
119
- - 个性化配置
120
-
121
- **应用场景**:
122
- - SaaS 平台
123
- - 多品牌运营
124
- - 集团企业
125
- - 白标产品
126
-
127
- ### 5. 工作流引擎
128
-
129
- **灵活的业务流程管理**:
130
-
131
- - 流程定义与配置
132
- - 流程实例管理
133
- - 任务分配与审批
134
- - 流程状态跟踪
135
- - 流转记录查询
136
-
137
- **应用场景**:
138
- - 审批流程
139
- - 业务流转
140
- - 状态机管理
141
-
142
- ### 6. 文档管理系统
143
-
144
- **企业级文档管理**:
145
-
146
- - **文档库管理**:支持多个文档库
147
- - **目录结构**:树形目录组织
148
- - **版本控制**:文档版本管理
149
- - **访问统计**:PV/UV 统计(IP 去重)
150
- - **权限控制**:文档级权限管理
151
-
152
- **应用场景**:
153
- - API 文档
154
- - 产品文档
155
- - 知识库
156
- - 帮助中心
157
-
158
- ### 7. 文件服务
159
-
160
- **完整的文件管理能力**:
161
-
162
- - **上传下载**:支持单文件、多文件上传
163
- - **存储管理**:OSS 对接(公有桶、私有桶)
164
- - **文件预览**:图片、PDF、Office 文档
165
- - **访问控制**:临时链接、权限验证
166
- - **分类管理**:文件分类、标签
167
-
168
- ### 8. 系统管理
169
-
170
- #### 用户权限管理
171
- - 用户账号管理
172
- - 角色管理
173
- - 功能点管理
174
- - 权限分配
175
-
176
- #### 应用管理
177
- - 应用列表
178
- - 应用页面管理
179
- - 菜单管理
180
- - 低代码模板
181
-
182
- #### 系统配置
183
- - 数据字典
184
- - 系统参数
185
- - 枚举管理
186
- - 定时任务
187
-
188
- #### 监控运维
189
- - 访问统计
190
- - 操作日志
191
- - 系统信息
192
- - 部署管理
193
-
194
- ## 技术架构
195
-
196
- ### 技术栈
197
-
198
- **后端框架**
199
- - Midway.js 3.x(企业级 Node.js 框架)
200
- - Koa(Web 框架)
201
- - TypeScript(类型安全)
202
-
203
- **数据存储**
204
- - MySQL 2(主数据库)
205
- - PostgreSQL 8(可选)
206
- - SQL Server 11(可选)
207
- - Redis(缓存、锁、会话)
208
-
209
- **文件存储**
210
- - 阿里云 OSS
211
- - 兼容 S3 协议的对象存储
212
-
213
- **工具库**
214
- - Lodash(工具函数)
215
- - Moment(日期处理)
216
- - Axios(HTTP 客户端)
217
- - EJS(模板引擎)
218
- - Nodemailer(邮件发送)
219
- - LRU Cache(内存缓存)
220
-
221
- ### 核心中间件
222
-
223
- #### 全局中间件
224
- - **用户会话管理**:登录状态、权限信息
225
- - **多租户隔离**:域名识别、数据隔离
226
- - **事务管理**:自动事务控制
227
- - **日志追踪**:请求级日志
228
- - **响应格式化**:统一响应格式
229
- - **调试信息注入**:开发环境调试
230
- - **真实 IP 获取**:代理环境下获取真实 IP
231
-
232
- #### 权限中间件
233
- - **登录检查**(checkLogin)
234
- - **角色检查**(checkRole)
235
- - **权限检查**(checkPermission)
236
-
237
- #### 安全中间件
238
- - **黑名单拦截**(Forbidden):防止路径遍历、敏感文件访问
239
- - **Redis 分布式锁**(RedisLock):防止并发冲突
240
- - **Redis 缓存**(RedisCache):接口级缓存
241
-
242
- #### 事务中间件
243
- - **自动事务**(Transaction):开启、提交、回滚
244
-
245
- ### 安全特性
246
-
247
- #### 访问控制
248
- - JWT Token 认证
249
- - 会话管理
250
- - 超级管理员机制
251
- - 细粒度权限控制
252
-
253
- #### 攻击防护
254
- - SQL 注入防护
255
- - XSS 防护
256
- - CSRF Token
257
- - 路径遍历防护
258
- - User-Agent 黑名单(扫描工具检测)
259
- - IP 限流
260
-
261
- #### 数据安全
262
- - AES-128-CBC 加密
263
- - 非对称加密支持
264
- - 敏感字段加密存储
265
- - 密码加盐存储
266
-
267
- ## 应用场景
268
-
269
- ### 1. 企业后台系统
270
- - 快速搭建管理后台
271
- - 业务系统配置中心
272
- - 内部工具平台
273
-
274
- ### 2. SaaS 平台
275
- - 多租户应用
276
- - 白标产品
277
- - 行业解决方案
278
-
279
- ### 3. API 平台
280
- - API 管理与网关
281
- - 数据开放平台
282
- - 微服务聚合
283
-
284
- ### 4. 低代码平台
285
- - 业务系统快速开发
286
- - 表单驱动应用
287
- - 数据分析平台
288
-
289
- ### 5. 内容管理系统
290
- - 文档管理
291
- - 知识库
292
- - 内容发布平台
293
-
294
- ## 快速开始
295
-
296
- ### 环境要求
3
+ <p align="center">
4
+ <strong>🚀 Enterprise-Grade Low-Code / Zero-Code Development Platform</strong>
5
+ </p>
6
+
7
+ <p align="center">
8
+ Build production-ready enterprise applications in minutes, not months.
9
+ </p>
10
+
11
+ ---
12
+
13
+ ## Why Midway FatCMS?
14
+
15
+ Stop writing repetitive CRUD boilerplate. Stop struggling with API versioning. Stop worrying about multi-tenant data isolation.
16
+
17
+ **Midway FatCMS** is a battle-tested, enterprise-grade low-code platform that transforms weeks of development into hours of configuration. Built on top of the robust Midway.js framework, it empowers teams to ship faster without sacrificing security, scalability, or control.
18
+
19
+ ### The Problem We Solve
20
+
21
+ | Traditional Development | With Midway FatCMS |
22
+ |------------------------|-------------------|
23
+ | 2 weeks to build a CRUD module | 15 minutes of configuration |
24
+ | Manual API documentation | Auto-generated, always in sync |
25
+ | Complex multi-tenant logic | Built-in tenant isolation |
26
+ | Reinventing the wheel | Production-ready building blocks |
27
+
28
+ ---
29
+
30
+ ## 🎯 What You Get
31
+
32
+ ### 🏗️ CRUD-Pro Engine — Zero-Code Data Operations
33
+
34
+ Transform database tables into fully functional REST APIs with zero code.
35
+
36
+ **Features:**
37
+ - ⚡ **Instant CRUD** — Auto-generated Create, Read, Update, Delete endpoints
38
+ - 🔍 **Advanced Querying** — Pagination, sorting, filtering, and joins out of the box
39
+ - 🔐 **Field-Level Security** — Granular control over visibility, read-only, and mandatory fields
40
+ - **Built-in Validation** 20+ validators (email, phone, date, regex, etc.)
41
+ - 🔗 **Smart Relations** — Automatic handling of one-to-one, one-to-many, many-to-many
42
+ - 🗑️ **Soft Delete** — Logical deletion with recovery support
43
+ - 📊 **Audit Trail** — Automatic tracking of creators, modifiers, and timestamps
44
+ - 🌐 **Multi-Database** — MySQL, PostgreSQL, SQL Server support
45
+
46
+ **Perfect for:**
47
+ - Admin dashboards and back-office systems
48
+ - Data management platforms
49
+ - Reporting and analytics systems
50
+ - Business configuration centers
51
+
52
+ ---
53
+
54
+ ### 🌟 Any API — Three Ways to Build APIs
55
+
56
+ Whether you need a simple query or complex business logic, we've got you covered.
57
+
58
+ #### 1. SQL Query API
59
+ Write SQL, get REST. It's that simple.
60
+ - Native SQL with automatic parameter binding
61
+ - SQL injection protection built-in
62
+ - Ideal for complex reports and data analytics
63
+
64
+ #### 2. Sandbox Script API
65
+ Safe, sandboxed Node.js execution.
66
+ - Isolated VM environment for secure code execution
67
+ - Pre-loaded utilities (axios, lodash, moment)
68
+ - Direct access to database, Redis, and OSS
69
+
70
+ #### 3. Custom Code API
71
+ Full control when you need it.
72
+ - Serverless-like function deployment
73
+ - Hot-reload without service restart
74
+ - Complete business logic freedom
75
+
76
+ **Enterprise Security:**
77
+ - JWT authentication & role-based access control
78
+ - Token bucket rate limiting
79
+ - Circuit breaker & timeout protection
80
+ - IP whitelist/blacklist
81
+
82
+ **Perfect for:**
83
+ - Rapid API prototyping
84
+ - Data aggregation services
85
+ - Third-party integrations
86
+ - Microservice orchestration
87
+
88
+ ---
89
+
90
+ ### 🚪 API Gateway & Proxy — Enterprise-Grade Traffic Management
91
+
92
+ A full-featured API gateway that handles the complexity so you don't have to.
93
+
94
+ #### Load Balancing Strategies
95
+ - Round Robin
96
+ - Weighted Round Robin
97
+ - Random & Weighted Random
98
+ - IP Hash (sticky sessions by IP)
99
+ - User Hash (sticky sessions by user)
100
+ - Session Hash (sticky sessions by session)
101
+
102
+ #### Traffic Control
103
+ - Request rate limiting
104
+ - Configurable timeouts
105
+ - Automatic retry mechanisms
106
+ - Circuit breaker & fallback
107
+
108
+ #### Security & Context
109
+ - Real IP forwarding through proxies
110
+ - User context propagation
111
+ - Customizable headers (Host, Origin)
112
+ - Request/response header manipulation
113
+
114
+ **Perfect for:**
115
+ - Microservices gateway
116
+ - Canary deployments
117
+ - A/B testing
118
+ - Traffic splitting & aggregation
119
+
120
+ ---
121
+
122
+ ### 🏢 Multi-Tenant Architecture — True SaaS-Ready
123
+
124
+ Deploy once, serve unlimited customers. Complete tenant isolation without the complexity.
125
+
126
+ **Tenant Isolation:**
127
+ - **Domain Recognition** — Automatic tenant detection by domain
128
+ - **Data Separation** — Complete data isolation between tenants
129
+ - **Permission Boundaries** — Independent user, role, and permission management
130
+ - **Resource Isolation** — Files, configurations, and apps are tenant-scoped
131
+
132
+ **Flexible Configuration:**
133
+ - Primary domain + 2 backup domains per tenant
134
+ - Wildcard domain support
135
+ - Tenant templates for rapid onboarding
136
+ - Customizable tenant branding
137
+
138
+ **Perfect for:**
139
+ - SaaS platforms
140
+ - Multi-brand operations
141
+ - Enterprise groups
142
+ - White-label products
143
+
144
+ ---
145
+
146
+ ### 🔄 Workflow Engine — Automate Business Processes
147
+
148
+ Streamline approvals and business flows with a flexible workflow engine.
149
+
150
+ - Visual process definition
151
+ - Process instance tracking
152
+ - Task assignment and approval workflows
153
+ - Real-time status monitoring
154
+ - Historical flow records
155
+
156
+ **Perfect for:**
157
+ - Approval workflows (expenses, leaves, purchases)
158
+ - Business process automation
159
+ - State machine management
160
+
161
+ ---
162
+
163
+ ### 📚 Document Management System — Enterprise Knowledge Base
164
+
165
+ A complete document management solution with version control and analytics.
166
+
167
+ - **Document Libraries** — Multiple document repositories
168
+ - **Hierarchical Structure** — Tree-based organization
169
+ - **Version Control** — Full document versioning
170
+ - **Analytics** — PV/UV tracking with IP deduplication
171
+ - **Access Control** — Document-level permissions
172
+
173
+ **Perfect for:**
174
+ - API documentation
175
+ - Product documentation
176
+ - Internal knowledge bases
177
+ - Help centers
178
+
179
+ ---
180
+
181
+ ### 📁 File Service — Complete File Management
182
+
183
+ Enterprise file handling with cloud storage integration.
184
+
185
+ - **Upload & Download** — Single and batch file uploads
186
+ - **Cloud Storage** — Alibaba Cloud OSS integration (public & private buckets)
187
+ - **File Preview** — Images, PDFs, Office documents
188
+ - **Access Control** — Time-limited secure URLs
189
+ - **Organization** — Categories and tags
190
+
191
+ ---
192
+
193
+ ### ⚙️ System Management — Everything You Need
194
+
195
+ **User & Permissions:**
196
+ - User account management
197
+ - Role-based access control
198
+ - Feature-level permissions
199
+ - Permission allocation workflows
200
+
201
+ **Application Management:**
202
+ - Application registry
203
+ - Page management
204
+ - Menu configuration
205
+ - Low-code templates
206
+
207
+ **System Configuration:**
208
+ - Data dictionaries
209
+ - System parameters
210
+ - Enumeration management
211
+ - Scheduled tasks
212
+
213
+ **Monitoring & Operations:**
214
+ - Access statistics
215
+ - Operation logs
216
+ - System health info
217
+ - Deployment management
218
+
219
+ ---
220
+
221
+ ## 🛡️ Security First
222
+
223
+ We take security seriously. Built-in protection at every layer:
224
+
225
+ ### Access Control
226
+ - JWT Token authentication
227
+ - Session management with Redis
228
+ - Super admin mechanism
229
+ - Granular permission control
230
+
231
+ ### Attack Prevention
232
+ - SQL injection protection
233
+ - XSS protection
234
+ - CSRF token validation
235
+ - Path traversal prevention
236
+ - User-Agent blacklisting (scanner detection)
237
+ - IP-based rate limiting
238
+
239
+ ### Data Protection
240
+ - AES-128-CBC encryption
241
+ - Asymmetric encryption support
242
+ - Sensitive field encryption
243
+ - Salted password hashing
244
+
245
+ ---
246
+
247
+ ## 🚀 Quick Start
248
+
249
+ ### Prerequisites
297
250
 
298
251
  - Node.js >= 10
299
252
  - MySQL >= 5.7 / PostgreSQL >= 8 / SQL Server >= 11
300
253
  - Redis >= 3.0
301
254
 
302
- ### 安装依赖
255
+ ### Installation
303
256
 
304
257
  ```bash
258
+ # Clone the repository
259
+ git clone <repository-url>
260
+ cd midway-fatcms
261
+
262
+ # Install dependencies
305
263
  npm install
306
264
  ```
307
265
 
308
- ### 配置
266
+ ### Configuration
309
267
 
310
- 1. 配置数据库连接(`src/config/config.default.ts`)
311
- 2. 配置 Redis 连接
312
- 3. 配置 OSS(可选)
313
- 4. 配置工作台信息
268
+ 1. Configure database connection in `src/config/config.default.ts`
269
+ 2. Set up Redis connection
270
+ 3. Configure OSS (optional)
271
+ 4. Configure workbench information
314
272
 
315
- ### 数据库初始化
273
+ ### Database Setup
316
274
 
317
275
  ```sql
318
- -- 执行初始化 SQL
276
+ -- Run initialization SQL
319
277
  source ddl/2025-12-20.sql
320
278
  ```
321
279
 
322
- ### 启动服务
280
+ ### Start Development
323
281
 
324
282
  ```bash
325
- # 开发模式
283
+ # Development mode with hot reload
326
284
  npm run dev
327
285
 
328
- # 生产构建
286
+ # Build for production
329
287
  npm run build
330
288
 
331
- # 生产运行
289
+ # Start production server
332
290
  npm start
333
291
  ```
334
292
 
335
- ### 代码检查
293
+ ### Code Quality
336
294
 
337
295
  ```bash
338
- # 检查代码规范
296
+ # Check code style
339
297
  npm run lint
340
298
 
341
- # 自动修复
299
+ # Auto-fix issues
342
300
  npm run lint:fix
343
301
  ```
344
302
 
345
- ### 测试
303
+ ### Testing
346
304
 
347
305
  ```bash
348
- # 运行测试
306
+ # Run tests
349
307
  npm test
350
308
 
351
- # 测试覆盖率
309
+ # Generate coverage report
352
310
  npm run cov
353
311
  ```
354
312
 
355
- ## 工具接口
313
+ ---
356
314
 
357
- ### 加密工具
315
+ ## 🏛️ Architecture
358
316
 
359
- ```
360
- http://127.0.0.1:7002/ns/api/helpers/cryptoAes128CBC?input=123
361
- ```
317
+ ### Technology Stack
318
+
319
+ | Layer | Technology |
320
+ |-------|-----------|
321
+ | **Framework** | Midway.js 3.x (Enterprise Node.js) |
322
+ | **Web Server** | Koa |
323
+ | **Language** | TypeScript |
324
+ | **Database** | MySQL / PostgreSQL / SQL Server |
325
+ | **Cache** | Redis |
326
+ | **File Storage** | Alibaba Cloud OSS / S3-compatible |
327
+
328
+ ### Core Middleware
329
+
330
+ **Global Middleware:**
331
+ - User session management
332
+ - Multi-tenant isolation
333
+ - Transaction management
334
+ - Request-level logging
335
+ - Unified response formatting
336
+ - Real IP extraction
337
+
338
+ **Security Middleware:**
339
+ - Login verification (`checkLogin`)
340
+ - Role verification (`checkRole`)
341
+ - Permission verification (`checkPermission`)
342
+ - Path blacklist (`Forbidden`)
343
+ - Distributed locking (`RedisLock`)
344
+ - Response caching (`RedisCache`)
362
345
 
363
- ## 项目结构
346
+ ---
347
+
348
+ ## 📁 Project Structure
364
349
 
365
350
  ```
366
351
  midway-fatcms/
367
352
  ├── src/
368
- │ ├── config/ # 配置文件
369
- │ ├── controller/ # 控制器
370
- │ │ ├── base/ # 基础控制器
371
- │ │ ├── gateway/ # 网关接口
372
- │ │ ├── manage/ # 管理接口
373
- │ │ ├── myinfo/ # 个人信息
374
- │ │ └── render/ # 渲染接口
375
- │ ├── filter/ # 异常过滤器
376
- │ ├── libs/ # 核心库
377
- │ │ ├── crud-pro/ # CRUD-Pro 引擎
378
- │ │ ├── global-config/ # 全局配置
379
- │ │ └── utils/ # 工具函数
380
- │ ├── middleware/ # 中间件
381
- │ ├── models/ # 数据模型
382
- │ ├── schedule/ # 定时任务
383
- │ ├── service/ # 业务服务
384
- │ │ ├── anyapi/ # 动态 API
385
- │ │ ├── asyncTask/ # 异步任务
386
- │ │ ├── base/ # 基础服务
387
- │ │ ├── crudstd/ # CRUD 标准
388
- │ │ ├── curd/ # CRUD 服务
389
- │ │ ├── flow/ # 工作流
390
- │ │ └── proxyapi/ # 代理 API
391
- │ └── views/ # 视图模板
392
- ├── ddl/ # 数据库脚本
393
- ├── scripts/ # 脚本工具
394
- └── package.json # 项目配置
353
+ │ ├── config/ # Configuration files
354
+ │ ├── controller/ # Controllers
355
+ │ │ ├── base/ # Base controllers
356
+ │ │ ├── gateway/ # Gateway APIs
357
+ │ │ ├── manage/ # Management APIs
358
+ │ │ ├── myinfo/ # Personal info APIs
359
+ │ │ └── render/ # Rendering APIs
360
+ │ ├── filter/ # Exception filters
361
+ │ ├── libs/ # Core libraries
362
+ │ │ ├── crud-pro/ # CRUD-Pro engine
363
+ │ │ ├── global-config/ # Global configuration
364
+ │ │ └── utils/ # Utilities
365
+ │ ├── middleware/ # Middleware
366
+ │ ├── models/ # Data models
367
+ │ ├── schedule/ # Scheduled tasks
368
+ │ ├── service/ # Business services
369
+ │ │ ├── anyapi/ # Dynamic API
370
+ │ │ ├── asyncTask/ # Async tasks
371
+ │ │ ├── base/ # Base services
372
+ │ │ ├── crudstd/ # Standard CRUD
373
+ │ │ ├── curd/ # CRUD services
374
+ │ │ ├── flow/ # Workflow
375
+ │ │ └── proxyapi/ # Proxy API
376
+ │ └── views/ # View templates
377
+ ├── ddl/ # Database scripts
378
+ ├── scripts/ # Utility scripts
379
+ └── package.json # Project configuration
395
380
  ```
396
381
 
397
- ## 版本
382
+ ---
383
+
384
+ ## 🎯 Use Cases
385
+
386
+ ### Enterprise Back-Office Systems
387
+ - Rapid admin dashboard creation
388
+ - Business system configuration hubs
389
+ - Internal tool platforms
390
+
391
+ ### SaaS Platforms
392
+ - Multi-tenant applications
393
+ - White-label products
394
+ - Industry-specific solutions
395
+
396
+ ### API Platforms
397
+ - API management & gateways
398
+ - Data open platforms
399
+ - Microservice aggregation
400
+
401
+ ### Low-Code Development
402
+ - Rapid business system development
403
+ - Form-driven applications
404
+ - Data analysis platforms
405
+
406
+ ### Content Management
407
+ - Document repositories
408
+ - Knowledge bases
409
+ - Content publishing platforms
410
+
411
+ ---
412
+
413
+ ## 🛠️ Utility Endpoints
414
+
415
+ ### Encryption Helper
416
+
417
+ ```
418
+ http://127.0.0.1:7002/ns/api/helpers/cryptoAes128CBC?input=123
419
+ ```
420
+
421
+ ---
422
+
423
+ ## 📌 Version
424
+
425
+ Current Version: `0.0.1-beta.82`
426
+
427
+ ---
428
+
429
+ ## 📄 License
430
+
431
+ MIT License — Use it freely, contribute often.
432
+
433
+ ---
398
434
 
399
- 当前版本:`0.0.1-beta.82`
435
+ ## 👥 Contributing
400
436
 
401
- ## 许可证
437
+ We welcome contributions! Whether it's bug reports, feature requests, or pull requests, your input helps make Midway FatCMS better for everyone.
402
438
 
403
- MIT License
439
+ ---
404
440
 
405
- ## 作者
441
+ <p align="center">
442
+ <strong>Built with ❤️ by the Enterprise Low-Code Development Team</strong>
443
+ </p>
406
444
 
407
- 企业级低代码开发团队
445
+ <p align="center">
446
+ Ready to ship faster? Let's build something amazing together.
447
+ </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midway-fatcms",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "This is a midway component sample",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",