zero-ai 0.3.27 → 0.3.31
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.
- package/document/doc-web/E.html +2 -5
- package/document/doc-web/index.html +131 -32
- package/document/doc-web/module-__epic.html +156 -0
- package/document/doc-web/module-ai.html +373 -194
- package/document/doc-web/module-aj.html +253 -436
- package/document/doc-web/module-art.html +621 -0
- package/{run-doc.sh → k-doc.sh} +4 -3
- package/package.json +1 -1
- package/src/cab/resource/resource.xlsx +0 -0
- package/src/commander/ai.zero +1 -1
- package/src/commander-ai/fn.csv.js +13 -13
- package/src/commander-ai/fn.data.js +14 -14
- package/src/commander-ai/fn.init.js +11 -11
- package/src/commander-ai/fn.key.js +12 -12
- package/src/commander-ai/fn.md5.js +11 -11
- package/src/commander-ai/fn.random.js +13 -13
- package/src/commander-ai/fn.sync.js +116 -9
- package/src/commander-ai/fn.uk.js +12 -12
- package/src/commander-ai/fn.uuid.js +11 -11
- package/src/commander-ai/index.js +64 -1
- package/src/commander-aj/fn.i.mod.js +42 -1
- package/src/commander-aj/fn.i.resource.js +69 -1
- package/src/commander-aj/fn.j.bundle.js +11 -15
- package/src/commander-aj/fn.j.init.js +12 -12
- package/src/commander-aj/fn.j.permission.js +12 -16
- package/src/commander-aj/fn.j.plugin.js +13 -17
- package/src/commander-aj/index.js +26 -2
- package/src/commander-ar/fn.i.complex.js +16 -20
- package/src/commander-ar/fn.i.form.js +17 -28
- package/src/commander-ar/index.js +77 -1
- package/src/epic/ai.economy.impl.fn.excel.js +21 -1
- package/src/epic/ai.unified.fn.fn.error.code.js +0 -6
- package/src/epic/index.js +52 -159
- package/document/doc-web/module-_debug.html +0 -1104
- package/document/doc-web/module-_epic.html +0 -1631
- package/src/commander-aj/fn.j.row.js +0 -5
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
<input type="text" id="nav-search" placeholder="Search" />
|
|
38
38
|
|
|
39
|
-
<h2><a href="index.html">Home</a></h2><h2><a href="http://www.vertxai.cn/document/doc-web/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ai</a></h2><h2><a href="http://www.vertxui.cn/document/doc-web/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ui</a></h2><h2><a href="http://www.vertxui.cn/document/doc-web-extension/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ui Extension</a></h2><h2><a href="http://www.vertxui.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero UI</a></h2><h2><a href="http://www.vertxai.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero Ai</a></h2><h2><a href="http://www.vertxup.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero Framework</a></h2><h2><a href="http://www.origin-x.cn" target="_blank" class="menu-item" id="website_link" >「Home」Origin X Engine</a></h2><h3>Classes</h3><ul><li><a href="E.html">E</a></li></ul><h3>Modules</h3><ul><li><a href="module-
|
|
39
|
+
<h2><a href="index.html">Home</a></h2><h2><a href="http://www.vertxai.cn/document/doc-web/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ai</a></h2><h2><a href="http://www.vertxui.cn/document/doc-web/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ui</a></h2><h2><a href="http://www.vertxui.cn/document/doc-web-extension/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ui Extension</a></h2><h2><a href="http://www.vertxui.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero UI</a></h2><h2><a href="http://www.vertxai.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero Ai</a></h2><h2><a href="http://www.vertxup.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero Framework</a></h2><h2><a href="http://www.origin-x.cn" target="_blank" class="menu-item" id="website_link" >「Home」Origin X Engine</a></h2><h3>Classes</h3><ul><li><a href="E.html">E</a></li></ul><h3>Modules</h3><ul><li><a href="module-__epic.html">__epic</a></li><li><a href="module-ai.html">ai</a><ul class='methods'><li data-type='method'><a href="module-ai.html#.csv">csv</a></li><li data-type='method'><a href="module-ai.html#.data">data</a></li><li data-type='method'><a href="module-ai.html#.init">init</a></li><li data-type='method'><a href="module-ai.html#.key">key</a></li><li data-type='method'><a href="module-ai.html#.md5">md5</a></li><li data-type='method'><a href="module-ai.html#.str">str</a></li><li data-type='method'><a href="module-ai.html#.sync">sync</a></li><li data-type='method'><a href="module-ai.html#.uk">uk</a></li><li data-type='method'><a href="module-ai.html#.uuid">uuid</a></li></ul></li><li><a href="module-aj.html">aj</a><ul class='methods'><li data-type='method'><a href="module-aj.html#.bundle">bundle</a></li><li data-type='method'><a href="module-aj.html#.init">init</a></li><li data-type='method'><a href="module-aj.html#.mod">mod</a></li><li data-type='method'><a href="module-aj.html#.perm">perm</a></li><li data-type='method'><a href="module-aj.html#.plugin">plugin</a></li><li data-type='method'><a href="module-aj.html#.rs">rs</a></li></ul></li><li><a href="module-art.html">art</a><ul class='methods'><li data-type='method'><a href="module-art.html#.complex">complex</a></li><li data-type='method'><a href="module-art.html#.form">form</a></li></ul></li></ul>
|
|
40
40
|
</nav>
|
|
41
41
|
|
|
42
42
|
<div id="main">
|
|
@@ -115,106 +115,28 @@
|
|
|
115
115
|
</thead>
|
|
116
116
|
<tbody>
|
|
117
117
|
<tr>
|
|
118
|
-
<td>aj
|
|
119
|
-
<td style="text-align:left"
|
|
118
|
+
<td>aj perm</td>
|
|
119
|
+
<td style="text-align:left">生成某个角色的权限专用Excel数据文件</td>
|
|
120
120
|
</tr>
|
|
121
121
|
<tr>
|
|
122
|
-
<td>aj
|
|
123
|
-
<td style="text-align:left"
|
|
122
|
+
<td>aj rs</td>
|
|
123
|
+
<td style="text-align:left">为某个接口直接生成系统所需的权限文件,只针对超级管理员(key = <code>e501b47a-c08b-4c83-b12b-95ad82873e96</code>),<br/>若存在其他额外角色可以继续使用命令 <code>aj perm</code> 从超级管理员中拷贝。</td>
|
|
124
124
|
</tr>
|
|
125
125
|
<tr>
|
|
126
|
-
<td>aj
|
|
127
|
-
<td style="text-align:left"
|
|
128
|
-
</tr>
|
|
129
|
-
</tbody>
|
|
130
|
-
</table>
|
|
131
|
-
<h3>3. 标准化配置</h3>
|
|
132
|
-
<pre class="prettyprint source lang-js"><code>{
|
|
133
|
-
module: 'ZT环境变量设置的模块',
|
|
134
|
-
language: 'Z_LANGUAGE语言环境变量设置,默认「cn」',
|
|
135
|
-
pathRoot: '系统根据执行目录计算的当前项目根目录',
|
|
136
|
-
pathResource: '资源目录',
|
|
137
|
-
pathUi: '生成代码目录',
|
|
138
|
-
namespace: 'Cab.json中所需的名空间值',
|
|
139
|
-
input: {
|
|
140
|
-
params: {
|
|
141
|
-
MODULE: '当前模块的文字描述名称',
|
|
142
|
-
API: '构造标准接口`/api/xxx`的RESTful接口专用路径替换部分。',
|
|
143
|
-
IDENTIFIER: '模型的统一标识符,最终会绑定到identifier中。'
|
|
144
|
-
},
|
|
145
|
-
tpl: {
|
|
146
|
-
type: '使用的模板tpl文件目录,cab/下的目录名',
|
|
147
|
-
source: '「单文件」单文件的拷贝源',
|
|
148
|
-
target: '「单文件」单文件的目标拷贝文件'
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
runtime: {
|
|
152
|
-
namespaceFile: 'Cab.json文件生成路径',
|
|
153
|
-
resource: '资源文件的根目录',
|
|
154
|
-
resourceFiles: {
|
|
155
|
-
'fileName1': '资源文件地址,json后缀,模板则是fileName1.tpl文件',
|
|
156
|
-
'fileName2': '......'
|
|
157
|
-
},
|
|
158
|
-
ui: '代码文件根目录',
|
|
159
|
-
uiFiles: {
|
|
160
|
-
'fileName1': '代码文件地址,js后缀,模板则是fileName1.tpl文件',
|
|
161
|
-
'fileName2': '......'
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
</code></pre>
|
|
166
|
-
<h3>4. 标准化模板参数</h3>
|
|
167
|
-
<blockquote>
|
|
168
|
-
<p><code>tpl</code>文件中替换的部分会使用配置文件中的参数来替换。</p>
|
|
169
|
-
</blockquote>
|
|
170
|
-
<table>
|
|
171
|
-
<thead>
|
|
172
|
-
<tr>
|
|
173
|
-
<th style="text-align:left">参数</th>
|
|
174
|
-
<th>替换部分</th>
|
|
175
|
-
<th style="text-align:left">含义</th>
|
|
176
|
-
</tr>
|
|
177
|
-
</thead>
|
|
178
|
-
<tbody>
|
|
179
|
-
<tr>
|
|
180
|
-
<td style="text-align:left">MODULE</td>
|
|
181
|
-
<td><code>#MODULE#</code></td>
|
|
182
|
-
<td style="text-align:left">当前模块的文字描述名称。</td>
|
|
183
|
-
</tr>
|
|
184
|
-
<tr>
|
|
185
|
-
<td style="text-align:left">API</td>
|
|
186
|
-
<td><code>#API#</code></td>
|
|
187
|
-
<td style="text-align:left">构造标准接口<code>/api/xxx</code>的RESTful接口专用路径替换部分。</td>
|
|
188
|
-
</tr>
|
|
189
|
-
<tr>
|
|
190
|
-
<td style="text-align:left">IDENTIFIER</td>
|
|
191
|
-
<td><code>#IDENTIFIER#</code></td>
|
|
192
|
-
<td style="text-align:left">模型的统一标识符,最终会绑定到identifier中。</td>
|
|
193
|
-
</tr>
|
|
194
|
-
<tr>
|
|
195
|
-
<td style="text-align:left">NAME</td>
|
|
196
|
-
<td><code>#NAME#</code></td>
|
|
197
|
-
<td style="text-align:left">绑定文件设定,直接赋值<code>input.params.NAME = tpl.target</code>生成单文件专用。</td>
|
|
198
|
-
</tr>
|
|
199
|
-
<tr>
|
|
200
|
-
<td style="text-align:left">SIGMA</td>
|
|
201
|
-
<td><code>#SIGMA</code></td>
|
|
202
|
-
<td style="text-align:left">SIGMA统一标识符,用于标识租户、应用。</td>
|
|
126
|
+
<td>aj plugin</td>
|
|
127
|
+
<td style="text-align:left">「工程命令」生成第三方插件专用初始化命令,可为某个 Maven 插件实现初始化流程,包括代码生成。</td>
|
|
203
128
|
</tr>
|
|
204
129
|
<tr>
|
|
205
|
-
<td
|
|
206
|
-
<td
|
|
207
|
-
<td style="text-align:left">操作的角色ID。</td>
|
|
130
|
+
<td>aj mod</td>
|
|
131
|
+
<td style="text-align:left">模块化专用命令,根据当前环境中的 <strong>路由规划器</strong> 和 <strong>模块规划器</strong> 自动化重写模块化专用配置文件。</td>
|
|
208
132
|
</tr>
|
|
209
133
|
<tr>
|
|
210
|
-
<td
|
|
211
|
-
<td
|
|
212
|
-
<td style="text-align:left">生成文件专用参数,不在模板中。</td>
|
|
134
|
+
<td>aj init</td>
|
|
135
|
+
<td style="text-align:left">「工程命令」根据后端脚手架初始化Zero后端工程命令。</td>
|
|
213
136
|
</tr>
|
|
214
137
|
<tr>
|
|
215
|
-
<td
|
|
216
|
-
<td
|
|
217
|
-
<td style="text-align:left">工作专用的Sheet名,不在模板中。</td>
|
|
138
|
+
<td>aj bundle</td>
|
|
139
|
+
<td style="text-align:left">OSGI目录初始化专用命令,可以为某个 OSGI 的 Bundle 按相关规范生成目录结构。</td>
|
|
218
140
|
</tr>
|
|
219
141
|
</tbody>
|
|
220
142
|
</table></div>
|
|
@@ -296,30 +218,8 @@
|
|
|
296
218
|
<div class="description usertext">
|
|
297
219
|
<h2><code>aj bundle</code></h2>
|
|
298
220
|
<h3>1. 命令</h3>
|
|
299
|
-
<
|
|
300
|
-
<h3>2. 执行</h3>
|
|
301
|
-
<h4>2.1. 基本介绍</h4>
|
|
302
|
-
<pre class="prettyprint source lang-shell"><code># 2.1.1. 命令语法
|
|
303
|
-
aj bundle -p <path>
|
|
304
|
-
|
|
305
|
-
# 2.1.2. 执行测试
|
|
306
|
-
ai bundle -p <path>
|
|
307
|
-
|
|
308
|
-
[Zero AI] Zero Ecotope AI工具项 : <专用工具>
|
|
309
|
-
[Zero AI] HomePage : http://www.vertxai.cn
|
|
310
|
-
[Zero AI] Github : https://github.com/silentbalanceyh/vertx-ai.git
|
|
311
|
-
[Zero AI] Version : 0.3.25 「确认您的Node版本 ( >= 18.x ) 支持ES6, ES7.」
|
|
312
|
-
[Zero AI] AI 系统启动......
|
|
313
|
-
[Zero AI] Zero AI 加载输入参数:
|
|
314
|
-
{
|
|
315
|
-
"path": "."
|
|
316
|
-
}
|
|
317
|
-
[Zero AI] Bundle规范目录创建:.
|
|
318
|
-
[Zero AI] 即将拷贝说明文件:
|
|
319
|
-
[Zero AI] (Async)成功将数据写入到文件:./specification.txt!
|
|
221
|
+
<pre class="prettyprint source lang-shell"><code>aj bundle -p <path>
|
|
320
222
|
</code></pre>
|
|
321
|
-
<h3>3. 选项</h3>
|
|
322
|
-
<h4>3.1. 基本说明</h4>
|
|
323
223
|
<table>
|
|
324
224
|
<thead>
|
|
325
225
|
<tr>
|
|
@@ -340,6 +240,24 @@ ai bundle -p <path>
|
|
|
340
240
|
</tr>
|
|
341
241
|
</tbody>
|
|
342
242
|
</table>
|
|
243
|
+
<h3>2. 介绍</h3>
|
|
244
|
+
<p>使用该命令生成一个 OSGI Bundle 专用的目录结构</p>
|
|
245
|
+
<h3>3. 执行</h3>
|
|
246
|
+
<pre class="prettyprint source lang-shell"><code>ai bundle -p <path>
|
|
247
|
+
|
|
248
|
+
[Zero AI] Zero Ecotope AI工具项 : <专用工具>
|
|
249
|
+
[Zero AI] HomePage : http://www.vertxai.cn
|
|
250
|
+
[Zero AI] Github : https://github.com/silentbalanceyh/vertx-ai.git
|
|
251
|
+
[Zero AI] Version : 0.3.25 「确认您的Node版本 ( >= 18.x ) 支持ES6, ES7.」
|
|
252
|
+
[Zero AI] AI 系统启动......
|
|
253
|
+
[Zero AI] Zero AI 加载输入参数:
|
|
254
|
+
{
|
|
255
|
+
"path": "."
|
|
256
|
+
}
|
|
257
|
+
[Zero AI] Bundle规范目录创建:.
|
|
258
|
+
[Zero AI] 即将拷贝说明文件:
|
|
259
|
+
[Zero AI] (Async)成功将数据写入到文件:./specification.txt!
|
|
260
|
+
</code></pre>
|
|
343
261
|
</div>
|
|
344
262
|
|
|
345
263
|
|
|
@@ -374,7 +292,7 @@ ai bundle -p <path>
|
|
|
374
292
|
|
|
375
293
|
|
|
376
294
|
|
|
377
|
-
<h4 class="name" id=".
|
|
295
|
+
<h4 class="name" id=".init"><span class="type-signature">(static) </span>init<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
378
296
|
|
|
379
297
|
|
|
380
298
|
|
|
@@ -421,111 +339,10 @@ ai bundle -p <path>
|
|
|
421
339
|
|
|
422
340
|
|
|
423
341
|
<div class="description usertext">
|
|
424
|
-
<h2><code>aj
|
|
342
|
+
<h2><code>aj init</code></h2>
|
|
425
343
|
<h3>1. 命令</h3>
|
|
426
|
-
<
|
|
427
|
-
<h3>2. 执行</h3>
|
|
428
|
-
<h4>2.1. 基本介绍</h4>
|
|
429
|
-
<pre class="prettyprint source lang-shell"><code># 2.1.1. 命令语法
|
|
430
|
-
aj icomplex
|
|
431
|
-
|
|
432
|
-
# 2.1.2. 执行测试
|
|
433
|
-
aj icomplex
|
|
434
|
-
# ...省略部分...
|
|
435
|
-
[Zero AI] Zero AI 系统启动......
|
|
436
|
-
[Zero AI] Zero AI 加载输入参数:
|
|
437
|
-
{
|
|
438
|
-
"config": "ui.json"
|
|
439
|
-
}
|
|
440
|
-
[Zero AI] 「启用ZT环境」,当前模块:generated/test,特殊命令只能在ZT环境使用。
|
|
441
|
-
[Zero AI] Zero AI 0. 基础环境......
|
|
442
|
-
[Zero AI] 环境变量:ZT = generated/test
|
|
443
|
-
[Zero AI] 模块信息:generated/test
|
|
444
|
-
[Zero AI] 语言信息:cn
|
|
445
|
-
[Zero AI] 项目目录:<项目根目录>
|
|
446
|
-
[Zero AI] Zero AI 1. 目录检查......
|
|
447
|
-
[Zero AI] Zero AI 2. 文件表:
|
|
448
|
-
[Zero AI] UI.Add = <项目根目录>/src/cab/cn/components/generated/test/UI.Add.json
|
|
449
|
-
[Zero AI] UI.Edit = <项目根目录>/src/cab/cn/components/generated/test/UI.Edit.json
|
|
450
|
-
[Zero AI] UI.Filter = <项目根目录>/src/cab/cn/components/generated/test/UI.Filter.json
|
|
451
|
-
[Zero AI] UI = <项目根目录>/src/cab/cn/components/generated/test/UI.json
|
|
452
|
-
[Zero AI] UI = <项目根目录>/src/components/generated/test/UI.js
|
|
453
|
-
[Zero AI] Op = <项目根目录>/src/components/generated/test/Op.js
|
|
454
|
-
[Zero AI] UI.Form = <项目根目录>/src/components/generated/test/UI.Form.js
|
|
455
|
-
[Zero AI] Zero AI 3. 执行React命令......
|
|
456
|
-
[Zero AI] Zero AI 3.1. 创建名空间文件......
|
|
457
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/components/generated/test/Cab.json!
|
|
458
|
-
[Zero AI] Zero AI 3.2. 构造资源文件......
|
|
459
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/cab/cn/components/generated/test/UI.Add.json!
|
|
460
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/cab/cn/components/generated/test/UI.Edit.json!
|
|
461
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/cab/cn/components/generated/test/UI.Filter.json!
|
|
462
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/cab/cn/components/generated/test/UI.json!
|
|
463
|
-
[Zero AI] Zero AI 3.3. 构造界面文件......
|
|
464
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/components/generated/test/UI.js!
|
|
465
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/components/generated/test/Op.js!
|
|
466
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/components/generated/test/UI.Form.js!
|
|
467
|
-
[Zero AI] Zero AI 4. 命令执行完成!!!
|
|
344
|
+
<pre class="prettyprint source lang-shell"><code>aj init -name <name>
|
|
468
345
|
</code></pre>
|
|
469
|
-
<p>代码执行完成后会在项目中生成Zero UI专用模块<code>generated/test</code>的所有页面以及组件。</p>
|
|
470
|
-
<ul>
|
|
471
|
-
<li>执行代码之前先执行<code>export ZT=generated/test</code>确保<code>ZT</code>环境变量有值。</li>
|
|
472
|
-
<li>执行位置可以是当前项目中的任意一个路径,脚本会自己计算当前项目的根目录(Zero UI专用)。</li>
|
|
473
|
-
<li>该命令执行时模板文件位置位于<code>src/cab/list</code>目录中,且模板文件以<code>tpl</code>结尾。</li>
|
|
474
|
-
</ul>
|
|
475
|
-
<h4>2.2. 生成的文件说明</h4>
|
|
476
|
-
<table>
|
|
477
|
-
<thead>
|
|
478
|
-
<tr>
|
|
479
|
-
<th style="text-align:left">文件名</th>
|
|
480
|
-
<th style="text-align:left">模板</th>
|
|
481
|
-
<th style="text-align:left">含义</th>
|
|
482
|
-
</tr>
|
|
483
|
-
</thead>
|
|
484
|
-
<tbody>
|
|
485
|
-
<tr>
|
|
486
|
-
<td style="text-align:left">Cab.json</td>
|
|
487
|
-
<td style="text-align:left">无</td>
|
|
488
|
-
<td style="text-align:left">名空间关联文件,计算得来。</td>
|
|
489
|
-
</tr>
|
|
490
|
-
<tr>
|
|
491
|
-
<td style="text-align:left">UI.Add.json</td>
|
|
492
|
-
<td style="text-align:left">UI.Add.json.tpl</td>
|
|
493
|
-
<td style="text-align:left">「无字段」添加表单专用资源文件。</td>
|
|
494
|
-
</tr>
|
|
495
|
-
<tr>
|
|
496
|
-
<td style="text-align:left">UI.Edit.json</td>
|
|
497
|
-
<td style="text-align:left">UI.Edit.json.tpl</td>
|
|
498
|
-
<td style="text-align:left">「无字段」编辑表单专用资源文件。</td>
|
|
499
|
-
</tr>
|
|
500
|
-
<tr>
|
|
501
|
-
<td style="text-align:left">UI.Filter.json</td>
|
|
502
|
-
<td style="text-align:left">UI.Filter.json.tpl</td>
|
|
503
|
-
<td style="text-align:left">过滤表单专用资源文件(高级搜索用)。</td>
|
|
504
|
-
</tr>
|
|
505
|
-
<tr>
|
|
506
|
-
<td style="text-align:left">UI.json</td>
|
|
507
|
-
<td style="text-align:left">UI.json.tpl</td>
|
|
508
|
-
<td style="text-align:left">主界面资源文件。</td>
|
|
509
|
-
</tr>
|
|
510
|
-
<tr>
|
|
511
|
-
<td style="text-align:left">UI.js</td>
|
|
512
|
-
<td style="text-align:left">UI.js.tpl</td>
|
|
513
|
-
<td style="text-align:left">主界面脚本文件。</td>
|
|
514
|
-
</tr>
|
|
515
|
-
<tr>
|
|
516
|
-
<td style="text-align:left">Op.js</td>
|
|
517
|
-
<td style="text-align:left">Op.js.tpl</td>
|
|
518
|
-
<td style="text-align:left">Action/Callback专用Js事件脚本。</td>
|
|
519
|
-
</tr>
|
|
520
|
-
<tr>
|
|
521
|
-
<td style="text-align:left">UI.Form.js</td>
|
|
522
|
-
<td style="text-align:left">UI.Form.js.tpl</td>
|
|
523
|
-
<td style="text-align:left">三个表单合一的专用Js脚本。</td>
|
|
524
|
-
</tr>
|
|
525
|
-
</tbody>
|
|
526
|
-
</table>
|
|
527
|
-
<h3>3. 选项</h3>
|
|
528
|
-
<h4>3.1. 基本说明</h4>
|
|
529
346
|
<table>
|
|
530
347
|
<thead>
|
|
531
348
|
<tr>
|
|
@@ -538,14 +355,38 @@ aj icomplex
|
|
|
538
355
|
</thead>
|
|
539
356
|
<tbody>
|
|
540
357
|
<tr>
|
|
541
|
-
<td>-
|
|
542
|
-
<td>--
|
|
358
|
+
<td>-n</td>
|
|
359
|
+
<td>--name</td>
|
|
543
360
|
<td>String</td>
|
|
544
|
-
<td
|
|
545
|
-
<td style="text-align:left"
|
|
361
|
+
<td>(无)</td>
|
|
362
|
+
<td style="text-align:left">项目名称以及目录名称。</td>
|
|
546
363
|
</tr>
|
|
547
364
|
</tbody>
|
|
548
365
|
</table>
|
|
366
|
+
<h3>2. 介绍</h3>
|
|
367
|
+
<p>zero-scaffold项目脚手架初始化专用命令。</p>
|
|
368
|
+
<h3>3. 执行</h3>
|
|
369
|
+
<pre class="prettyprint source lang-shell"><code>aj init -name test-demo-api
|
|
370
|
+
[Zero AI] Zero AI 代码生成工具 : <标准工具>
|
|
371
|
+
[Zero AI] HomePage : http://www.vertxai.cn
|
|
372
|
+
[Zero AI] Github : https://github.com/silentbalanceyh/vertx-ai.git
|
|
373
|
+
[Zero AI] Version : 0.3.2 「确认您的Node版本 ( >= 14.x ) 支持ES6, ES7.」
|
|
374
|
+
[Zero AI] Zero AI 系统启动......
|
|
375
|
+
[Zero AI] Zero AI 加载输入参数:
|
|
376
|
+
{
|
|
377
|
+
"name": "test-demo-api"
|
|
378
|
+
}
|
|
379
|
+
[Zero AI] 工程构建目录:test-demo-api
|
|
380
|
+
Cloning into 'test-demo-api'...
|
|
381
|
+
remote: Enumerating objects: 949, done.
|
|
382
|
+
remote: Counting objects: 100% (949/949), done.
|
|
383
|
+
remote: Compressing objects: 100% (176/176), done.
|
|
384
|
+
remote: Total 949 (delta 719), reused 944 (delta 717), pack-reused 0
|
|
385
|
+
Receiving objects: 100% (949/949), 1.21 MiB | 1.73 MiB/s, done.
|
|
386
|
+
Resolving deltas: 100% (719/719), done.
|
|
387
|
+
[Zero AI] 执行工程初始化:test-demo-api
|
|
388
|
+
[Zero AI] 工程初始化完成:test-demo-api,您可以开始您的Zero Api之行了!
|
|
389
|
+
</code></pre>
|
|
549
390
|
</div>
|
|
550
391
|
|
|
551
392
|
|
|
@@ -580,7 +421,7 @@ aj icomplex
|
|
|
580
421
|
|
|
581
422
|
|
|
582
423
|
|
|
583
|
-
<h4 class="name" id=".
|
|
424
|
+
<h4 class="name" id=".mod"><span class="type-signature">(static) </span>mod<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
584
425
|
|
|
585
426
|
|
|
586
427
|
|
|
@@ -627,74 +468,10 @@ aj icomplex
|
|
|
627
468
|
|
|
628
469
|
|
|
629
470
|
<div class="description usertext">
|
|
630
|
-
<h2><code>aj
|
|
471
|
+
<h2><code>aj mod</code></h2>
|
|
631
472
|
<h3>1. 命令</h3>
|
|
632
|
-
<
|
|
633
|
-
<h3>2. 执行</h3>
|
|
634
|
-
<h4>2.1. 基本介绍</h4>
|
|
635
|
-
<pre class="prettyprint source lang-shell"><code># 2.1.1. 命令语法
|
|
636
|
-
ai iform -u <ui>
|
|
637
|
-
|
|
638
|
-
# 2.1.2. 执行测试
|
|
639
|
-
aj iform -u UI.Basic
|
|
640
|
-
# ...省略部分...
|
|
641
|
-
[Zero AI] Zero AI 系统启动......
|
|
642
|
-
[Zero AI] Zero AI 加载输入参数:
|
|
643
|
-
{
|
|
644
|
-
"config": "ui.json",
|
|
645
|
-
"ui": "UI.Basic"
|
|
646
|
-
}
|
|
647
|
-
[Zero AI] 「启用ZT环境」,当前模块:generated/test,特殊命令只能在ZT环境使用。
|
|
648
|
-
[Zero AI] Zero AI 0. 基础环境......
|
|
649
|
-
[Zero AI] 环境变量:ZT = generated/test
|
|
650
|
-
[Zero AI] 模块信息:generated/test
|
|
651
|
-
[Zero AI] 语言信息:cn
|
|
652
|
-
[Zero AI] 项目目录:<项目根目录>
|
|
653
|
-
[Zero AI] Zero AI 1. 目录检查......
|
|
654
|
-
[Zero AI] Zero AI 2. 文件表:
|
|
655
|
-
[Zero AI] Zero AI 3. 执行React命令......
|
|
656
|
-
[Zero AI] Zero AI 3.1. 创建名空间文件......
|
|
657
|
-
[Zero AI] Zero AI 3.2. 构造资源文件......
|
|
658
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/cab/cn/components/generated/test/UI.Basic.json!
|
|
659
|
-
[Zero AI] Zero AI 3.3. 构造界面文件......
|
|
660
|
-
[Zero AI] (Sync)成功将数据写入到文件:<项目根目录>/src/components/generated/test/UI.Basic.js!
|
|
661
|
-
[Zero AI] Zero AI 4. 命令执行完成!!!
|
|
473
|
+
<pre class="prettyprint source lang-shell"><code>aj mod -p <path> -e <extension> -w <write>
|
|
662
474
|
</code></pre>
|
|
663
|
-
<p>代码执行完成后会在项目中生成Zero UI专用模块<code>generated/test</code>中唯一的两个页面。</p>
|
|
664
|
-
<ul>
|
|
665
|
-
<li>执行代码之前先执行<code>export ZT=generated/test</code>确保<code>ZT</code>环境变量有值。</li>
|
|
666
|
-
<li>该命令执行时模板文件位置位于<code>src/cab/form</code>目录中,且模板文件以<code>tpl</code>结尾。</li>
|
|
667
|
-
<li>生成的<code>UI.js</code>的按钮部分直接位于当前文件中,并且默认包含了<code>ADD, EDIT, DELETE</code>三个核心按钮。</li>
|
|
668
|
-
</ul>
|
|
669
|
-
<h4>2.2. 生成的文件说明</h4>
|
|
670
|
-
<table>
|
|
671
|
-
<thead>
|
|
672
|
-
<tr>
|
|
673
|
-
<th style="text-align:left">文件名</th>
|
|
674
|
-
<th style="text-align:left">模板</th>
|
|
675
|
-
<th style="text-align:left">含义</th>
|
|
676
|
-
</tr>
|
|
677
|
-
</thead>
|
|
678
|
-
<tbody>
|
|
679
|
-
<tr>
|
|
680
|
-
<td style="text-align:left">Cab.json</td>
|
|
681
|
-
<td style="text-align:left">无</td>
|
|
682
|
-
<td style="text-align:left">名空间关联文件,计算得来。</td>
|
|
683
|
-
</tr>
|
|
684
|
-
<tr>
|
|
685
|
-
<td style="text-align:left"><code><Name>.json</code></td>
|
|
686
|
-
<td style="text-align:left">UI.json.tpl</td>
|
|
687
|
-
<td style="text-align:left">当前表单专用资源文件。</td>
|
|
688
|
-
</tr>
|
|
689
|
-
<tr>
|
|
690
|
-
<td style="text-align:left"><code><Name>.js</code></td>
|
|
691
|
-
<td style="text-align:left">UI.js.tpl</td>
|
|
692
|
-
<td style="text-align:left">当前表单源代码专用文件。</td>
|
|
693
|
-
</tr>
|
|
694
|
-
</tbody>
|
|
695
|
-
</table>
|
|
696
|
-
<h3>3. 选项</h3>
|
|
697
|
-
<h4>3.1. 基本说明</h4>
|
|
698
475
|
<table>
|
|
699
476
|
<thead>
|
|
700
477
|
<tr>
|
|
@@ -707,21 +484,46 @@ aj iform -u UI.Basic
|
|
|
707
484
|
</thead>
|
|
708
485
|
<tbody>
|
|
709
486
|
<tr>
|
|
710
|
-
<td>-
|
|
711
|
-
<td>--
|
|
487
|
+
<td>-p</td>
|
|
488
|
+
<td>--path</td>
|
|
712
489
|
<td>String</td>
|
|
713
490
|
<td>无</td>
|
|
714
|
-
<td style="text-align:left"
|
|
491
|
+
<td style="text-align:left">模块化OOB数据专用目录。</td>
|
|
715
492
|
</tr>
|
|
716
493
|
<tr>
|
|
717
|
-
<td>-
|
|
718
|
-
<td>--
|
|
494
|
+
<td>-e</td>
|
|
495
|
+
<td>--extension</td>
|
|
719
496
|
<td>String</td>
|
|
720
|
-
<td><code
|
|
721
|
-
<td style="text-align:left"
|
|
497
|
+
<td><code>.xlsx</code></td>
|
|
498
|
+
<td style="text-align:left">模块化OOB数据专用文件后缀。</td>
|
|
499
|
+
</tr>
|
|
500
|
+
<tr>
|
|
501
|
+
<td>-w</td>
|
|
502
|
+
<td>--write</td>
|
|
503
|
+
<td>String</td>
|
|
504
|
+
<td><code>REPLACE</code></td>
|
|
505
|
+
<td style="text-align:left">写入模式,<code>REPLACE</code>为替换,<code>APPEND</code>为追加。</td>
|
|
722
506
|
</tr>
|
|
723
507
|
</tbody>
|
|
724
508
|
</table>
|
|
509
|
+
<h3>2. 介绍</h3>
|
|
510
|
+
<p>此命令为 <code>zero-battery</code> 量身打造的命令,用于自动化生成 <code>initialize.json</code> 文件专用,此文件为模块化连接文件。</p>
|
|
511
|
+
<h3>3. 执行</h3>
|
|
512
|
+
<pre class="prettyprint source lang-shell"><code>aj mod -p src/main/resources/plugin/norm/oob
|
|
513
|
+
[Zero AI] Zero Ecotope AI工具项 : <专用工具>
|
|
514
|
+
[Zero AI] HomePage : http://www.vertxai.cn
|
|
515
|
+
[Zero AI] Github : https://github.com/silentbalanceyh/vertx-ai.git
|
|
516
|
+
[Zero AI] Version : 0.3.27 「确认您的Node版本 ( >= 18.x ) 支持ES6, ES7.」
|
|
517
|
+
[Zero AI] AI 系统启动......
|
|
518
|
+
[Zero AI] Zero AI 加载输入参数:
|
|
519
|
+
{
|
|
520
|
+
"path": "src/main/resources/plugin/norm/oob",
|
|
521
|
+
"extension": ".xlsx",
|
|
522
|
+
"write": "REPLACE"
|
|
523
|
+
}
|
|
524
|
+
[Zero AI] Zero AI 检索模块目录构造配置信息。
|
|
525
|
+
[Zero AI] (Sync)成功将数据写入到文件:/Users/.../ox-norm/src/main/resources/plugin/norm/oob/initialize.json!
|
|
526
|
+
</code></pre>
|
|
725
527
|
</div>
|
|
726
528
|
|
|
727
529
|
|
|
@@ -756,7 +558,7 @@ aj iform -u UI.Basic
|
|
|
756
558
|
|
|
757
559
|
|
|
758
560
|
|
|
759
|
-
<h4 class="name" id=".
|
|
561
|
+
<h4 class="name" id=".perm"><span class="type-signature">(static) </span>perm<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
760
562
|
|
|
761
563
|
|
|
762
564
|
|
|
@@ -803,36 +605,10 @@ aj iform -u UI.Basic
|
|
|
803
605
|
|
|
804
606
|
|
|
805
607
|
<div class="description usertext">
|
|
806
|
-
<h2><code>aj
|
|
608
|
+
<h2><code>aj perm</code></h2>
|
|
807
609
|
<h3>1. 命令</h3>
|
|
808
|
-
<
|
|
809
|
-
<h3>2. 执行</h3>
|
|
810
|
-
<pre class="prettyprint source lang-shell"><code># 2.1. 命令语法
|
|
811
|
-
aj init -name <name>
|
|
812
|
-
|
|
813
|
-
# 2.2. 执行测试
|
|
814
|
-
aj init -name test-demo-api
|
|
815
|
-
[Zero AI] Zero AI 代码生成工具 : <标准工具>
|
|
816
|
-
[Zero AI] HomePage : http://www.vertxai.cn
|
|
817
|
-
[Zero AI] Github : https://github.com/silentbalanceyh/vertx-ai.git
|
|
818
|
-
[Zero AI] Version : 0.3.2 「确认您的Node版本 ( >= 14.x ) 支持ES6, ES7.」
|
|
819
|
-
[Zero AI] Zero AI 系统启动......
|
|
820
|
-
[Zero AI] Zero AI 加载输入参数:
|
|
821
|
-
{
|
|
822
|
-
"name": "test-demo-api"
|
|
823
|
-
}
|
|
824
|
-
[Zero AI] 工程构建目录:test-demo-api
|
|
825
|
-
Cloning into 'test-demo-api'...
|
|
826
|
-
remote: Enumerating objects: 949, done.
|
|
827
|
-
remote: Counting objects: 100% (949/949), done.
|
|
828
|
-
remote: Compressing objects: 100% (176/176), done.
|
|
829
|
-
remote: Total 949 (delta 719), reused 944 (delta 717), pack-reused 0
|
|
830
|
-
Receiving objects: 100% (949/949), 1.21 MiB | 1.73 MiB/s, done.
|
|
831
|
-
Resolving deltas: 100% (719/719), done.
|
|
832
|
-
[Zero AI] 执行工程初始化:test-demo-api
|
|
833
|
-
[Zero AI] 工程初始化完成:test-demo-api,您可以开始您的Zero Api之行了!
|
|
610
|
+
<pre class="prettyprint source lang-shell"><code>aj perm -r <role> -i <input>
|
|
834
611
|
</code></pre>
|
|
835
|
-
<h3>3. 选项</h3>
|
|
836
612
|
<table>
|
|
837
613
|
<thead>
|
|
838
614
|
<tr>
|
|
@@ -845,14 +621,29 @@ Resolving deltas: 100% (719/719), done.
|
|
|
845
621
|
</thead>
|
|
846
622
|
<tbody>
|
|
847
623
|
<tr>
|
|
848
|
-
<td>-
|
|
849
|
-
<td>--
|
|
624
|
+
<td>-r</td>
|
|
625
|
+
<td>--role</td>
|
|
850
626
|
<td>String</td>
|
|
851
|
-
<td
|
|
852
|
-
<td style="text-align:left"
|
|
627
|
+
<td>无</td>
|
|
628
|
+
<td style="text-align:left">系统中角色的UUID。</td>
|
|
629
|
+
</tr>
|
|
630
|
+
<tr>
|
|
631
|
+
<td>-i</td>
|
|
632
|
+
<td>--input</td>
|
|
633
|
+
<td>String</td>
|
|
634
|
+
<td>无</td>
|
|
635
|
+
<td style="text-align:left">另外一个目录,用来合并新权限。</td>
|
|
853
636
|
</tr>
|
|
854
637
|
</tbody>
|
|
855
638
|
</table>
|
|
639
|
+
<h3>2. 介绍</h3>
|
|
640
|
+
<p>使用该命令生成某个角色的专用权限文件目录(内置所有Zero Extension标准权限),此命令会直接从单个角色中拷贝</p>
|
|
641
|
+
<h3>3. 执行</h3>
|
|
642
|
+
<pre class="prettyprint source lang-shell"><code>ai perm -r ccc -i input
|
|
643
|
+
|
|
644
|
+
[Zero AI] Zero AI 1. 准备生成角色对应权限:ID = "ccc" ...
|
|
645
|
+
[Zero AI] Zero AI 2. 生成 Zero Extension 权限...
|
|
646
|
+
</code></pre>
|
|
856
647
|
</div>
|
|
857
648
|
|
|
858
649
|
|
|
@@ -887,7 +678,7 @@ Resolving deltas: 100% (719/719), done.
|
|
|
887
678
|
|
|
888
679
|
|
|
889
680
|
|
|
890
|
-
<h4 class="name" id=".
|
|
681
|
+
<h4 class="name" id=".plugin"><span class="type-signature">(static) </span>plugin<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
891
682
|
|
|
892
683
|
|
|
893
684
|
|
|
@@ -934,22 +725,10 @@ Resolving deltas: 100% (719/719), done.
|
|
|
934
725
|
|
|
935
726
|
|
|
936
727
|
<div class="description usertext">
|
|
937
|
-
<h2><code>aj
|
|
728
|
+
<h2><code>aj plugin</code></h2>
|
|
938
729
|
<h3>1. 命令</h3>
|
|
939
|
-
<
|
|
940
|
-
<h3>2. 执行</h3>
|
|
941
|
-
<h4>2.1. 基本介绍</h4>
|
|
942
|
-
<pre class="prettyprint source lang-shell"><code># 2.1.1. 命令语法
|
|
943
|
-
aj perm -r <role> -i <input>
|
|
944
|
-
|
|
945
|
-
# 2.1.2. 执行测试
|
|
946
|
-
ai perm -r ccc -i input
|
|
947
|
-
|
|
948
|
-
[Zero AI] Zero AI 1. 准备生成角色对应权限:ID = "ccc" ...
|
|
949
|
-
[Zero AI] Zero AI 2. 生成 Zero Extension 权限...
|
|
730
|
+
<pre class="prettyprint source lang-shell"><code>aj plugin -m pbc
|
|
950
731
|
</code></pre>
|
|
951
|
-
<h3>3. 选项</h3>
|
|
952
|
-
<h4>3.1. 基本说明</h4>
|
|
953
732
|
<table>
|
|
954
733
|
<thead>
|
|
955
734
|
<tr>
|
|
@@ -962,21 +741,93 @@ ai perm -r ccc -i input
|
|
|
962
741
|
</thead>
|
|
963
742
|
<tbody>
|
|
964
743
|
<tr>
|
|
965
|
-
<td>-
|
|
966
|
-
<td>--
|
|
744
|
+
<td>-p</td>
|
|
745
|
+
<td>--path</td>
|
|
967
746
|
<td>String</td>
|
|
968
747
|
<td>无</td>
|
|
969
|
-
<td style="text-align:left"
|
|
748
|
+
<td style="text-align:left">根据传入路径设置,如果是<code>.</code>则是当前目录,如果不传则从<code>workspace.json</code>中读取。</td>
|
|
970
749
|
</tr>
|
|
971
750
|
<tr>
|
|
972
|
-
<td>-
|
|
973
|
-
<td>--
|
|
751
|
+
<td>-m</td>
|
|
752
|
+
<td>--module</td>
|
|
974
753
|
<td>String</td>
|
|
975
754
|
<td>无</td>
|
|
976
|
-
<td style="text-align:left"
|
|
755
|
+
<td style="text-align:left">模块名称,通常是<code>infix-xxx</code>中的<code>xxx</code>名称。</td>
|
|
756
|
+
</tr>
|
|
757
|
+
<tr>
|
|
758
|
+
<td>-c</td>
|
|
759
|
+
<td>--config</td>
|
|
760
|
+
<td>String</td>
|
|
761
|
+
<td><code>workspace.json</code></td>
|
|
762
|
+
<td style="text-align:left">配置文件路径。</td>
|
|
977
763
|
</tr>
|
|
978
764
|
</tbody>
|
|
979
765
|
</table>
|
|
766
|
+
<h3>2. 介绍</h3>
|
|
767
|
+
<p>使用该命令执行插件项目初始化,设置第三方集成项目模板专用。</p>
|
|
768
|
+
<h3>3. 执行</h3>
|
|
769
|
+
<pre class="prettyprint source lang-shell"><code>aj plugin -m pbc
|
|
770
|
+
# ...省略部分...
|
|
771
|
+
[Zero AI] Zero AI 系统启动......
|
|
772
|
+
[Zero AI] Zero AI 加载输入参数:
|
|
773
|
+
{
|
|
774
|
+
"module": "pbc",
|
|
775
|
+
"config": "workspace.json"
|
|
776
|
+
}
|
|
777
|
+
[Zero AI] 「Java环境」,后端工作路径:<工作目录>。
|
|
778
|
+
[Zero AI] Zero AI 0. 基础环境......
|
|
779
|
+
[Zero AI] Zero AI 工作目录:<工作目录>
|
|
780
|
+
[Zero AI] Zero AI 1. 执行Plugin命令......
|
|
781
|
+
[Zero AI] Zero AI 1.1. 初始化源代码目录......
|
|
782
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn
|
|
783
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx
|
|
784
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc
|
|
785
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/component
|
|
786
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/cv
|
|
787
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/error
|
|
788
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/input
|
|
789
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/output
|
|
790
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/refine
|
|
791
|
+
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/plugin
|
|
792
|
+
[Zero AI] Zero AI 1.2. 初始化资源目录......
|
|
793
|
+
[Zero AI] 创建目录:<工作目录>/src/main/resources/plugin
|
|
794
|
+
[Zero AI] 创建目录:<工作目录>/src/main/resources/plugin/pbc
|
|
795
|
+
[Zero AI] 创建目录:<工作目录>/src/main/resources/plugin/pbc/annal
|
|
796
|
+
[Zero AI] Zero AI 2. 生成代码......
|
|
797
|
+
[Zero AI] Zero AI 2.1. backlog日志配置......
|
|
798
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/annal/infix.xml!
|
|
799
|
+
[Zero AI] Zero AI 2.2.1. 「默认」集成配置......
|
|
800
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/integration.json!
|
|
801
|
+
[Zero AI] Zero AI 2.2.2. 「开发」集成配置......
|
|
802
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/integration-dev.json!
|
|
803
|
+
[Zero AI] Zero AI 2.2.3. 「生产」集成配置......
|
|
804
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/integration-prod.json!
|
|
805
|
+
[Zero AI] Zero AI 2.2.4. 基础配置......
|
|
806
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/configuration.json!
|
|
807
|
+
[Zero AI] Zero AI 2.3.1. 常量处理......
|
|
808
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/cv/PbCv.java!
|
|
809
|
+
[Zero AI] Zero AI 2.3.2. Before/After 插件处理......
|
|
810
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/plugin/AbstractPbBefore.java!
|
|
811
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/plugin/AbstractPbAfter.java!
|
|
812
|
+
[Zero AI] Zero AI 2.3.3. Refine 工具处理......
|
|
813
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/refine/PbLog.java!
|
|
814
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/refine/PbPin.java!
|
|
815
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/refine/Pb.java!
|
|
816
|
+
[Zero AI] Zero AI 2.3.4. Error 异常类处理......
|
|
817
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/error/_501PbIoNullException.java!
|
|
818
|
+
[Zero AI] Zero AI 2.3.5. Component 通道组件......
|
|
819
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/component/AbstractPbComponent.java!
|
|
820
|
+
[Zero AI] Zero AI 2.3.6. In 组件处理......
|
|
821
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/input/PbIn.java!
|
|
822
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/input/AbstractPbIn.java!
|
|
823
|
+
[Zero AI] Zero AI 2.3.7. Out 组件处理......
|
|
824
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIo.java!
|
|
825
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/AbstractPbIo.java!
|
|
826
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIoAdd.java!
|
|
827
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIoUpdate.java!
|
|
828
|
+
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIoDelete.java!
|
|
829
|
+
[Zero AI] Zero AI 3. 执行完成......
|
|
830
|
+
</code></pre>
|
|
980
831
|
</div>
|
|
981
832
|
|
|
982
833
|
|
|
@@ -1011,7 +862,7 @@ ai perm -r ccc -i input
|
|
|
1011
862
|
|
|
1012
863
|
|
|
1013
864
|
|
|
1014
|
-
<h4 class="name" id=".
|
|
865
|
+
<h4 class="name" id=".rs"><span class="type-signature">(static) </span>rs<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
1015
866
|
|
|
1016
867
|
|
|
1017
868
|
|
|
@@ -1058,79 +909,10 @@ ai perm -r ccc -i input
|
|
|
1058
909
|
|
|
1059
910
|
|
|
1060
911
|
<div class="description usertext">
|
|
1061
|
-
<h2><code>aj
|
|
912
|
+
<h2><code>aj rs</code></h2>
|
|
1062
913
|
<h3>1. 命令</h3>
|
|
1063
|
-
<
|
|
1064
|
-
<h3>2. 执行</h3>
|
|
1065
|
-
<h4>2.1. 基本介绍</h4>
|
|
1066
|
-
<pre class="prettyprint source lang-shell"><code># 2.1.1. 命令语法
|
|
1067
|
-
aj plugin -m pbc
|
|
1068
|
-
|
|
1069
|
-
# 2.1.2. 执行测试
|
|
1070
|
-
aj plugin -m pbc
|
|
1071
|
-
# ...省略部分...
|
|
1072
|
-
[Zero AI] Zero AI 系统启动......
|
|
1073
|
-
[Zero AI] Zero AI 加载输入参数:
|
|
1074
|
-
{
|
|
1075
|
-
"module": "pbc",
|
|
1076
|
-
"config": "workspace.json"
|
|
1077
|
-
}
|
|
1078
|
-
[Zero AI] 「Java环境」,后端工作路径:<工作目录>。
|
|
1079
|
-
[Zero AI] Zero AI 0. 基础环境......
|
|
1080
|
-
[Zero AI] Zero AI 工作目录:<工作目录>
|
|
1081
|
-
[Zero AI] Zero AI 1. 执行Plugin命令......
|
|
1082
|
-
[Zero AI] Zero AI 1.1. 初始化源代码目录......
|
|
1083
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn
|
|
1084
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx
|
|
1085
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc
|
|
1086
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/component
|
|
1087
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/cv
|
|
1088
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/error
|
|
1089
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/input
|
|
1090
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/output
|
|
1091
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/refine
|
|
1092
|
-
[Zero AI] 创建目录:<工作目录>/src/main/java/cn/originx/pbc/plugin
|
|
1093
|
-
[Zero AI] Zero AI 1.2. 初始化资源目录......
|
|
1094
|
-
[Zero AI] 创建目录:<工作目录>/src/main/resources/plugin
|
|
1095
|
-
[Zero AI] 创建目录:<工作目录>/src/main/resources/plugin/pbc
|
|
1096
|
-
[Zero AI] 创建目录:<工作目录>/src/main/resources/plugin/pbc/annal
|
|
1097
|
-
[Zero AI] Zero AI 2. 生成代码......
|
|
1098
|
-
[Zero AI] Zero AI 2.1. backlog日志配置......
|
|
1099
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/annal/infix.xml!
|
|
1100
|
-
[Zero AI] Zero AI 2.2.1. 「默认」集成配置......
|
|
1101
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/integration.json!
|
|
1102
|
-
[Zero AI] Zero AI 2.2.2. 「开发」集成配置......
|
|
1103
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/integration-dev.json!
|
|
1104
|
-
[Zero AI] Zero AI 2.2.3. 「生产」集成配置......
|
|
1105
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/integration-prod.json!
|
|
1106
|
-
[Zero AI] Zero AI 2.2.4. 基础配置......
|
|
1107
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/resources/plugin/pbc/configuration.json!
|
|
1108
|
-
[Zero AI] Zero AI 2.3.1. 常量处理......
|
|
1109
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/cv/PbCv.java!
|
|
1110
|
-
[Zero AI] Zero AI 2.3.2. Before/After 插件处理......
|
|
1111
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/plugin/AbstractPbBefore.java!
|
|
1112
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/plugin/AbstractPbAfter.java!
|
|
1113
|
-
[Zero AI] Zero AI 2.3.3. Refine 工具处理......
|
|
1114
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/refine/PbLog.java!
|
|
1115
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/refine/PbPin.java!
|
|
1116
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/refine/Pb.java!
|
|
1117
|
-
[Zero AI] Zero AI 2.3.4. Error 异常类处理......
|
|
1118
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/error/_501PbIoNullException.java!
|
|
1119
|
-
[Zero AI] Zero AI 2.3.5. Component 通道组件......
|
|
1120
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/component/AbstractPbComponent.java!
|
|
1121
|
-
[Zero AI] Zero AI 2.3.6. In 组件处理......
|
|
1122
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/input/PbIn.java!
|
|
1123
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/input/AbstractPbIn.java!
|
|
1124
|
-
[Zero AI] Zero AI 2.3.7. Out 组件处理......
|
|
1125
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIo.java!
|
|
1126
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/AbstractPbIo.java!
|
|
1127
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIoAdd.java!
|
|
1128
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIoUpdate.java!
|
|
1129
|
-
[Zero AI] (Sync)成功将数据写入到文件:<工作目录>/src/main/java/cn/originx/pbc/output/PbIoDelete.java!
|
|
1130
|
-
[Zero AI] Zero AI 3. 执行完成......
|
|
914
|
+
<pre class="prettyprint source lang-shell"><code>aj rs -c <config> -o <output>
|
|
1131
915
|
</code></pre>
|
|
1132
|
-
<h3>3. 选项</h3>
|
|
1133
|
-
<h4>3.1. 基本说明</h4>
|
|
1134
916
|
<table>
|
|
1135
917
|
<thead>
|
|
1136
918
|
<tr>
|
|
@@ -1143,28 +925,63 @@ aj plugin -m pbc
|
|
|
1143
925
|
</thead>
|
|
1144
926
|
<tbody>
|
|
1145
927
|
<tr>
|
|
1146
|
-
<td>-
|
|
1147
|
-
<td>--
|
|
928
|
+
<td>-c</td>
|
|
929
|
+
<td>--config</td>
|
|
1148
930
|
<td>String</td>
|
|
1149
931
|
<td>无</td>
|
|
1150
|
-
<td style="text-align:left"
|
|
932
|
+
<td style="text-align:left">配置文件路径。</td>
|
|
1151
933
|
</tr>
|
|
1152
934
|
<tr>
|
|
1153
|
-
<td>-
|
|
1154
|
-
<td>--
|
|
935
|
+
<td>-o</td>
|
|
936
|
+
<td>--output</td>
|
|
1155
937
|
<td>String</td>
|
|
1156
938
|
<td>无</td>
|
|
1157
|
-
<td style="text-align:left"
|
|
1158
|
-
</tr>
|
|
1159
|
-
<tr>
|
|
1160
|
-
<td>-c</td>
|
|
1161
|
-
<td>--config</td>
|
|
1162
|
-
<td>String</td>
|
|
1163
|
-
<td><code>workspace.json</code></td>
|
|
1164
|
-
<td style="text-align:left">配置文件路径。</td>
|
|
939
|
+
<td style="text-align:left">输出目录路径。</td>
|
|
1165
940
|
</tr>
|
|
1166
941
|
</tbody>
|
|
1167
942
|
</table>
|
|
943
|
+
<h3>2. 介绍</h3>
|
|
944
|
+
<p>此命令为 <code>zero-crud</code> 模块量身打造的命令,最新BUG修复之后,您可以直接使用此命令生成专用 Excel/Json 配置文件,并将此文件数据导入到系统中,即可直接连接 <code>zero-rbac</code> 实现接口的权限授权处理。</p>
|
|
945
|
+
<h3>3. 执行</h3>
|
|
946
|
+
<pre class="prettyprint source lang-shell"><code>aj rs -c nm-law.json -o .
|
|
947
|
+
[Zero AI] Zero Ecotope AI工具项 : <专用工具>
|
|
948
|
+
[Zero AI] HomePage : http://www.vertxai.cn
|
|
949
|
+
[Zero AI] Github : https://github.com/silentbalanceyh/vertx-ai.git
|
|
950
|
+
[Zero AI] Version : 0.3.27 「确认您的Node版本 ( >= 18.x ) 支持ES6, ES7.」
|
|
951
|
+
[Zero AI] AI 系统启动......
|
|
952
|
+
[Zero AI] Zero AI 加载输入参数:
|
|
953
|
+
{
|
|
954
|
+
"config": "nm-law.json",
|
|
955
|
+
"out": "."
|
|
956
|
+
}
|
|
957
|
+
[Zero AI] Zero AI 1. 准备生成资源信息..., {"NAME":"法规","MODULE":"doc.law","ID":"nm.law","API":"nm-law","TYPE":"resource.document"}
|
|
958
|
+
[Zero AI] Zero AI 2. 生成 Zero Extension 资源文件...
|
|
959
|
+
[Zero AI] Zero AI 2.1. 数据加载中,替换原始文件……
|
|
960
|
+
[Zero AI] Zero AI 2.2. 分析结果:最大行 - 64,最大列 - 16384。
|
|
961
|
+
[Zero AI] Zero AI 2.3. 正在解析表达式......
|
|
962
|
+
[Zero AI] Zero AI 2.4. 创建新数据文件......
|
|
963
|
+
[Zero AI] Zero AI 执行Worksheet:./nm.law.xlsx。
|
|
964
|
+
[Zero AI] Zero AI 3. 资源生成完成...
|
|
965
|
+
[Zero AI] Zero AI 4. 准备生成权限信息..., {"NAME":"法规","MODULE":"doc.law","ID":"nm.law","API":"nm-law","TYPE":"resource.document"}
|
|
966
|
+
[Zero AI] Zero AI 2.1. 数据加载中,替换原始文件……
|
|
967
|
+
[Zero AI] Zero AI 2.2. 分析结果:最大行 - 20,最大列 - 16384。
|
|
968
|
+
[Zero AI] Zero AI 2.3. 正在解析表达式......
|
|
969
|
+
[Zero AI] Zero AI 2.4. 创建新数据文件......
|
|
970
|
+
[Zero AI] Zero AI 执行Worksheet:./falcon.nm.law.xlsx。
|
|
971
|
+
[Zero AI] Zero AI 5. 权限文件生成完成...
|
|
972
|
+
[Zero AI] Zero AI 执行完成...
|
|
973
|
+
[Zero AI] (Async)成功将数据写入到文件:./nm.law.json!
|
|
974
|
+
</code></pre>
|
|
975
|
+
<h3>4. 配置文件</h3>
|
|
976
|
+
<p>此处特殊说明一下输入配置文件的基本格式和内容:</p>
|
|
977
|
+
<pre class="prettyprint source lang-json"><code>{
|
|
978
|
+
"name": "界面显示的业务模块名称",
|
|
979
|
+
"module": "生成资源码、权限码、行为码专用和当前模型绑定的模块名称",
|
|
980
|
+
"identifier": "模型的统一标识符,静态和动态都可支持",
|
|
981
|
+
"api": "crud接口中的 :actor 参数",
|
|
982
|
+
"type": "对应到 S_RESOURCE 中的 TYPE 字段实现资源定义和资源管理专用"
|
|
983
|
+
}
|
|
984
|
+
</code></pre>
|
|
1168
985
|
</div>
|
|
1169
986
|
|
|
1170
987
|
|
|
@@ -1214,7 +1031,7 @@ aj plugin -m pbc
|
|
|
1214
1031
|
<br class="clear">
|
|
1215
1032
|
|
|
1216
1033
|
<footer>
|
|
1217
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on
|
|
1034
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun Jul 23 2023 12:31:31 GMT+0800 (China Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1218
1035
|
</footer>
|
|
1219
1036
|
|
|
1220
1037
|
<script>prettyPrint();</script>
|