deeke-script-app 2.0.0 → 2.0.1

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.
@@ -1,827 +1,827 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "DeekeScript 配置文件",
4
- "description": "DeekeScript Android 项目配置文件,用于动态渲染页面",
5
- "type": "object",
6
- "required": [
7
- "name",
8
- "packageName",
9
- "versionCode",
10
- "versionName",
11
- "icon",
12
- "host",
13
- "switchSetting",
14
- "bottomMenusHidden",
15
- "groups",
16
- "bottomMenus",
17
- "settingLists",
18
- "apis"
19
- ],
20
- "additionalProperties": false,
21
- "properties": {
22
- "$schema": {
23
- "type": "string",
24
- "description": "JSON Schema 引用路径"
25
- },
26
- "name": {
27
- "type": "string",
28
- "description": "App安装成功之后,在手机上的名称"
29
- },
30
- "packageName": {
31
- "type": "string",
32
- "description": "包名,如:cn.deeke.script"
33
- },
34
- "versionCode": {
35
- "type": "string",
36
- "description": "版本号(软件自动升级凭证,当前版本号大于或者等于后台上传的版本号,则无法升级)"
37
- },
38
- "versionName": {
39
- "type": "string",
40
- "description": "版本名称,尽量和版本号统一(版本号100,则配置为1.0.0)"
41
- },
42
- "icon": {
43
- "type": "string",
44
- "description": "图标建议采用200*200像素的,清晰度大的"
45
- },
46
- "head": {
47
- "type": "string",
48
- "description": "App中用户设置页面的头像,无设置页可以不填"
49
- },
50
- "settingTopBg": {
51
- "type": "string",
52
- "description": "设置页面顶部背景图"
53
- },
54
- "debug": {
55
- "type": "boolean",
56
- "description": "默认为true(不需要激活码也可以启动脚本),如果需要激活才能使用APP,请设置为false",
57
- "default": true
58
- },
59
- "host": {
60
- "type": "string",
61
- "description": "接口请求域名",
62
- "format": "uri"
63
- },
64
- "bottomMenusHidden": {
65
- "type": "boolean",
66
- "default": false,
67
- "description": "是否隐藏底部菜单"
68
- },
69
- "switchSetting": {
70
- "type": "object",
71
- "description": "功能开关设置",
72
- "required": [
73
- "alipay",
74
- "showAd"
75
- ],
76
- "additionalProperties": false,
77
- "properties": {
78
- "alipay": {
79
- "type": "boolean",
80
- "description": "支持支付宝支付"
81
- },
82
- "showAd": {
83
- "type": "boolean",
84
- "description": "是否展示开屏广告"
85
- }
86
- }
87
- },
88
- "hooks": {
89
- "type": "object",
90
- "description": "生命周期钩子函数配置",
91
- "additionalProperties": false,
92
- "properties": {
93
- "app_start_before": {
94
- "type": "string",
95
- "description": "应用启动前执行的钩子函数文件路径"
96
- },
97
- "app_start": {
98
- "type": "string",
99
- "description": "应用启动时执行的钩子函数文件路径"
100
- },
101
- "app_active_after": {
102
- "type": "string",
103
- "description": "应用激活后执行的钩子函数文件路径"
104
- }
105
- }
106
- },
107
- "groups": {
108
- "type": "array",
109
- "description": "主界面的功能组,每组都会包含若干个功能",
110
- "items": {
111
- "type": "object",
112
- "required": [
113
- "title",
114
- "methods"
115
- ],
116
- "additionalProperties": false,
117
- "properties": {
118
- "title": {
119
- "type": "string",
120
- "description": "App主界面的功能名称"
121
- },
122
- "titleHidden": {
123
- "type": "boolean",
124
- "description": "App主界面功能组标题是否隐藏,默认不隐藏",
125
- "default": false
126
- },
127
- "hidden": {
128
- "type": "boolean",
129
- "description": "是否隐藏当前功能组,默认不隐藏",
130
- "default": false
131
- },
132
- "methods": {
133
- "type": "array",
134
- "description": "当前功能组下的功能列表",
135
- "items": {
136
- "$ref": "#/definitions/method"
137
- }
138
- }
139
- }
140
- }
141
- },
142
- "bottomMenus": {
143
- "type": "array",
144
- "description": "App中底部菜单,可以使用系统内置的,也可以自定义",
145
- "items": {
146
- "type": "object",
147
- "required": [
148
- "title",
149
- "icon",
150
- "type"
151
- ],
152
- "additionalProperties": false,
153
- "properties": {
154
- "title": {
155
- "type": "string",
156
- "description": "菜单标题,可使用 {NAME} 占位符"
157
- },
158
- "icon": {
159
- "type": "string",
160
- "description": "菜单图标路径"
161
- },
162
- "banner": {
163
- "type": "string",
164
- "description": "横幅图片路径"
165
- },
166
- "type": {
167
- "type": "string",
168
- "description": "菜单类型",
169
- "enum": [
170
- "home",
171
- "speech",
172
- "setting"
173
- ]
174
- }
175
- }
176
- }
177
- },
178
- "settingLists": {
179
- "type": "array",
180
- "description": "App中设置页的列表项,可以使用系统内置的,也可以自定义",
181
- "items": {
182
- "type": "object",
183
- "required": [
184
- "title",
185
- "icon",
186
- "type"
187
- ],
188
- "additionalProperties": false,
189
- "properties": {
190
- "title": {
191
- "type": "string",
192
- "description": "设置项标题"
193
- },
194
- "icon": {
195
- "type": "string",
196
- "description": "设置项图标路径"
197
- },
198
- "type": {
199
- "type": "string",
200
- "description": "设置项类型",
201
- "enum": [
202
- "customerService",
203
- "notice",
204
- "settingService",
205
- "statistics",
206
- "uploadLog",
207
- "updateApp",
208
- "clear",
209
- "qiwei",
210
- "execJs"
211
- ]
212
- },
213
- "description": {
214
- "type": "string",
215
- "description": "设置项描述"
216
- },
217
- "file": {
218
- "type": "string",
219
- "description": "文件路径(用于 notice 类型)"
220
- },
221
- "url": {
222
- "type": "string",
223
- "description": "接口URL"
224
- },
225
- "jsFile": {
226
- "type": "string",
227
- "description": "JavaScript文件路径"
228
- },
229
- "hidden": {
230
- "type": "boolean",
231
- "description": "是否隐藏",
232
- "default": false
233
- },
234
- "settingPage": {
235
- "$ref": "#/definitions/settingPage"
236
- }
237
- }
238
- }
239
- },
240
- "apis": {
241
- "type": "array",
242
- "description": "设置相关api,比如激活码api,验证激活码是否有效api等",
243
- "items": {
244
- "type": "object",
245
- "required": [
246
- "type",
247
- "url"
248
- ],
249
- "additionalProperties": false,
250
- "properties": {
251
- "type": {
252
- "type": "string",
253
- "description": "API类型",
254
- "enum": [
255
- "bind",
256
- "checkBind",
257
- "aiSpeechToken",
258
- "config",
259
- "getToken",
260
- "createOrder"
261
- ]
262
- },
263
- "url": {
264
- "type": "string",
265
- "description": "API接口路径"
266
- }
267
- }
268
- }
269
- }
270
- },
271
- "definitions": {
272
- "method": {
273
- "type": "object",
274
- "required": [
275
- "title",
276
- "icon"
277
- ],
278
- "additionalProperties": false,
279
- "properties": {
280
- "title": {
281
- "type": "string",
282
- "description": "App主界面的功能名称"
283
- },
284
- "icon": {
285
- "type": "string",
286
- "description": "App主界面的功能图标"
287
- },
288
- "jsFile": {
289
- "type": "string",
290
- "description": "功能实际执行的代码所在文件"
291
- },
292
- "settingPage": {
293
- "$ref": "#/definitions/settingPage"
294
- },
295
- "hidden": {
296
- "type": "boolean",
297
- "description": "属性值,当为true的时候,则界面上不再显示此功能模块",
298
- "default": false
299
- },
300
- "runType": {
301
- "type": "string",
302
- "description": "如果为floatSwitch则需要手动点击右侧悬浮窗执行",
303
- "enum": [
304
- "floatSwitch"
305
- ]
306
- },
307
- "packageName": {
308
- "type": "string",
309
- "description": "包名,和runType配合使用"
310
- },
311
- "columns": {
312
- "type": "number",
313
- "description": "每行被等分为24,8则表示当前groups一行放3个功能图标"
314
- },
315
- "autoOpen": {
316
- "type": "boolean",
317
- "description": "是否自动打开界面(需要和packageName配合使用)"
318
- },
319
- "activity": {
320
- "type": "object",
321
- "description": "活动配置",
322
- "additionalProperties": false,
323
- "properties": {
324
- "notice": {
325
- "type": "string",
326
- "description": "活动提示"
327
- },
328
- "title": {
329
- "type": "string",
330
- "description": "活动标题"
331
- },
332
- "minVersion": {
333
- "type": "number",
334
- "description": "最小版本号"
335
- },
336
- "groups": {
337
- "type": "array",
338
- "description": "活动功能组",
339
- "items": {
340
- "type": "object",
341
- "additionalProperties": false,
342
- "properties": {
343
- "title": {
344
- "type": "string"
345
- },
346
- "titleHidden": {
347
- "type": "boolean"
348
- },
349
- "methods": {
350
- "type": "array",
351
- "items": {
352
- "$ref": "#/definitions/method"
353
- }
354
- }
355
- }
356
- }
357
- }
358
- }
359
- }
360
- }
361
- },
362
- "settingPage": {
363
- "type": "object",
364
- "required": [
365
- "params"
366
- ],
367
- "additionalProperties": false,
368
- "properties": {
369
- "params": {
370
- "type": "array",
371
- "description": "需要用户设置的参数",
372
- "items": {
373
- "$ref": "#/definitions/param"
374
- }
375
- }
376
- }
377
- },
378
- "param": {
379
- "oneOf": [
380
- {
381
- "type": "object",
382
- "required": [
383
- "type",
384
- "title"
385
- ],
386
- "additionalProperties": false,
387
- "properties": {
388
- "type": {
389
- "type": "string",
390
- "const": "notice"
391
- },
392
- "title": {
393
- "type": "string",
394
- "description": "标题"
395
- },
396
- "hidden": {
397
- "type": "boolean",
398
- "description": "是否隐藏",
399
- "default": false
400
- },
401
- "textColor": {
402
- "type": "string",
403
- "description": "文本颜色",
404
- "pattern": "^#[0-9A-Fa-f]{6}$"
405
- },
406
- "textSize": {
407
- "type": "number",
408
- "description": "文本大小"
409
- }
410
- }
411
- },
412
- {
413
- "type": "object",
414
- "required": [
415
- "type",
416
- "label",
417
- "name",
418
- "min",
419
- "max",
420
- "value"
421
- ],
422
- "additionalProperties": false,
423
- "properties": {
424
- "type": {
425
- "type": "string",
426
- "const": "numberRange"
427
- },
428
- "label": {
429
- "type": "string",
430
- "description": "标签文本"
431
- },
432
- "name": {
433
- "type": "string",
434
- "description": "参数名称(用于存储和获取值)"
435
- },
436
- "min": {
437
- "type": "number",
438
- "description": "最小值"
439
- },
440
- "max": {
441
- "type": "number",
442
- "description": "最大值"
443
- },
444
- "value": {
445
- "type": "number",
446
- "description": "默认值"
447
- },
448
- "step": {
449
- "type": "number",
450
- "description": "步长"
451
- },
452
- "hidden": {
453
- "type": "boolean",
454
- "description": "是否隐藏",
455
- "default": false
456
- }
457
- }
458
- },
459
- {
460
- "type": "object",
461
- "required": [
462
- "type",
463
- "label",
464
- "name"
465
- ],
466
- "additionalProperties": false,
467
- "properties": {
468
- "type": {
469
- "type": "string",
470
- "const": "textArea"
471
- },
472
- "label": {
473
- "type": "string",
474
- "description": "标签文本"
475
- },
476
- "name": {
477
- "type": "string",
478
- "description": "参数名称(用于存储和获取值)"
479
- },
480
- "value": {
481
- "type": "string",
482
- "description": "默认值"
483
- },
484
- "hint": {
485
- "type": "string",
486
- "description": "提示文本"
487
- },
488
- "notice": {
489
- "type": "string",
490
- "description": "通知文本"
491
- },
492
- "lines": {
493
- "type": "number",
494
- "description": "行数"
495
- },
496
- "hidden": {
497
- "type": "boolean",
498
- "description": "是否隐藏",
499
- "default": false
500
- }
501
- }
502
- },
503
- {
504
- "type": "object",
505
- "required": [
506
- "type",
507
- "label",
508
- "name",
509
- "children",
510
- "values"
511
- ],
512
- "additionalProperties": false,
513
- "properties": {
514
- "type": {
515
- "type": "string",
516
- "const": "checkboxGroup"
517
- },
518
- "label": {
519
- "type": "string",
520
- "description": "标签文本"
521
- },
522
- "name": {
523
- "type": "string",
524
- "description": "参数名称(用于存储和获取值)"
525
- },
526
- "children": {
527
- "type": "array",
528
- "description": "子选项",
529
- "items": {
530
- "type": "string"
531
- }
532
- },
533
- "values": {
534
- "type": "array",
535
- "description": "值列表",
536
- "items": {
537
- "type": "string"
538
- }
539
- },
540
- "columnCount": {
541
- "type": "number",
542
- "description": "列数"
543
- },
544
- "hidden": {
545
- "type": "boolean",
546
- "description": "是否隐藏",
547
- "default": false
548
- }
549
- }
550
- },
551
- {
552
- "type": "object",
553
- "required": [
554
- "type",
555
- "label",
556
- "name"
557
- ],
558
- "additionalProperties": false,
559
- "properties": {
560
- "type": {
561
- "type": "string",
562
- "const": "number"
563
- },
564
- "label": {
565
- "type": "string",
566
- "description": "标签文本"
567
- },
568
- "name": {
569
- "type": "string",
570
- "description": "参数名称(用于存储和获取值)"
571
- },
572
- "value": {
573
- "type": "number",
574
- "description": "默认值(数字类型)"
575
- },
576
- "hint": {
577
- "type": "string",
578
- "description": "提示文本"
579
- },
580
- "notice": {
581
- "type": "string",
582
- "description": "通知文本"
583
- },
584
- "hidden": {
585
- "type": "boolean",
586
- "description": "是否隐藏",
587
- "default": false
588
- }
589
- }
590
- },
591
- {
592
- "type": "object",
593
- "required": [
594
- "type",
595
- "label",
596
- "name"
597
- ],
598
- "additionalProperties": false,
599
- "properties": {
600
- "type": {
601
- "type": "string",
602
- "const": "digit"
603
- },
604
- "label": {
605
- "type": "string",
606
- "description": "标签文本"
607
- },
608
- "name": {
609
- "type": "string",
610
- "description": "参数名称(用于存储和获取值)"
611
- },
612
- "value": {
613
- "type": "integer",
614
- "description": "默认值(整数类型)"
615
- },
616
- "hint": {
617
- "type": "string",
618
- "description": "提示文本"
619
- },
620
- "notice": {
621
- "type": "string",
622
- "description": "通知文本"
623
- },
624
- "hidden": {
625
- "type": "boolean",
626
- "description": "是否隐藏",
627
- "default": false
628
- }
629
- }
630
- },
631
- {
632
- "type": "object",
633
- "required": [
634
- "type",
635
- "label",
636
- "name",
637
- "min",
638
- "max",
639
- "value"
640
- ],
641
- "additionalProperties": false,
642
- "properties": {
643
- "type": {
644
- "type": "string",
645
- "const": "digitRange"
646
- },
647
- "label": {
648
- "type": "string",
649
- "description": "标签文本"
650
- },
651
- "name": {
652
- "type": "string",
653
- "description": "参数名称(用于存储和获取值)"
654
- },
655
- "min": {
656
- "type": "integer",
657
- "description": "最小值(整数)"
658
- },
659
- "max": {
660
- "type": "integer",
661
- "description": "最大值(整数)"
662
- },
663
- "value": {
664
- "type": "integer",
665
- "description": "默认值(整数)"
666
- },
667
- "step": {
668
- "type": "integer",
669
- "description": "步长(整数)"
670
- },
671
- "hidden": {
672
- "type": "boolean",
673
- "description": "是否隐藏",
674
- "default": false
675
- }
676
- }
677
- },
678
- {
679
- "type": "object",
680
- "required": [
681
- "type",
682
- "label",
683
- "name"
684
- ],
685
- "additionalProperties": false,
686
- "properties": {
687
- "type": {
688
- "type": "string",
689
- "const": "switch"
690
- },
691
- "label": {
692
- "type": "string",
693
- "description": "标签文本"
694
- },
695
- "name": {
696
- "type": "string",
697
- "description": "参数名称(用于存储和获取值)"
698
- },
699
- "value": {
700
- "type": "boolean",
701
- "description": "默认值(布尔类型)"
702
- },
703
- "hint": {
704
- "type": "string",
705
- "description": "提示文本"
706
- },
707
- "notice": {
708
- "type": "string",
709
- "description": "通知文本"
710
- },
711
- "hidden": {
712
- "type": "boolean",
713
- "description": "是否隐藏",
714
- "default": false
715
- },
716
- "childrenParams": {
717
- "type": "array",
718
- "description": "子表单参数列表(仅在 switch 类型下使用,当 switch 开启时显示)",
719
- "items": {
720
- "$ref": "#/definitions/param"
721
- }
722
- }
723
- }
724
- },
725
- {
726
- "type": "object",
727
- "required": [
728
- "type",
729
- "label",
730
- "name"
731
- ],
732
- "additionalProperties": false,
733
- "properties": {
734
- "type": {
735
- "type": "string",
736
- "const": "text"
737
- },
738
- "label": {
739
- "type": "string",
740
- "description": "标签文本"
741
- },
742
- "name": {
743
- "type": "string",
744
- "description": "参数名称(用于存储和获取值)"
745
- },
746
- "value": {
747
- "type": "string",
748
- "description": "默认值"
749
- },
750
- "hint": {
751
- "type": "string",
752
- "description": "提示文本"
753
- },
754
- "notice": {
755
- "type": "string",
756
- "description": "通知文本"
757
- },
758
- "lines": {
759
- "type": "number",
760
- "description": "行数(用于多行文本)"
761
- },
762
- "hidden": {
763
- "type": "boolean",
764
- "description": "是否隐藏",
765
- "default": false
766
- }
767
- }
768
- },
769
- {
770
- "type": "object",
771
- "required": [
772
- "type",
773
- "label",
774
- "name"
775
- ],
776
- "additionalProperties": false,
777
- "properties": {
778
- "type": {
779
- "type": "string",
780
- "enum": [
781
- "radio",
782
- "select"
783
- ]
784
- },
785
- "label": {
786
- "type": "string",
787
- "description": "标签文本"
788
- },
789
- "name": {
790
- "type": "string",
791
- "description": "参数名称(用于存储和获取值)"
792
- },
793
- "value": {
794
- "type": "string",
795
- "description": "默认值"
796
- },
797
- "options": {
798
- "type": "array",
799
- "description": "选项列表",
800
- "items": {
801
- "type": "object",
802
- "additionalProperties": false,
803
- "properties": {
804
- "label": {
805
- "type": "string"
806
- },
807
- "value": {
808
- "type": "string"
809
- }
810
- }
811
- }
812
- },
813
- "dataFrom": {
814
- "type": "string",
815
- "description": "数据来源(如:role)"
816
- },
817
- "hidden": {
818
- "type": "boolean",
819
- "description": "是否隐藏",
820
- "default": false
821
- }
822
- }
823
- }
824
- ]
825
- }
826
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "DeekeScript 配置文件",
4
+ "description": "DeekeScript Android 项目配置文件,用于动态渲染页面",
5
+ "type": "object",
6
+ "required": [
7
+ "name",
8
+ "packageName",
9
+ "versionCode",
10
+ "versionName",
11
+ "icon",
12
+ "host",
13
+ "switchSetting",
14
+ "bottomMenusHidden",
15
+ "groups",
16
+ "bottomMenus",
17
+ "settingLists",
18
+ "apis"
19
+ ],
20
+ "additionalProperties": false,
21
+ "properties": {
22
+ "$schema": {
23
+ "type": "string",
24
+ "description": "JSON Schema 引用路径"
25
+ },
26
+ "name": {
27
+ "type": "string",
28
+ "description": "App安装成功之后,在手机上的名称"
29
+ },
30
+ "packageName": {
31
+ "type": "string",
32
+ "description": "包名,如:cn.deeke.script"
33
+ },
34
+ "versionCode": {
35
+ "type": "string",
36
+ "description": "版本号(软件自动升级凭证,当前版本号大于或者等于后台上传的版本号,则无法升级)"
37
+ },
38
+ "versionName": {
39
+ "type": "string",
40
+ "description": "版本名称,尽量和版本号统一(版本号100,则配置为1.0.0)"
41
+ },
42
+ "icon": {
43
+ "type": "string",
44
+ "description": "图标建议采用200*200像素的,清晰度大的"
45
+ },
46
+ "head": {
47
+ "type": "string",
48
+ "description": "App中用户设置页面的头像,无设置页可以不填"
49
+ },
50
+ "settingTopBg": {
51
+ "type": "string",
52
+ "description": "设置页面顶部背景图"
53
+ },
54
+ "debug": {
55
+ "type": "boolean",
56
+ "description": "默认为true(不需要激活码也可以启动脚本),如果需要激活才能使用APP,请设置为false",
57
+ "default": true
58
+ },
59
+ "host": {
60
+ "type": "string",
61
+ "description": "接口请求域名",
62
+ "format": "uri"
63
+ },
64
+ "bottomMenusHidden": {
65
+ "type": "boolean",
66
+ "default": false,
67
+ "description": "是否隐藏底部菜单"
68
+ },
69
+ "switchSetting": {
70
+ "type": "object",
71
+ "description": "功能开关设置",
72
+ "required": [
73
+ "alipay",
74
+ "showAd"
75
+ ],
76
+ "additionalProperties": false,
77
+ "properties": {
78
+ "alipay": {
79
+ "type": "boolean",
80
+ "description": "支持支付宝支付"
81
+ },
82
+ "showAd": {
83
+ "type": "boolean",
84
+ "description": "是否展示开屏广告"
85
+ }
86
+ }
87
+ },
88
+ "hooks": {
89
+ "type": "object",
90
+ "description": "生命周期钩子函数配置",
91
+ "additionalProperties": false,
92
+ "properties": {
93
+ "app_start_before": {
94
+ "type": "string",
95
+ "description": "应用启动前执行的钩子函数文件路径"
96
+ },
97
+ "app_start": {
98
+ "type": "string",
99
+ "description": "应用启动时执行的钩子函数文件路径"
100
+ },
101
+ "app_active_after": {
102
+ "type": "string",
103
+ "description": "应用激活后执行的钩子函数文件路径"
104
+ }
105
+ }
106
+ },
107
+ "groups": {
108
+ "type": "array",
109
+ "description": "主界面的功能组,每组都会包含若干个功能",
110
+ "items": {
111
+ "type": "object",
112
+ "required": [
113
+ "title",
114
+ "methods"
115
+ ],
116
+ "additionalProperties": false,
117
+ "properties": {
118
+ "title": {
119
+ "type": "string",
120
+ "description": "App主界面的功能名称"
121
+ },
122
+ "titleHidden": {
123
+ "type": "boolean",
124
+ "description": "App主界面功能组标题是否隐藏,默认不隐藏",
125
+ "default": false
126
+ },
127
+ "hidden": {
128
+ "type": "boolean",
129
+ "description": "是否隐藏当前功能组,默认不隐藏",
130
+ "default": false
131
+ },
132
+ "methods": {
133
+ "type": "array",
134
+ "description": "当前功能组下的功能列表",
135
+ "items": {
136
+ "$ref": "#/definitions/method"
137
+ }
138
+ }
139
+ }
140
+ }
141
+ },
142
+ "bottomMenus": {
143
+ "type": "array",
144
+ "description": "App中底部菜单,可以使用系统内置的,也可以自定义",
145
+ "items": {
146
+ "type": "object",
147
+ "required": [
148
+ "title",
149
+ "icon",
150
+ "type"
151
+ ],
152
+ "additionalProperties": false,
153
+ "properties": {
154
+ "title": {
155
+ "type": "string",
156
+ "description": "菜单标题,可使用 {NAME} 占位符"
157
+ },
158
+ "icon": {
159
+ "type": "string",
160
+ "description": "菜单图标路径"
161
+ },
162
+ "banner": {
163
+ "type": "string",
164
+ "description": "横幅图片路径"
165
+ },
166
+ "type": {
167
+ "type": "string",
168
+ "description": "菜单类型",
169
+ "enum": [
170
+ "home",
171
+ "speech",
172
+ "setting"
173
+ ]
174
+ }
175
+ }
176
+ }
177
+ },
178
+ "settingLists": {
179
+ "type": "array",
180
+ "description": "App中设置页的列表项,可以使用系统内置的,也可以自定义",
181
+ "items": {
182
+ "type": "object",
183
+ "required": [
184
+ "title",
185
+ "icon",
186
+ "type"
187
+ ],
188
+ "additionalProperties": false,
189
+ "properties": {
190
+ "title": {
191
+ "type": "string",
192
+ "description": "设置项标题"
193
+ },
194
+ "icon": {
195
+ "type": "string",
196
+ "description": "设置项图标路径"
197
+ },
198
+ "type": {
199
+ "type": "string",
200
+ "description": "设置项类型",
201
+ "enum": [
202
+ "customerService",
203
+ "notice",
204
+ "settingService",
205
+ "statistics",
206
+ "uploadLog",
207
+ "updateApp",
208
+ "clear",
209
+ "qiwei",
210
+ "execJs"
211
+ ]
212
+ },
213
+ "description": {
214
+ "type": "string",
215
+ "description": "设置项描述"
216
+ },
217
+ "file": {
218
+ "type": "string",
219
+ "description": "文件路径(用于 notice 类型)"
220
+ },
221
+ "url": {
222
+ "type": "string",
223
+ "description": "接口URL"
224
+ },
225
+ "jsFile": {
226
+ "type": "string",
227
+ "description": "JavaScript文件路径"
228
+ },
229
+ "hidden": {
230
+ "type": "boolean",
231
+ "description": "是否隐藏",
232
+ "default": false
233
+ },
234
+ "settingPage": {
235
+ "$ref": "#/definitions/settingPage"
236
+ }
237
+ }
238
+ }
239
+ },
240
+ "apis": {
241
+ "type": "array",
242
+ "description": "设置相关api,比如激活码api,验证激活码是否有效api等",
243
+ "items": {
244
+ "type": "object",
245
+ "required": [
246
+ "type",
247
+ "url"
248
+ ],
249
+ "additionalProperties": false,
250
+ "properties": {
251
+ "type": {
252
+ "type": "string",
253
+ "description": "API类型",
254
+ "enum": [
255
+ "bind",
256
+ "checkBind",
257
+ "aiSpeechToken",
258
+ "config",
259
+ "getToken",
260
+ "createOrder"
261
+ ]
262
+ },
263
+ "url": {
264
+ "type": "string",
265
+ "description": "API接口路径"
266
+ }
267
+ }
268
+ }
269
+ }
270
+ },
271
+ "definitions": {
272
+ "method": {
273
+ "type": "object",
274
+ "required": [
275
+ "title",
276
+ "icon"
277
+ ],
278
+ "additionalProperties": false,
279
+ "properties": {
280
+ "title": {
281
+ "type": "string",
282
+ "description": "App主界面的功能名称"
283
+ },
284
+ "icon": {
285
+ "type": "string",
286
+ "description": "App主界面的功能图标"
287
+ },
288
+ "jsFile": {
289
+ "type": "string",
290
+ "description": "功能实际执行的代码所在文件"
291
+ },
292
+ "settingPage": {
293
+ "$ref": "#/definitions/settingPage"
294
+ },
295
+ "hidden": {
296
+ "type": "boolean",
297
+ "description": "属性值,当为true的时候,则界面上不再显示此功能模块",
298
+ "default": false
299
+ },
300
+ "runType": {
301
+ "type": "string",
302
+ "description": "如果为floatSwitch则需要手动点击右侧悬浮窗执行",
303
+ "enum": [
304
+ "floatSwitch"
305
+ ]
306
+ },
307
+ "packageName": {
308
+ "type": "string",
309
+ "description": "包名,和runType配合使用"
310
+ },
311
+ "columns": {
312
+ "type": "number",
313
+ "description": "每行被等分为24,8则表示当前groups一行放3个功能图标"
314
+ },
315
+ "autoOpen": {
316
+ "type": "boolean",
317
+ "description": "是否自动打开界面(需要和packageName配合使用)"
318
+ },
319
+ "activity": {
320
+ "type": "object",
321
+ "description": "活动配置",
322
+ "additionalProperties": false,
323
+ "properties": {
324
+ "notice": {
325
+ "type": "string",
326
+ "description": "活动提示"
327
+ },
328
+ "title": {
329
+ "type": "string",
330
+ "description": "活动标题"
331
+ },
332
+ "minVersion": {
333
+ "type": "number",
334
+ "description": "最小版本号"
335
+ },
336
+ "groups": {
337
+ "type": "array",
338
+ "description": "活动功能组",
339
+ "items": {
340
+ "type": "object",
341
+ "additionalProperties": false,
342
+ "properties": {
343
+ "title": {
344
+ "type": "string"
345
+ },
346
+ "titleHidden": {
347
+ "type": "boolean"
348
+ },
349
+ "methods": {
350
+ "type": "array",
351
+ "items": {
352
+ "$ref": "#/definitions/method"
353
+ }
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ },
362
+ "settingPage": {
363
+ "type": "object",
364
+ "required": [
365
+ "params"
366
+ ],
367
+ "additionalProperties": false,
368
+ "properties": {
369
+ "params": {
370
+ "type": "array",
371
+ "description": "需要用户设置的参数",
372
+ "items": {
373
+ "$ref": "#/definitions/param"
374
+ }
375
+ }
376
+ }
377
+ },
378
+ "param": {
379
+ "oneOf": [
380
+ {
381
+ "type": "object",
382
+ "required": [
383
+ "type",
384
+ "title"
385
+ ],
386
+ "additionalProperties": false,
387
+ "properties": {
388
+ "type": {
389
+ "type": "string",
390
+ "const": "notice"
391
+ },
392
+ "title": {
393
+ "type": "string",
394
+ "description": "标题"
395
+ },
396
+ "hidden": {
397
+ "type": "boolean",
398
+ "description": "是否隐藏",
399
+ "default": false
400
+ },
401
+ "textColor": {
402
+ "type": "string",
403
+ "description": "文本颜色",
404
+ "pattern": "^#[0-9A-Fa-f]{6}$"
405
+ },
406
+ "textSize": {
407
+ "type": "number",
408
+ "description": "文本大小"
409
+ }
410
+ }
411
+ },
412
+ {
413
+ "type": "object",
414
+ "required": [
415
+ "type",
416
+ "label",
417
+ "name",
418
+ "min",
419
+ "max",
420
+ "value"
421
+ ],
422
+ "additionalProperties": false,
423
+ "properties": {
424
+ "type": {
425
+ "type": "string",
426
+ "const": "numberRange"
427
+ },
428
+ "label": {
429
+ "type": "string",
430
+ "description": "标签文本"
431
+ },
432
+ "name": {
433
+ "type": "string",
434
+ "description": "参数名称(用于存储和获取值)"
435
+ },
436
+ "min": {
437
+ "type": "number",
438
+ "description": "最小值"
439
+ },
440
+ "max": {
441
+ "type": "number",
442
+ "description": "最大值"
443
+ },
444
+ "value": {
445
+ "type": "number",
446
+ "description": "默认值"
447
+ },
448
+ "step": {
449
+ "type": "number",
450
+ "description": "步长"
451
+ },
452
+ "hidden": {
453
+ "type": "boolean",
454
+ "description": "是否隐藏",
455
+ "default": false
456
+ }
457
+ }
458
+ },
459
+ {
460
+ "type": "object",
461
+ "required": [
462
+ "type",
463
+ "label",
464
+ "name"
465
+ ],
466
+ "additionalProperties": false,
467
+ "properties": {
468
+ "type": {
469
+ "type": "string",
470
+ "const": "textArea"
471
+ },
472
+ "label": {
473
+ "type": "string",
474
+ "description": "标签文本"
475
+ },
476
+ "name": {
477
+ "type": "string",
478
+ "description": "参数名称(用于存储和获取值)"
479
+ },
480
+ "value": {
481
+ "type": "string",
482
+ "description": "默认值"
483
+ },
484
+ "hint": {
485
+ "type": "string",
486
+ "description": "提示文本"
487
+ },
488
+ "notice": {
489
+ "type": "string",
490
+ "description": "通知文本"
491
+ },
492
+ "lines": {
493
+ "type": "number",
494
+ "description": "行数"
495
+ },
496
+ "hidden": {
497
+ "type": "boolean",
498
+ "description": "是否隐藏",
499
+ "default": false
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "type": "object",
505
+ "required": [
506
+ "type",
507
+ "label",
508
+ "name",
509
+ "children",
510
+ "values"
511
+ ],
512
+ "additionalProperties": false,
513
+ "properties": {
514
+ "type": {
515
+ "type": "string",
516
+ "const": "checkboxGroup"
517
+ },
518
+ "label": {
519
+ "type": "string",
520
+ "description": "标签文本"
521
+ },
522
+ "name": {
523
+ "type": "string",
524
+ "description": "参数名称(用于存储和获取值)"
525
+ },
526
+ "children": {
527
+ "type": "array",
528
+ "description": "子选项",
529
+ "items": {
530
+ "type": "string"
531
+ }
532
+ },
533
+ "values": {
534
+ "type": "array",
535
+ "description": "值列表",
536
+ "items": {
537
+ "type": "string"
538
+ }
539
+ },
540
+ "columnCount": {
541
+ "type": "number",
542
+ "description": "列数"
543
+ },
544
+ "hidden": {
545
+ "type": "boolean",
546
+ "description": "是否隐藏",
547
+ "default": false
548
+ }
549
+ }
550
+ },
551
+ {
552
+ "type": "object",
553
+ "required": [
554
+ "type",
555
+ "label",
556
+ "name"
557
+ ],
558
+ "additionalProperties": false,
559
+ "properties": {
560
+ "type": {
561
+ "type": "string",
562
+ "const": "number"
563
+ },
564
+ "label": {
565
+ "type": "string",
566
+ "description": "标签文本"
567
+ },
568
+ "name": {
569
+ "type": "string",
570
+ "description": "参数名称(用于存储和获取值)"
571
+ },
572
+ "value": {
573
+ "type": "number",
574
+ "description": "默认值(数字类型)"
575
+ },
576
+ "hint": {
577
+ "type": "string",
578
+ "description": "提示文本"
579
+ },
580
+ "notice": {
581
+ "type": "string",
582
+ "description": "通知文本"
583
+ },
584
+ "hidden": {
585
+ "type": "boolean",
586
+ "description": "是否隐藏",
587
+ "default": false
588
+ }
589
+ }
590
+ },
591
+ {
592
+ "type": "object",
593
+ "required": [
594
+ "type",
595
+ "label",
596
+ "name"
597
+ ],
598
+ "additionalProperties": false,
599
+ "properties": {
600
+ "type": {
601
+ "type": "string",
602
+ "const": "digit"
603
+ },
604
+ "label": {
605
+ "type": "string",
606
+ "description": "标签文本"
607
+ },
608
+ "name": {
609
+ "type": "string",
610
+ "description": "参数名称(用于存储和获取值)"
611
+ },
612
+ "value": {
613
+ "type": "integer",
614
+ "description": "默认值(整数类型)"
615
+ },
616
+ "hint": {
617
+ "type": "string",
618
+ "description": "提示文本"
619
+ },
620
+ "notice": {
621
+ "type": "string",
622
+ "description": "通知文本"
623
+ },
624
+ "hidden": {
625
+ "type": "boolean",
626
+ "description": "是否隐藏",
627
+ "default": false
628
+ }
629
+ }
630
+ },
631
+ {
632
+ "type": "object",
633
+ "required": [
634
+ "type",
635
+ "label",
636
+ "name",
637
+ "min",
638
+ "max",
639
+ "value"
640
+ ],
641
+ "additionalProperties": false,
642
+ "properties": {
643
+ "type": {
644
+ "type": "string",
645
+ "const": "digitRange"
646
+ },
647
+ "label": {
648
+ "type": "string",
649
+ "description": "标签文本"
650
+ },
651
+ "name": {
652
+ "type": "string",
653
+ "description": "参数名称(用于存储和获取值)"
654
+ },
655
+ "min": {
656
+ "type": "integer",
657
+ "description": "最小值(整数)"
658
+ },
659
+ "max": {
660
+ "type": "integer",
661
+ "description": "最大值(整数)"
662
+ },
663
+ "value": {
664
+ "type": "integer",
665
+ "description": "默认值(整数)"
666
+ },
667
+ "step": {
668
+ "type": "integer",
669
+ "description": "步长(整数)"
670
+ },
671
+ "hidden": {
672
+ "type": "boolean",
673
+ "description": "是否隐藏",
674
+ "default": false
675
+ }
676
+ }
677
+ },
678
+ {
679
+ "type": "object",
680
+ "required": [
681
+ "type",
682
+ "label",
683
+ "name"
684
+ ],
685
+ "additionalProperties": false,
686
+ "properties": {
687
+ "type": {
688
+ "type": "string",
689
+ "const": "switch"
690
+ },
691
+ "label": {
692
+ "type": "string",
693
+ "description": "标签文本"
694
+ },
695
+ "name": {
696
+ "type": "string",
697
+ "description": "参数名称(用于存储和获取值)"
698
+ },
699
+ "value": {
700
+ "type": "boolean",
701
+ "description": "默认值(布尔类型)"
702
+ },
703
+ "hint": {
704
+ "type": "string",
705
+ "description": "提示文本"
706
+ },
707
+ "notice": {
708
+ "type": "string",
709
+ "description": "通知文本"
710
+ },
711
+ "hidden": {
712
+ "type": "boolean",
713
+ "description": "是否隐藏",
714
+ "default": false
715
+ },
716
+ "childrenParams": {
717
+ "type": "array",
718
+ "description": "子表单参数列表(仅在 switch 类型下使用,当 switch 开启时显示)",
719
+ "items": {
720
+ "$ref": "#/definitions/param"
721
+ }
722
+ }
723
+ }
724
+ },
725
+ {
726
+ "type": "object",
727
+ "required": [
728
+ "type",
729
+ "label",
730
+ "name"
731
+ ],
732
+ "additionalProperties": false,
733
+ "properties": {
734
+ "type": {
735
+ "type": "string",
736
+ "const": "text"
737
+ },
738
+ "label": {
739
+ "type": "string",
740
+ "description": "标签文本"
741
+ },
742
+ "name": {
743
+ "type": "string",
744
+ "description": "参数名称(用于存储和获取值)"
745
+ },
746
+ "value": {
747
+ "type": "string",
748
+ "description": "默认值"
749
+ },
750
+ "hint": {
751
+ "type": "string",
752
+ "description": "提示文本"
753
+ },
754
+ "notice": {
755
+ "type": "string",
756
+ "description": "通知文本"
757
+ },
758
+ "lines": {
759
+ "type": "number",
760
+ "description": "行数(用于多行文本)"
761
+ },
762
+ "hidden": {
763
+ "type": "boolean",
764
+ "description": "是否隐藏",
765
+ "default": false
766
+ }
767
+ }
768
+ },
769
+ {
770
+ "type": "object",
771
+ "required": [
772
+ "type",
773
+ "label",
774
+ "name"
775
+ ],
776
+ "additionalProperties": false,
777
+ "properties": {
778
+ "type": {
779
+ "type": "string",
780
+ "enum": [
781
+ "radio",
782
+ "select"
783
+ ]
784
+ },
785
+ "label": {
786
+ "type": "string",
787
+ "description": "标签文本"
788
+ },
789
+ "name": {
790
+ "type": "string",
791
+ "description": "参数名称(用于存储和获取值)"
792
+ },
793
+ "value": {
794
+ "type": "string",
795
+ "description": "默认值"
796
+ },
797
+ "options": {
798
+ "type": "array",
799
+ "description": "选项列表",
800
+ "items": {
801
+ "type": "object",
802
+ "additionalProperties": false,
803
+ "properties": {
804
+ "label": {
805
+ "type": "string"
806
+ },
807
+ "value": {
808
+ "type": "string"
809
+ }
810
+ }
811
+ }
812
+ },
813
+ "dataFrom": {
814
+ "type": "string",
815
+ "description": "数据来源(如:role)"
816
+ },
817
+ "hidden": {
818
+ "type": "boolean",
819
+ "description": "是否隐藏",
820
+ "default": false
821
+ }
822
+ }
823
+ }
824
+ ]
825
+ }
826
+ }
827
827
  }