urbanops-architecture-ppt.html
49.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>全域运营平台 — 微服务架构技术分享</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');
:root {
--bg: #0a0e17;
--bg-card: #111827;
--bg-card2: #1a2332;
--border: #1e2d45;
--text: #e2e8f0;
--text-dim: #8899aa;
--accent: #38bdf8;
--accent2: #818cf8;
--accent3: #34d399;
--accent4: #f472b6;
--accent5: #fbbf24;
--red: #ef4444;
--orange: #f97316;
--green: #22c55e;
--blue: #3b82f6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
overflow: hidden;
height: 100vh;
width: 100vw;
}
.slides-container { width: 100%; height: 100%; position: relative; }
.slide {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 80px;
opacity: 0;
transform: scale(0.95);
transition: opacity .5s, transform .5s;
pointer-events: none;
}
.slide.active {
opacity: 1;
transform: scale(1);
pointer-events: all;
}
/* Navigation */
.nav {
position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
display: flex; gap: 12px; z-index: 100; align-items: center;
}
.nav button {
width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
background: var(--bg-card); color: var(--text); cursor: pointer;
font-size: 18px; transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.nav button:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.nav .page-indicator {
color: var(--text-dim); font-size: 14px; min-width: 80px; text-align: center;
font-variant-numeric: tabular-nums; font-family: 'Inter', monospace;
}
.nav .progress {
position: absolute; bottom: -8px; left: 0; height: 2px;
background: var(--accent); transition: width .4s; border-radius: 1px;
}
/* Typography */
h1 { font-size: 3.2em; font-weight: 900; letter-spacing: -1px; line-height: 1.2; }
h2 { font-size: 2.4em; font-weight: 700; margin-bottom: 40px; letter-spacing: -.5px; }
h3 { font-size: 1.3em; font-weight: 600; margin-bottom: 12px; }
.subtitle { font-size: 1.3em; color: var(--text-dim); margin-top: 16px; font-weight: 300; }
.gradient-text {
background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent4));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
/* Cards */
.card-grid { display: grid; gap: 20px; width: 100%; max-width: 1100px; }
.card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
padding: 28px; transition: all .3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { color: var(--accent); }
.card p, .card li { color: var(--text-dim); font-size: .92em; line-height: 1.6; }
.card ul { list-style: none; padding: 0; }
.card ul li::before { content: "▸ "; color: var(--accent); }
/* Tech tags */
.tag {
display: inline-block; padding: 4px 12px; border-radius: 20px;
font-size: .78em; font-weight: 600; margin: 3px;
}
.tag.blue { background: rgba(56,189,248,.15); color: var(--accent); }
.tag.purple { background: rgba(129,140,248,.15); color: var(--accent2); }
.tag.green { background: rgba(52,211,153,.15); color: var(--accent3); }
.tag.pink { background: rgba(244,114,182,.15); color: var(--accent4); }
.tag.yellow { background: rgba(251,191,36,.15); color: var(--accent5); }
.tag.red { background: rgba(239,68,68,.15); color: var(--red); }
/* SVG area */
.diagram-area { width: 100%; max-width: 1100px; flex: 1; display: flex; align-items: center; justify-content: center; }
.diagram-area svg { width: 100%; height: 100%; max-height: 500px; }
/* Flow arrows */
.flow-grid { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.flow-box {
background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px;
padding: 20px 30px; text-align: center; font-weight: 600; min-width: 140px;
transition: all .3s;
}
.flow-box.accent { border-color: var(--accent); background: rgba(56,189,248,.08); }
.flow-box.purple { border-color: var(--accent2); background: rgba(129,140,248,.08); }
.flow-box.green { border-color: var(--accent3); background: rgba(52,211,153,.08); }
.flow-arrow { font-size: 1.8em; color: var(--text-dim); }
/* Slide specific */
.cover { text-align: center; }
.cover .logo-area { margin-bottom: 40px; }
.cover .badges { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cover .line { width: 80px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent4)); border-radius: 2px; margin: 30px auto; }
.section-header { text-align: center; }
.section-header .line { width: 60px; height: 3px; background: var(--accent); margin: 20px auto; border-radius: 2px; }
/* Layer diagram */
.layer-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1000px; }
.layer {
display: flex; align-items: center; gap: 20px; padding: 16px 24px;
border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border);
}
.layer-label {
font-weight: 700; font-size: .9em; min-width: 100px; text-align: right;
color: var(--accent);
}
.layer-content { display: flex; gap: 8px; flex-wrap: wrap; }
/* Stats */
.stat-row { display: flex; gap: 40px; justify-content: center; }
.stat { text-align: center; }
.stat .num { font-size: 3em; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2));
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat .label { color: var(--text-dim); font-size: .9em; margin-top: 4px; }
/* Tree */
.tree { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .85em; line-height: 1.8; }
.tree .root { color: var(--accent); font-weight: 700; }
.tree .branch { color: var(--accent2); }
.tree .leaf { color: var(--text-dim); }
.tree .highlight { color: var(--accent3); font-weight: 600; }
/* Mermaid-like diagram */
.arch-diagram { position: relative; width: 100%; max-width: 1000px; height: 440px; }
.arch-node {
position: absolute; padding: 14px 20px; border-radius: 10px;
font-size: .82em; font-weight: 600; text-align: center;
border: 2px solid; transition: all .3s;
}
.arch-node:hover { z-index: 10; transform: scale(1.05); }
@media (max-width: 1024px) {
.slide { padding: 40px 30px; }
h1 { font-size: 2em; } h2 { font-size: 1.6em; }
.card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
</style>
</head>
<body>
<div class="slides-container" id="slides">
<!-- ==================== SLIDE 1: COVER ==================== -->
<div class="slide active" data-slide="0">
<div class="cover">
<div class="logo-area">
<div style="font-size:5em;margin-bottom:10px">🏙</div>
</div>
<h1 class="gradient-text">全域运营平台</h1>
<h1 style="margin-top:4px">微服务架构技术分享</h1>
<div class="line"></div>
<p class="subtitle">模块化架构设计 · 技术栈全景 · 最佳实践</p>
<div class="badges">
<span class="tag blue">Spring Boot 3.5</span>
<span class="tag purple">JDK 17</span>
<span class="tag green">Maven 多模块</span>
<span class="tag pink">Flowable 7</span>
<span class="tag yellow">IoT 网关</span>
<span class="tag blue">Docker</span>
</div>
<p style="margin-top:40px;color:var(--text-dim);font-size:.85em">2026年5月 · 技术团队内部分享</p>
</div>
</div>
<!-- ==================== SLIDE 2: PROJECT OVERVIEW ==================== -->
<div class="slide" data-slide="1">
<h2>项目概览</h2>
<div class="card-grid cols-2" style="max-width:1000px">
<div class="card">
<h3>定位</h3>
<p>面向城市运营管理的综合业务平台,覆盖园林养护、工单调度、IoT 设备管理、BPM 流程引擎等核心业务场景。</p>
</div>
<div class="card">
<h3>规模</h3>
<div class="stat-row" style="margin-top:8px">
<div class="stat"><div class="num">4,525+</div><div class="label">Java 源文件</div></div>
<div class="stat"><div class="num">15</div><div class="label">框架 Starter</div></div>
<div class="stat"><div class="num">10+</div><div class="label">业务模块</div></div>
</div>
</div>
<div class="card">
<h3>架构风格</h3>
<p><strong>模块化单体</strong> 向微服务演进中 — 通过 Maven 多模块 + API 契约层实现模块解耦,IoT 网关已独立部署。</p>
</div>
<div class="card">
<h3>核心能力</h3>
<ul>
<li>多租户 SaaS 架构</li>
<li>Flowable 工作流引擎</li>
<li>IoT 设备接入网关 (MQTT/HTTP/TCP)</li>
<li>分布式消息 & 定时任务</li>
<li>Spring AI 多模型接入</li>
</ul>
</div>
</div>
</div>
<!-- ==================== SLIDE 3: TECH STACK ==================== -->
<div class="slide" data-slide="2">
<h2>技术栈全景图</h2>
<div class="layer-stack">
<div class="layer">
<div class="layer-label">前端</div>
<div class="layer-content">
<span class="tag blue">Vue 3</span><span class="tag blue">Element Plus</span>
<span class="tag purple">Vben Admin</span><span class="tag blue">Vue 2</span>
<span class="tag green">uni-app</span><span class="tag pink">TypeScript</span>
</div>
</div>
<div class="layer">
<div class="layer-label">网关 & 接入</div>
<div class="layer-content">
<span class="tag blue">Vert.x</span><span class="tag green">MQTT</span>
<span class="tag purple">HTTP/2</span><span class="tag pink">TCP</span>
<span class="tag blue">WebSocket</span>
</div>
</div>
<div class="layer">
<div class="layer-label">业务框架</div>
<div class="layer-content">
<span class="tag blue">Spring Boot 3.5</span><span class="tag purple">Spring Security</span>
<span class="tag green">Flowable 7</span><span class="tag pink">Quartz</span>
<span class="tag yellow">Spring AI</span><span class="tag blue">PF4J</span>
</div>
</div>
<div class="layer">
<div class="layer-label">数据层</div>
<div class="layer-content">
<span class="tag blue">MyBatis Plus</span><span class="tag purple">Druid</span>
<span class="tag green">MySQL 8</span><span class="tag pink">Redis Sentinel</span>
<span class="tag yellow">Redisson</span><span class="tag blue">Dynamic DS</span>
</div>
</div>
<div class="layer">
<div class="layer-label">消息 & 集成</div>
<div class="layer-content">
<span class="tag green">RocketMQ</span><span class="tag blue">Kafka</span>
<span class="tag purple">RabbitMQ</span><span class="tag pink">JustAuth</span>
<span class="tag yellow">UAA SSO</span><span class="tag blue">S3</span>
</div>
</div>
<div class="layer">
<div class="layer-label">可观测性</div>
<div class="layer-content">
<span class="tag blue">SkyWalking</span><span class="tag purple">SBA Admin</span>
<span class="tag green">OpenTracing</span><span class="tag pink">Actuator</span>
<span class="tag yellow">Knife4j</span>
</div>
</div>
<div class="layer">
<div class="layer-label">部署 & DevOps</div>
<div class="layer-content">
<span class="tag blue">Docker</span><span class="tag green">docker-compose</span>
<span class="tag purple">Eclipse Temurin 21</span><span class="tag pink">Maven</span>
<span class="tag yellow">Git</span>
</div>
</div>
</div>
</div>
<!-- ==================== SLIDE 4: ARCHITECTURE OVERVIEW ==================== -->
<div class="slide" data-slide="3">
<h2>系统架构总览</h2>
<div class="diagram-area">
<svg viewBox="0 0 1000 460" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="gAccent" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient>
<linearGradient id="gGreen" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#34d399"/><stop offset="100%" stop-color="#22c55e"/></linearGradient>
<linearGradient id="gPink" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#f472b6"/><stop offset="100%" stop-color="#e879f9"/></linearGradient>
<linearGradient id="gYellow" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#fbbf24"/><stop offset="100%" stop-color="#f59e0b"/></linearGradient>
<filter id="shadow"><feDropShadow dx="0" dy="2" stdDeviation="4" flood-opacity="0.3"/></filter>
</defs>
<!-- Top: Client Layer -->
<rect x="30" y="10" width="940" height="60" rx="10" fill="#111827" stroke="#1e3a5f" stroke-width="1.5"/>
<text x="500" y="35" text-anchor="middle" fill="#8899aa" font-size="12" font-weight="600">接入层 CLIENT LAYER</text>
<rect x="60" y="42" width="100" height="22" rx="6" fill="rgba(56,189,248,.12)" stroke="#38bdf8" stroke-width="1"/>
<text x="110" y="57" text-anchor="middle" fill="#38bdf8" font-size="10">Vue 3 Web</text>
<rect x="180" y="42" width="100" height="22" rx="6" fill="rgba(56,189,248,.12)" stroke="#38bdf8" stroke-width="1"/>
<text x="230" y="57" text-anchor="middle" fill="#38bdf8" font-size="10">uni-app 小程序</text>
<rect x="300" y="42" width="100" height="22" rx="6" fill="rgba(129,140,248,.12)" stroke="#818cf8" stroke-width="1"/>
<text x="350" y="57" text-anchor="middle" fill="#818cf8" font-size="10">IoT 设备</text>
<rect x="420" y="42" width="100" height="22" rx="6" fill="rgba(129,140,248,.12)" stroke="#818cf8" stroke-width="1"/>
<text x="470" y="57" text-anchor="middle" fill="#818cf8" font-size="10">第三方系统</text>
<!-- Arrow Client -> Gateway -->
<line x1="500" y1="70" x2="500" y2="90" stroke="#8899aa" stroke-width="1.5" stroke-dasharray="4,3"/>
<!-- Gateway Layer -->
<rect x="30" y="90" width="940" height="80" rx="10" fill="#111827" stroke="#1e3a5f" stroke-width="1.5"/>
<text x="500" y="115" text-anchor="middle" fill="#8899aa" font-size="12" font-weight="600">网关与接入 GATEWAY LAYER</text>
<rect x="60" y="127" width="200" height="32" rx="8" fill="rgba(56,189,248,.1)" stroke="#38bdf8" stroke-width="1.5" filter="url(#shadow)"/>
<text x="160" y="147" text-anchor="middle" fill="#38bdf8" font-size="11" font-weight="600">UrbanOps Server :48081</text>
<rect x="300" y="127" width="200" height="32" rx="8" fill="rgba(52,211,153,.1)" stroke="#34d399" stroke-width="1.5" filter="url(#shadow)"/>
<text x="400" y="147" text-anchor="middle" fill="#34d399" font-size="11" font-weight="600">IoT 网关 :8092 (独立部署)</text>
<rect x="540" y="127" width="180" height="32" rx="8" fill="rgba(129,140,248,.1)" stroke="#818cf8" stroke-width="1.5" filter="url(#shadow)"/>
<text x="630" y="147" text-anchor="middle" fill="#818cf8" font-size="11" font-weight="600">UAA SSO :28201</text>
<!-- Arrow Gateway -> Business -->
<line x1="500" y1="170" x2="500" y2="190" stroke="#8899aa" stroke-width="1.5" stroke-dasharray="4,3"/>
<!-- Business Module Layer -->
<rect x="30" y="190" width="940" height="130" rx="10" fill="#111827" stroke="#1e3a5f" stroke-width="1.5"/>
<text x="500" y="215" text-anchor="middle" fill="#8899aa" font-size="12" font-weight="600">业务模块层 BUSINESS MODULES</text>
<rect x="50" y="228" width="145" height="42" rx="8" fill="rgba(56,189,248,.1)" stroke="#38bdf8" stroke-width="1.5"/>
<text x="122" y="246" text-anchor="middle" fill="#e2e8f0" font-size="10" font-weight="600">system</text>
<text x="122" y="260" text-anchor="middle" fill="#8899aa" font-size="9">用户·权限·租户</text>
<rect x="210" y="228" width="145" height="42" rx="8" fill="rgba(129,140,248,.1)" stroke="#818cf8" stroke-width="1.5"/>
<text x="282" y="246" text-anchor="middle" fill="#e2e8f0" font-size="10" font-weight="600">garden</text>
<text x="282" y="260" text-anchor="middle" fill="#8899aa" font-size="9">园林养护·巡检</text>
<rect x="370" y="228" width="145" height="42" rx="8" fill="rgba(52,211,153,.1)" stroke="#34d399" stroke-width="1.5"/>
<text x="442" y="246" text-anchor="middle" fill="#e2e8f0" font-size="10" font-weight="600">workorder</text>
<text x="442" y="260" text-anchor="middle" fill="#8899aa" font-size="9">工单·调度</text>
<rect x="530" y="228" width="145" height="42" rx="8" fill="rgba(244,114,182,.1)" stroke="#f472b6" stroke-width="1.5"/>
<text x="602" y="246" text-anchor="middle" fill="#e2e8f0" font-size="10" font-weight="600">bpm</text>
<text x="602" y="260" text-anchor="middle" fill="#8899aa" font-size="9">Flowable 流程</text>
<rect x="690" y="228" width="145" height="42" rx="8" fill="rgba(251,191,36,.1)" stroke="#fbbf24" stroke-width="1.5"/>
<text x="762" y="246" text-anchor="middle" fill="#e2e8f0" font-size="10" font-weight="600">gloabl</text>
<text x="762" y="260" text-anchor="middle" fill="#8899aa" font-size="9">全域运营·微信</text>
<!-- API Contract row -->
<rect x="250" y="280" width="500" height="30" rx="8" fill="rgba(255,255,255,.03)" stroke="#334155" stroke-width="1" stroke-dasharray="4,3"/>
<text x="500" y="299" text-anchor="middle" fill="#8899aa" font-size="10">API 契约层: garden-api · workorder-api (接口定义 + Feign 风格调用)</text>
<!-- Arrow Business -> Infra -->
<line x1="500" y1="320" x2="500" y2="340" stroke="#8899aa" stroke-width="1.5" stroke-dasharray="4,3"/>
<!-- Infrastructure Layer -->
<rect x="30" y="340" width="940" height="50" rx="10" fill="#111827" stroke="#1e3a5f" stroke-width="1.5"/>
<text x="500" y="370" text-anchor="middle" fill="#8899aa" font-size="12" font-weight="600">基础设施层 INFRASTRUCTURE: 15个Spring Boot Starter (Web · Security · MyBatis · Redis · MQ · Job · Excel · WebSocket · Monitor · Protection · Tenant · DataPermission · IP · Test)</text>
<!-- Arrow Infra -> Data -->
<line x1="500" y1="390" x2="500" y2="408" stroke="#8899aa" stroke-width="1.5" stroke-dasharray="4,3"/>
<!-- Data Layer -->
<rect x="30" y="408" width="940" height="45" rx="10" fill="#0a0e17" stroke="#1e2e45" stroke-width="1.5"/>
<text x="500" y="435" text-anchor="middle" fill="#8899aa" font-size="12" font-weight="600">数据层: MySQL 8 · Redis Sentinel · RocketMQ · Kafka · RabbitMQ · S3 · Druid · Redisson</text>
</svg>
</div>
</div>
<!-- ==================== SLIDE 5: MODULE DEPENDENCIES ==================== -->
<div class="slide" data-slide="4">
<h2>模块依赖关系图</h2>
<div class="diagram-area">
<svg viewBox="0 0 1000 440" xmlns="http://www.w3.org/2000/svg">
<defs>
<marker id="arrowBlue" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#38bdf8"/></marker>
<marker id="arrowGray" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#64748b"/></marker>
</defs>
<!-- Top level: dependencies BOM -->
<rect x="350" y="8" width="300" height="38" rx="10" fill="rgba(251,191,36,.1)" stroke="#fbbf24" stroke-width="2"/>
<text x="500" y="32" text-anchor="middle" fill="#fbbf24" font-size="13" font-weight="700">urbanops-dependencies (BOM)</text>
<line x1="500" y1="46" x2="500" y2="70" stroke="#fbbf24" stroke-width="1.5" marker-end="url(#arrowBlue)"/>
<!-- Framework layer -->
<rect x="80" y="72" width="840" height="58" rx="10" fill="#111827" stroke="#1e3a5f" stroke-width="1.5"/>
<text x="500" y="94" text-anchor="middle" fill="#8899aa" font-size="11" font-weight="600">urbanops-framework</text>
<text x="500" y="113" text-anchor="middle" fill="#64748b" font-size="9">common · web · security · mybatis · redis · mq · job · excel · websocket · monitor · protection · tenant · data-permission · ip · test</text>
<line x1="300" y1="130" x2="300" y2="155" stroke="#64748b" stroke-width="1.2" marker-end="url(#arrowGray)"/>
<line x1="500" y1="130" x2="500" y2="155" stroke="#64748b" stroke-width="1.2" marker-end="url(#arrowGray)"/>
<line x1="700" y1="130" x2="700" y2="155" stroke="#64748b" stroke-width="1.2" marker-end="url(#arrowGray)"/>
<!-- infra -->
<rect x="210" y="158" width="180" height="40" rx="8" fill="rgba(99,102,241,.12)" stroke="#6366f1" stroke-width="1.5"/>
<text x="300" y="183" text-anchor="middle" fill="#a5b4fc" font-size="12" font-weight="600">module-infra</text>
<!-- system -->
<rect x="410" y="158" width="180" height="40" rx="8" fill="rgba(56,189,248,.12)" stroke="#38bdf8" stroke-width="1.5"/>
<text x="500" y="183" text-anchor="middle" fill="#38bdf8" font-size="12" font-weight="600">module-system</text>
<!-- global -->
<rect x="610" y="158" width="180" height="40" rx="8" fill="rgba(251,191,36,.12)" stroke="#fbbf24" stroke-width="1.5"/>
<text x="700" y="183" text-anchor="middle" fill="#fbbf24" font-size="12" font-weight="600">module-gloabl</text>
<!-- Arrows down from infra and system -->
<line x1="300" y1="198" x2="300" y2="230" stroke="#64748b" stroke-width="1.2" marker-end="url(#arrowGray)"/>
<line x1="500" y1="198" x2="360" y2="230" stroke="#38bdf8" stroke-width="1.2"/>
<line x1="500" y1="198" x2="640" y2="230" stroke="#38bdf8" stroke-width="1.2"/>
<!-- bpm -->
<rect x="210" y="233" width="180" height="40" rx="8" fill="rgba(244,114,182,.12)" stroke="#f472b6" stroke-width="1.5"/>
<text x="300" y="258" text-anchor="middle" fill="#f472b6" font-size="12" font-weight="600">module-bpm</text>
<!-- garden -->
<rect x="85" y="308" width="200" height="40" rx="8" fill="rgba(52,211,153,.12)" stroke="#34d399" stroke-width="2"/>
<text x="185" y="333" text-anchor="middle" fill="#34d399" font-size="12" font-weight="600">module-garden</text>
<!-- workorder -->
<rect x="420" y="308" width="200" height="40" rx="8" fill="rgba(52,211,153,.12)" stroke="#34d399" stroke-width="2"/>
<text x="520" y="333" text-anchor="middle" fill="#34d399" font-size="12" font-weight="600">module-workorder</text>
<!-- API modules -->
<rect x="680" y="308" width="220" height="40" rx="8" fill="rgba(129,140,248,.08)" stroke="#818cf8" stroke-width="1" stroke-dasharray="5,3"/>
<text x="790" y="333" text-anchor="middle" fill="#818cf8" font-size="11" font-weight="600">module-api (契约层)</text>
<!-- Arrows from bpm -->
<line x1="240" y1="273" x2="185" y2="307" stroke="#f472b6" stroke-width="1.2" marker-end="url(#arrowGray)"/>
<line x1="360" y1="273" x2="520" y2="307" stroke="#f472b6" stroke-width="1.2" marker-end="url(#arrowGray)"/>
<!-- API arrows -->
<line x1="285" y1="330" x2="420" y2="330" stroke="#818cf8" stroke-width="1" stroke-dasharray="5,3" marker-end="url(#arrowGray)"/>
<line x1="620" y1="330" x2="680" y2="330" stroke="#818cf8" stroke-width="1" stroke-dasharray="5,3" marker-end="url(#arrowGray)"/>
<!-- IoT (separate) -->
<rect x="420" y="380" width="220" height="40" rx="8" fill="rgba(239,68,68,.12)" stroke="#ef4444" stroke-width="1.5" stroke-dasharray="6,3"/>
<text x="530" y="405" text-anchor="middle" fill="#ef4444" font-size="12" font-weight="600">IoT 网关 (独立进程 :8092)</text>
<text x="530" y="395" text-anchor="middle" fill="#f87171" font-size="8" font-weight="400">Vert.x · MQTT · HTTP · TCP</text>
<line x1="620" y1="348" x2="560" y2="379" stroke="#ef4444" stroke-width="1" stroke-dasharray="5,3"/>
<!-- Legend -->
<rect x="30" y="415" width="12" height="12" rx="2" fill="none" stroke="#34d399" stroke-width="1.5"/>
<text x="48" y="425" fill="#64748b" font-size="9">核心业务域</text>
<rect x="150" y="415" width="12" height="12" rx="2" fill="none" stroke="#38bdf8" stroke-width="1.5"/>
<text x="168" y="425" fill="#64748b" font-size="9">基础服务</text>
<rect x="260" y="415" width="12" height="12" rx="2" fill="none" stroke="#ef4444" stroke-width="1.5" stroke-dasharray="3,2"/>
<text x="278" y="425" fill="#64748b" font-size="9">独立部署</text>
<line x1="370" y1="421" x2="400" y2="421" stroke="#818cf8" stroke-width="1" stroke-dasharray="5,3"/>
<text x="408" y="425" fill="#64748b" font-size="9">API 契约调用</text>
</svg>
</div>
</div>
<!-- ==================== SLIDE 6: FRAMEWORK ARCHITECTURE ==================== -->
<div class="slide" data-slide="5">
<h2>框架层 — 15 个 Spring Boot Starter</h2>
<div class="card-grid cols-4" style="max-width:1100px">
<div class="card"><h3>web</h3><p>全局异常处理、API 访问日志、敏感数据脱敏、错误码体系</p></div>
<div class="card"><h3>security</h3><p>Spring Security + Token 认证、操作日志(bizlog)、权限校验</p></div>
<div class="card"><h3>mybatis</h3><p>MyBatis Plus + Join、动态数据源、多数据库适配</p></div>
<div class="card"><h3>redis</h3><p>Redis Sentinel 集群、Redisson 分布式锁、Spring Cache</p></div>
<div class="card"><h3>mq</h3><p>消息队列抽象层 — RocketMQ / Kafka / RabbitMQ 统一接口</p></div>
<div class="card"><h3>job</h3><p>Quartz 分布式定时任务、JDBC 持久化、集群调度</p></div>
<div class="card"><h3>excel</h3><p>FastExcel 导入导出、模板下载、大数据量流式处理</p></div>
<div class="card"><h3>websocket</h3><p>WebSocket 集群广播,支持 Redis/MQ 跨节点消息同步</p></div>
<div class="card"><h3>monitor</h3><p>Spring Boot Admin、SkyWalking 链路追踪、OpenTracing</p></div>
<div class="card"><h3>protection</h3><p>分布式锁(Lock4j)、幂等性、限流、API 签名校验</p></div>
<div class="card"><h3>tenant</h3><p>多租户数据隔离、租户上下文传递、SaaS 计费</p></div>
<div class="card"><h3>data-permission</h3><p>数据权限控制 — 部门/用户级数据隔离</p></div>
<div class="card"><h3>ip</h3><p>IP 归属地解析、地区库自动更新</p></div>
<div class="card"><h3>test</h3><p>单元测试工具、Mock 工具集</p></div>
<div class="card"><h3>common</h3><p>通用工具、枚举、基础类、Hutool + Guava 集成</p></div>
</div>
</div>
<!-- ==================== SLIDE 7: DATA FLOW & COMMUNICATION ==================== -->
<div class="slide" data-slide="6">
<h2>数据流与通信架构</h2>
<div class="diagram-area">
<svg viewBox="0 0 1000 420" xmlns="http://www.w3.org/2000/svg">
<defs>
<marker id="arrGreen" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#34d399"/></marker>
<marker id="arrBlue" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#38bdf8"/></marker>
<marker id="arrPink" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#f472b6"/></marker>
<marker id="arrYellow" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#fbbf24"/></marker>
</defs>
<!-- Central: UrbanOps Server -->
<rect x="350" y="160" width="300" height="60" rx="14" fill="rgba(56,189,248,.12)" stroke="#38bdf8" stroke-width="2.5" filter="url(#shadow)"/>
<text x="500" y="187" text-anchor="middle" fill="#e2e8f0" font-size="15" font-weight="700">UrbanOps Server</text>
<text x="500" y="205" text-anchor="middle" fill="#8899aa" font-size="10">核心业务处理引擎</text>
<!-- SQL -->
<rect x="60" y="60" width="160" height="50" rx="10" fill="rgba(59,130,246,.12)" stroke="#3b82f6" stroke-width="1.5"/>
<text x="140" y="82" text-anchor="middle" fill="#60a5fa" font-size="12" font-weight="600">MySQL 8</text>
<text x="140" y="98" text-anchor="middle" fill="#8899aa" font-size="9">主从 + Druid 连接池</text>
<line x1="220" y1="85" x2="348" y2="175" stroke="#3b82f6" stroke-width="1.2" stroke-dasharray="6,3" marker-end="url(#arrBlue)"/>
<!-- Redis -->
<rect x="60" y="150" width="160" height="50" rx="10" fill="rgba(239,68,68,.12)" stroke="#ef4444" stroke-width="1.5"/>
<text x="140" y="172" text-anchor="middle" fill="#f87171" font-size="12" font-weight="600">Redis Sentinel</text>
<text x="140" y="188" text-anchor="middle" fill="#8899aa" font-size="9">缓存 · 分布式锁 · Token</text>
<line x1="220" y1="175" x2="348" y2="180" stroke="#ef4444" stroke-width="1.2" stroke-dasharray="6,3" marker-end="url(#arrBlue)"/>
<!-- MQ -->
<rect x="60" y="240" width="160" height="50" rx="10" fill="rgba(52,211,153,.12)" stroke="#34d399" stroke-width="1.5"/>
<text x="140" y="262" text-anchor="middle" fill="#4ade80" font-size="12" font-weight="600">MQ 消息队列</text>
<text x="140" y="278" text-anchor="middle" fill="#8899aa" font-size="9">RocketMQ · Kafka · RabbitMQ</text>
<line x1="220" y1="265" x2="348" y2="195" stroke="#34d399" stroke-width="1.2" stroke-dasharray="6,3" marker-end="url(#arrGreen)"/>
<!-- IoT Gateway -->
<rect x="740" y="60" width="200" height="50" rx="10" fill="rgba(244,114,182,.12)" stroke="#f472b6" stroke-width="1.5"/>
<text x="840" y="82" text-anchor="middle" fill="#f472b6" font-size="12" font-weight="600">IoT 网关 :8092</text>
<text x="840" y="98" text-anchor="middle" fill="#8899aa" font-size="9">Vert.x · MQTT · TCP</text>
<line x1="740" y1="85" x2="652" y2="175" stroke="#f472b6" stroke-width="1.2" stroke-dasharray="6,3" marker-end="url(#arrPink)"/>
<!-- Devices -->
<rect x="740" y="160" width="200" height="50" rx="10" fill="rgba(251,191,36,.12)" stroke="#fbbf24" stroke-width="1.5"/>
<text x="840" y="182" text-anchor="middle" fill="#fbbf24" font-size="12" font-weight="600">IoT 设备层</text>
<text x="840" y="198" text-anchor="middle" fill="#8899aa" font-size="9">传感器 · GPS · 控制器</text>
<line x1="740" y1="185" x2="940" y2="185" stroke="#fbbf24" stroke-width="1.2" stroke-dasharray="4,3"/>
<line x1="840" y1="210" x2="840" y2="350" stroke="#fbbf24" stroke-width="1" stroke-dasharray="4,3"/>
<!-- S3 -->
<rect x="740" y="240" width="200" height="50" rx="10" fill="rgba(129,140,248,.12)" stroke="#818cf8" stroke-width="1.5"/>
<text x="840" y="262" text-anchor="middle" fill="#a5b4fc" font-size="12" font-weight="600">对象存储 S3</text>
<text x="840" y="278" text-anchor="middle" fill="#8899aa" font-size="9">文件 · 图片 · 附件</text>
<line x1="740" y1="265" x2="652" y2="205" stroke="#818cf8" stroke-width="1.2" stroke-dasharray="6,3" marker-end="url(#arrBlue)"/>
<!-- Flowable -->
<rect x="60" y="330" width="160" height="50" rx="10" fill="rgba(244,114,182,.12)" stroke="#f472b6" stroke-width="1.5"/>
<text x="140" y="352" text-anchor="middle" fill="#f472b6" font-size="12" font-weight="600">Flowable 7</text>
<text x="140" y="368" text-anchor="middle" fill="#8899aa" font-size="9">工作流引擎</text>
<line x1="220" y1="355" x2="348" y2="220" stroke="#f472b6" stroke-width="1.2" stroke-dasharray="6,3"/>
<!-- Quartz -->
<rect x="320" y="340" width="160" height="50" rx="10" fill="rgba(251,191,36,.12)" stroke="#fbbf24" stroke-width="1.5"/>
<text x="400" y="362" text-anchor="middle" fill="#fbbf24" font-size="12" font-weight="600">Quartz 调度</text>
<text x="400" y="378" text-anchor="middle" fill="#8899aa" font-size="9">定时任务集群</text>
<line x1="480" y1="340" x2="500" y2="222" stroke="#fbbf24" stroke-width="1.2" stroke-dasharray="6,3"/>
<!-- WebSocket -->
<rect x="560" y="340" width="190" height="50" rx="10" fill="rgba(56,189,248,.12)" stroke="#38bdf8" stroke-width="1.5"/>
<text x="655" y="362" text-anchor="middle" fill="#38bdf8" font-size="12" font-weight="600">WebSocket</text>
<text x="655" y="378" text-anchor="middle" fill="#8899aa" font-size="9">实时消息推送</text>
<line x1="560" y1="365" x2="502" y2="222" stroke="#38bdf8" stroke-width="1.2" stroke-dasharray="6,3"/>
</svg>
</div>
</div>
<!-- ==================== SLIDE 8: SECURITY ==================== -->
<div class="slide" data-slide="7">
<h2>安全与认证架构</h2>
<div class="diagram-area">
<svg viewBox="0 0 1000 400" xmlns="http://www.w3.org/2000/svg">
<!-- Client -->
<rect x="30" y="30" width="120" height="60" rx="10" fill="rgba(56,189,248,.1)" stroke="#38bdf8" stroke-width="1.5"/>
<text x="90" y="55" text-anchor="middle" fill="#38bdf8" font-size="11" font-weight="600">客户端</text>
<text x="90" y="73" text-anchor="middle" fill="#8899aa" font-size="9">Web / 小程序 / App</text>
<!-- Filter Chain -->
<rect x="200" y="30" width="760" height="60" rx="10" fill="#111827" stroke="#1e3a5f" stroke-width="1.5"/>
<text x="580" y="52" text-anchor="middle" fill="#8899aa" font-size="11" font-weight="600">Security Filter Chain</text>
<rect x="215" y="58" width="130" height="24" rx="6" fill="rgba(239,68,68,.12)" stroke="#ef4444" stroke-width="1"/>
<text x="280" y="74" text-anchor="middle" fill="#f87171" font-size="9">API 签名校验</text>
<rect x="355" y="58" width="120" height="24" rx="6" fill="rgba(251,191,36,.12)" stroke="#fbbf24" stroke-width="1"/>
<text x="415" y="74" text-anchor="middle" fill="#fbbf24" font-size="9">限流 & 幂等</text>
<rect x="485" y="58" width="120" height="24" rx="6" fill="rgba(56,189,248,.12)" stroke="#38bdf8" stroke-width="1"/>
<text x="545" y="74" text-anchor="middle" fill="#38bdf8" font-size="9">Token 认证</text>
<rect x="615" y="58" width="100" height="24" rx="6" fill="rgba(129,140,248,.12)" stroke="#818cf8" stroke-width="1"/>
<text x="665" y="74" text-anchor="middle" fill="#a5b4fc" font-size="9">权限校验</text>
<rect x="725" y="58" width="100" height="24" rx="6" fill="rgba(52,211,153,.12)" stroke="#34d399" stroke-width="1"/>
<text x="775" y="74" text-anchor="middle" fill="#4ade80" font-size="9">数据脱敏</text>
<rect x="835" y="58" width="110" height="24" rx="6" fill="rgba(244,114,182,.12)" stroke="#f472b6" stroke-width="1"/>
<text x="890" y="74" text-anchor="middle" fill="#f472b6" font-size="9">操作日志</text>
<!-- Arrow -->
<line x1="150" y1="60" x2="198" y2="60" stroke="#38bdf8" stroke-width="2" marker-end="url(#arrBlue)"/>
<!-- Business Layer -->
<rect x="200" y="120" width="760" height="110" rx="10" fill="#111827" stroke="#1e3a5f" stroke-width="1.5"/>
<text x="580" y="145" text-anchor="middle" fill="#8899aa" font-size="11" font-weight="600">认证与授权中心</text>
<!-- JWT -->
<rect x="220" y="155" width="200" height="42" rx="8" fill="rgba(56,189,248,.1)" stroke="#38bdf8" stroke-width="1.5"/>
<text x="320" y="174" text-anchor="middle" fill="#e2e8f0" font-size="11" font-weight="600">JWT Token</text>
<text x="320" y="189" text-anchor="middle" fill="#8899aa" font-size="9">Redis 存储 · 自动续期</text>
<!-- SSO -->
<rect x="450" y="155" width="200" height="42" rx="8" fill="rgba(129,140,248,.1)" stroke="#818cf8" stroke-width="1.5"/>
<text x="550" y="174" text-anchor="middle" fill="#e2e8f0" font-size="11" font-weight="600">UAA SSO</text>
<text x="550" y="189" text-anchor="middle" fill="#8899aa" font-size="9">OAuth2 · 单点登录</text>
<!-- Social -->
<rect x="680" y="155" width="250" height="42" rx="8" fill="rgba(52,211,153,.1)" stroke="#34d399" stroke-width="1.5"/>
<text x="805" y="174" text-anchor="middle" fill="#e2e8f0" font-size="11" font-weight="600">JustAuth 社交登录</text>
<text x="805" y="189" text-anchor="middle" fill="#8899aa" font-size="9">钉钉 · 企业微信 · 小程序 · 公众号</text>
<!-- Tenant + Data Permission -->
<rect x="220" y="205" width="340" height="20" rx="5" fill="rgba(251,191,36,.08)" stroke="#fbbf24" stroke-width="0.8"/>
<text x="390" y="219" text-anchor="middle" fill="#fbbf24" font-size="9">多租户数据隔离 (SaaS)</text>
<rect x="580" y="205" width="350" height="20" rx="5" fill="rgba(244,114,182,.08)" stroke="#f472b6" stroke-width="0.8"/>
<text x="755" y="219" text-anchor="middle" fill="#f472b6" font-size="9">部门/用户级数据权限 (RBAC + Data Scope)</text>
<!-- Arrow to Business -->
<line x1="580" y1="230" x2="580" y2="260" stroke="#8899aa" stroke-width="1.5" stroke-dasharray="5,3"/>
<text x="600" y="250" fill="#64748b" font-size="9">授权通过</text>
<!-- Business modules -->
<rect x="200" y="260" width="760" height="50" rx="10" fill="#0a0e17" stroke="#1e2e45" stroke-width="1.5"/>
<text x="580" y="290" text-anchor="middle" fill="#8899aa" font-size="11" font-weight="600">业务模块: garden · workorder · bpm · gloabl · infra · system</text>
<!-- Captcha -->
<rect x="30" y="320" width="120" height="50" rx="10" fill="rgba(251,191,36,.08)" stroke="#fbbf24" stroke-width="1"/>
<text x="90" y="342" text-anchor="middle" fill="#fbbf24" font-size="11" font-weight="600">AJ Captcha</text>
<text x="90" y="358" text-anchor="middle" fill="#8899aa" font-size="9">滑块验证</text>
<line x1="150" y1="345" x2="198" y2="285" stroke="#fbbf24" stroke-width="0.8" stroke-dasharray="4,3"/>
<!-- AES -->
<rect x="30" y="200" width="120" height="50" rx="10" fill="rgba(239,68,68,.08)" stroke="#ef4444" stroke-width="1"/>
<text x="90" y="222" text-anchor="middle" fill="#f87171" font-size="11" font-weight="600">API 加密</text>
<text x="90" y="238" text-anchor="middle" fill="#8899aa" font-size="9">AES 算法</text>
</svg>
</div>
</div>
<!-- ==================== SLIDE 9: DEPLOYMENT ==================== -->
<div class="slide" data-slide="8">
<h2>部署架构</h2>
<div class="diagram-area">
<svg viewBox="0 0 1000 400" xmlns="http://www.w3.org/2000/svg">
<!-- Docker Host -->
<rect x="20" y="20" width="960" height="360" rx="16" fill="#111827" stroke="#1e3a5f" stroke-width="2"/>
<text x="500" y="48" text-anchor="middle" fill="#64748b" font-size="13" font-weight="600">Docker Host</text>
<!-- urbanops-server -->
<rect x="50" y="65" width="290" height="160" rx="12" fill="rgba(56,189,248,.08)" stroke="#38bdf8" stroke-width="2"/>
<text x="195" y="92" text-anchor="middle" fill="#38bdf8" font-size="14" font-weight="700">urbanops-server</text>
<text x="195" y="110" text-anchor="middle" fill="#8899aa" font-size="10">Eclipse Temurin 21 JRE</text>
<text x="195" y="126" text-anchor="middle" fill="#64748b" font-size="9">-Xms512m -Xmx512m</text>
<rect x="70" y="137" width="120" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="130" y="152" text-anchor="middle" fill="#8899aa" font-size="9">Port 48081</text>
<rect x="200" y="137" width="120" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="260" y="152" text-anchor="middle" fill="#8899aa" font-size="9">Actuator /actuator</text>
<rect x="70" y="165" width="250" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="195" y="180" text-anchor="middle" fill="#8899aa" font-size="9">包含所有业务模块 (fat JAR)</text>
<rect x="70" y="193" width="250" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="195" y="208" text-anchor="middle" fill="#8899aa" font-size="9">SpringDoc /v3/api-docs · Knife4j</text>
<!-- IoT Gateway -->
<rect x="370" y="65" width="260" height="160" rx="12" fill="rgba(239,68,68,.08)" stroke="#ef4444" stroke-width="2"/>
<text x="500" y="92" text-anchor="middle" fill="#f87171" font-size="14" font-weight="700">iot-gateway-server</text>
<text x="500" y="110" text-anchor="middle" fill="#8899aa" font-size="10">独立部署 · Vert.x 引擎</text>
<rect x="390" y="122" width="220" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="500" y="137" text-anchor="middle" fill="#8899aa" font-size="9">Port 8092</text>
<rect x="390" y="150" width="220" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="500" y="165" text-anchor="middle" fill="#8899aa" font-size="9">协议: MQTT · HTTP · TCP</text>
<rect x="390" y="178" width="220" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="500" y="193" text-anchor="middle" fill="#8899aa" font-size="9">设备接入 · 数据采集</text>
<rect x="390" y="206" width="220" height="22" rx="5" fill="rgba(255,255,255,.04)" stroke="#334155" stroke-width="0.8"/>
<text x="500" y="221" text-anchor="middle" fill="#8899aa" font-size="9">HTTP RPC → Server :48080</text>
<!-- MySQL -->
<rect x="660" y="65" width="180" height="72" rx="10" fill="rgba(59,130,246,.08)" stroke="#3b82f6" stroke-width="1.5"/>
<text x="750" y="92" text-anchor="middle" fill="#60a5fa" font-size="12" font-weight="600">MySQL 8</text>
<text x="750" y="110" text-anchor="middle" fill="#8899aa" font-size="9">:3306</text>
<text x="750" y="125" text-anchor="middle" fill="#64748b" font-size="8">主从读写分离</text>
<!-- Redis -->
<rect x="660" y="150" width="180" height="72" rx="10" fill="rgba(239,68,68,.08)" stroke="#ef4444" stroke-width="1.5"/>
<text x="750" y="177" text-anchor="middle" fill="#f87171" font-size="12" font-weight="600">Redis Sentinel</text>
<text x="750" y="195" text-anchor="middle" fill="#8899aa" font-size="9">:26379</text>
<text x="750" y="210" text-anchor="middle" fill="#64748b" font-size="8">高可用集群</text>
<!-- MQ -->
<rect x="860" y="65" width="110" height="72" rx="10" fill="rgba(52,211,153,.08)" stroke="#34d399" stroke-width="1.5"/>
<text x="915" y="92" text-anchor="middle" fill="#4ade80" font-size="11" font-weight="600">RocketMQ</text>
<text x="915" y="110" text-anchor="middle" fill="#8899aa" font-size="9">:9876</text>
<text x="915" y="125" text-anchor="middle" fill="#64748b" font-size="8">消息驱动</text>
<rect x="860" y="150" width="110" height="72" rx="10" fill="rgba(129,140,248,.08)" stroke="#818cf8" stroke-width="1.5"/>
<text x="915" y="177" text-anchor="middle" fill="#a5b4fc" font-size="11" font-weight="600">Kafka</text>
<text x="915" y="195" text-anchor="middle" fill="#8899aa" font-size="9">:9092</text>
<text x="915" y="210" text-anchor="middle" fill="#64748b" font-size="8">流式处理</text>
<!-- Frontend -->
<rect x="660" y="240" width="310" height="40" rx="10" fill="rgba(251,191,36,.08)" stroke="#fbbf24" stroke-width="1.5"/>
<text x="815" y="265" text-anchor="middle" fill="#fbbf24" font-size="11" font-weight="600">urbanops-admin (前端 Nginx) :8080</text>
<!-- Monitoring -->
<rect x="50" y="245" width="580" height="40" rx="10" fill="rgba(129,140,248,.06)" stroke="#6366f1" stroke-width="1.5"/>
<text x="340" y="270" text-anchor="middle" fill="#a5b4fc" font-size="11" font-weight="600">可观测性: SkyWalking Agent · Spring Boot Admin · OpenTracing · Actuator · 日志采集</text>
<!-- PF4J Plugins -->
<rect x="50" y="298" width="580" height="32" rx="8" fill="rgba(244,114,182,.06)" stroke="#f472b6" stroke-width="1" stroke-dasharray="5,3"/>
<text x="340" y="319" text-anchor="middle" fill="#f472b6" font-size="10">PF4J 插件目录: ../plugins (动态扩展)</text>
<!-- Labels -->
<rect x="50" y="350" width="12" height="12" rx="2" fill="rgba(56,189,248,.3)" stroke="#38bdf8" stroke-width="1"/>
<text x="68" y="360" fill="#64748b" font-size="9">fat JAR</text>
<rect x="140" y="350" width="12" height="12" rx="2" fill="rgba(239,68,68,.3)" stroke="#ef4444" stroke-width="1"/>
<text x="158" y="360" fill="#64748b" font-size="9">独立进程</text>
<rect x="240" y="350" width="12" height="12" rx="2" fill="rgba(59,130,246,.3)" stroke="#3b82f6" stroke-width="1"/>
<text x="258" y="360" fill="#64748b" font-size="9">数据服务</text>
<rect x="340" y="350" width="12" height="12" rx="2" fill="rgba(52,211,153,.3)" stroke="#34d399" stroke-width="1"/>
<text x="358" y="360" fill="#64748b" font-size="9">消息中间件</text>
</svg>
</div>
</div>
<!-- ==================== SLIDE 10: SUMMARY & ROADMAP ==================== -->
<div class="slide" data-slide="9">
<h2>总结与架构演进</h2>
<div class="card-grid cols-2" style="max-width:1050px">
<div class="card">
<h3>当前架构优势</h3>
<ul>
<li>Maven 多模块清晰分层,业务边界明确</li>
<li>15 个框架 Starter 封装最佳实践</li>
<li>API 契约层实现模块间松耦合</li>
<li>IoT 网关已实现独立部署验证</li>
<li>多租户 + 数据权限完备</li>
<li>消息队列抽象层支持多中间件切换</li>
</ul>
</div>
<div class="card">
<h3>演进方向</h3>
<ul>
<li><strong>服务拆分</strong>: garden / workorder -> 独立微服务</li>
<li><strong>注册中心</strong>: 引入 Nacos 实现服务发现与配置管理</li>
<li><strong>API 网关</strong>: Spring Cloud Gateway 统一入口</li>
<li><strong>流量治理</strong>: Sentinel 限流熔断</li>
<li><strong>分布式事务</strong>: Seata 保障跨服务数据一致性</li>
<li><strong>容器编排</strong>: docker-compose -> Kubernetes</li>
</ul>
</div>
<div class="card" style="grid-column: 1 / -1">
<h3>目标微服务架构</h3>
<div style="display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:12px">
<span class="flow-box accent" style="font-size:.8em;padding:10px 16px">Nginx</span>
<span class="flow-arrow">→</span>
<span class="flow-box purple" style="font-size:.8em;padding:10px 16px">Gateway</span>
<span class="flow-arrow">→</span>
<span class="flow-box green" style="font-size:.8em;padding:10px 16px">Nacos</span>
<span class="flow-arrow">⇢</span>
<div style="display:flex;flex-direction:column;gap:6px">
<span class="tag blue">garden-service</span>
<span class="tag purple">workorder-service</span>
<span class="tag green">bpm-service</span>
<span class="tag pink">system-service</span>
<span class="tag yellow">iot-gateway (已有)</span>
</div>
<span class="flow-arrow">⇢</span>
<div style="display:flex;flex-direction:column;gap:6px">
<span class="tag red">Sentinel</span>
<span class="tag blue">Seata</span>
<span class="tag green">SkyWalking</span>
</div>
</div>
</div>
<div class="card" style="grid-column: 1 / -1; text-align:center">
<p style="font-size:1.1em;color:var(--text);margin-bottom:8px"><strong>关键原则</strong></p>
<p style="color:var(--text-dim)">
模块化先行 → API 契约驱动 → 渐进式拆分 → 独立部署验证 → 全链路可观测
</p>
</div>
</div>
</div>
</div>
<!-- Navigation -->
<div class="nav" id="nav">
<button onclick="prevSlide()" title="上一页">←</button>
<span class="page-indicator" id="pageIndicator">1 / 10</span>
<button onclick="nextSlide()" title="下一页">→</button>
<div class="progress" id="progress" style="width:10%"></div>
</div>
<script>
let current = 0;
const slides = document.querySelectorAll('.slide');
const total = slides.length;
const indicator = document.getElementById('pageIndicator');
const progress = document.getElementById('progress');
function showSlide(n) {
slides[current].classList.remove('active');
current = (n + total) % total;
slides[current].classList.add('active');
indicator.textContent = (current + 1) + ' / ' + total;
progress.style.width = ((current + 1) / total * 100) + '%';
}
function nextSlide() { showSlide(current + 1); }
function prevSlide() { showSlide(current - 1); }
document.addEventListener('keydown', e => {
if (e.key === 'ArrowRight' || e.key === 'ArrowDown' || e.key === ' ') {
e.preventDefault(); nextSlide();
} else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
e.preventDefault(); prevSlide();
} else if (e.key === 'Home') { e.preventDefault(); showSlide(0); }
else if (e.key === 'End') { e.preventDefault(); showSlide(total - 1); }
});
// Touch support
let touchStartX = 0;
document.addEventListener('touchstart', e => { touchStartX = e.touches[0].clientX; });
document.addEventListener('touchend', e => {
const diff = touchStartX - e.changedTouches[0].clientX;
if (Math.abs(diff) > 50) { diff > 0 ? nextSlide() : prevSlide(); }
});
// Click on edges
document.addEventListener('click', e => {
if (e.target.closest('.nav') || e.target.closest('a') || e.target.closest('button')) return;
if (e.clientX > window.innerWidth * 0.85) nextSlide();
else if (e.clientX < window.innerWidth * 0.15) prevSlide();
});
</script>
</body>
</html>