{"id":108994,"date":"2026-09-23T05:56:40","date_gmt":"2026-09-22T21:56:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/108994.html"},"modified":"2026-09-23T05:56:40","modified_gmt":"2026-09-22T21:56:40","slug":"%e7%bd%97%e6%b1%89%e5%88%b0%e5%ae%b6%ef%bc%9a%e5%90%8e%e7%ab%af%e6%8a%80%e6%9c%af%e6%a0%88%e3%80%81%e6%9e%b6%e6%9e%84%e4%b8%8e%e5%90%8e%e7%bb%ad%e8%a7%84%e5%88%92","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/108994.html","title":{"rendered":"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212"},"content":{"rendered":"<h2>\u7f57\u6c49\u5230\u5bb6&#xff1a;\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212<\/h2>\n<p>\u6587\u6863\u7248\u672c&#xff1a;2026-09-23\u3002\u9879\u76ee\u662f\u53ef\u5728\u7ebf\u6f14\u793a\u7684\u4e0a\u95e8\u6309\u6469 O2O \u5168\u6808 MVP&#xff0c;\u4e0d\u662f\u7eaf\u524d\u7aef Mock\u3002\u751f\u4ea7\u6570\u636e\u7531\u817e\u8baf\u4e91 CloudBase \u4e91\u51fd\u6570\u4e0e PostgreSQL \u6301\u4e45\u5316&#xff1b;\u672c\u5730\u4fdd\u7559 Express &#043; Prisma &#043; SQLite \u4f5c\u4e3a\u7c7b\u578b\u66f4\u5b8c\u6574\u3001\u4fbf\u4e8e\u8c03\u8bd5\u7684\u5f00\u53d1\u540e\u7aef\u3002<\/p>\n<h3>1. \u7cfb\u7edf\u76ee\u6807\u4e0e\u8fb9\u754c<\/h3>\n<p>\u540e\u7aef\u627f\u62c5\u8d26\u53f7\u3001\u6280\u5e08\u3001\u670d\u52a1\u3001\u6863\u671f\u3001\u8ba2\u5355\u3001\u5c65\u7ea6\u3001\u8bc4\u4ef7\u3001\u79ef\u5206\u53ca\u7ecf\u8425\u7ba1\u7406\u516b\u7c7b\u6838\u5fc3\u80fd\u529b\u3002\u5f53\u524d\u76ee\u6807\u662f\u8ba9\u9762\u8bd5\u5b98\u80fd\u7528\u7528\u6237\u3001\u6280\u5e08\u3001\u7ba1\u7406\u5458\u4e09\u79cd\u8eab\u4efd\u5b8c\u6210\u53ef\u4fe1\u4e1a\u52a1\u95ed\u73af&#xff0c;\u540c\u65f6\u4fdd\u6301\u5c0f\u4f53\u91cf\u514d\u8d39\u90e8\u7f72\u3002<\/p>\n<p>#mermaid-svg-3L65lr30hWfCYAQv{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-3L65lr30hWfCYAQv .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-3L65lr30hWfCYAQv .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-3L65lr30hWfCYAQv .error-icon{fill:#552222;}#mermaid-svg-3L65lr30hWfCYAQv .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-3L65lr30hWfCYAQv .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-3L65lr30hWfCYAQv .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-3L65lr30hWfCYAQv .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-3L65lr30hWfCYAQv .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-3L65lr30hWfCYAQv .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-3L65lr30hWfCYAQv .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-3L65lr30hWfCYAQv .marker{fill:#333333;stroke:#333333;}#mermaid-svg-3L65lr30hWfCYAQv .marker.cross{stroke:#333333;}#mermaid-svg-3L65lr30hWfCYAQv svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-3L65lr30hWfCYAQv p{margin:0;}#mermaid-svg-3L65lr30hWfCYAQv .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-3L65lr30hWfCYAQv .cluster-label text{fill:#333;}#mermaid-svg-3L65lr30hWfCYAQv .cluster-label span{color:#333;}#mermaid-svg-3L65lr30hWfCYAQv .cluster-label span p{background-color:transparent;}#mermaid-svg-3L65lr30hWfCYAQv .label text,#mermaid-svg-3L65lr30hWfCYAQv span{fill:#333;color:#333;}#mermaid-svg-3L65lr30hWfCYAQv .node rect,#mermaid-svg-3L65lr30hWfCYAQv .node circle,#mermaid-svg-3L65lr30hWfCYAQv .node ellipse,#mermaid-svg-3L65lr30hWfCYAQv .node polygon,#mermaid-svg-3L65lr30hWfCYAQv .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-3L65lr30hWfCYAQv .rough-node .label text,#mermaid-svg-3L65lr30hWfCYAQv .node .label text,#mermaid-svg-3L65lr30hWfCYAQv .image-shape .label,#mermaid-svg-3L65lr30hWfCYAQv .icon-shape .label{text-anchor:middle;}#mermaid-svg-3L65lr30hWfCYAQv .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-3L65lr30hWfCYAQv .rough-node .label,#mermaid-svg-3L65lr30hWfCYAQv .node .label,#mermaid-svg-3L65lr30hWfCYAQv .image-shape .label,#mermaid-svg-3L65lr30hWfCYAQv .icon-shape .label{text-align:center;}#mermaid-svg-3L65lr30hWfCYAQv .node.clickable{cursor:pointer;}#mermaid-svg-3L65lr30hWfCYAQv .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-3L65lr30hWfCYAQv .arrowheadPath{fill:#333333;}#mermaid-svg-3L65lr30hWfCYAQv .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-3L65lr30hWfCYAQv .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-3L65lr30hWfCYAQv .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-3L65lr30hWfCYAQv .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-3L65lr30hWfCYAQv .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-3L65lr30hWfCYAQv .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-3L65lr30hWfCYAQv .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-3L65lr30hWfCYAQv .cluster text{fill:#333;}#mermaid-svg-3L65lr30hWfCYAQv .cluster span{color:#333;}#mermaid-svg-3L65lr30hWfCYAQv div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-3L65lr30hWfCYAQv .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-3L65lr30hWfCYAQv rect.text{fill:none;stroke-width:0;}#mermaid-svg-3L65lr30hWfCYAQv .icon-shape,#mermaid-svg-3L65lr30hWfCYAQv .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-3L65lr30hWfCYAQv .icon-shape p,#mermaid-svg-3L65lr30hWfCYAQv .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-3L65lr30hWfCYAQv .icon-shape .label rect,#mermaid-svg-3L65lr30hWfCYAQv .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-3L65lr30hWfCYAQv .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-3L65lr30hWfCYAQv .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-3L65lr30hWfCYAQv :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/p>\n<p>HTTPS JSON \/api<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u672c\u5730\u5f00\u53d1<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>React \u7528\u6237\u7aef \/ \u6280\u5e08\u7aef \/ \u7ba1\u7406\u7aef<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>CloudBase Node.js HTTP \u4e91\u51fd\u6570<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>JWT &#043; RBAC &#043; \u4f1a\u8bdd\u7248\u672c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>CloudBase PostgreSQL<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Express 5 &#043; TypeScript<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Prisma ORM<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>SQLite<\/p>\n<p><\/span><\/p>\n<p>\u524d\u7aef\u53ea\u4f9d\u8d56\u7edf\u4e00 REST \u5951\u7ea6&#xff0c;\u56e0\u6b64\u53ef\u5728\u4e0d\u6539\u9875\u9762\u4e1a\u52a1\u903b\u8f91\u7684\u60c5\u51b5\u4e0b\u5207\u6362\u7ebf\u4e0a\u4e91\u51fd\u6570\u4e0e\u672c\u5730 Express\u3002\u7ebf\u4e0a\u65b9\u6848\u964d\u4f4e\u5e38\u9a7b\u670d\u52a1\u5668\u8d39\u7528&#xff1b;\u672c\u5730\u65b9\u6848\u63d0\u4f9b Prisma \u6570\u636e\u6a21\u578b\u3001\u7c7b\u578b\u68c0\u67e5\u548c\u5feb\u901f\u8054\u8c03\u4f53\u9a8c\u3002<\/p>\n<h3>2. \u6280\u672f\u6808<\/h3>\n<table>\n<tr>\u5c42\u7ea7\u6280\u672f\u7528\u9014\u4e0e\u9009\u62e9\u539f\u56e0<\/tr>\n<tbody>\n<tr>\n<td>\u7ebf\u4e0a\u8fd0\u884c\u65f6<\/td>\n<td>Tencent CloudBase\u3001Node.js 20<\/td>\n<td>\u56fd\u5185\u8bbf\u95ee\u53cb\u597d&#xff0c;HTTP \u4e91\u51fd\u6570\u6309\u8bf7\u6c42\u8fd0\u884c&#xff0c;\u9002\u5408\u514d\u8d39\u6f14\u793a<\/td>\n<\/tr>\n<tr>\n<td>\u7ebf\u4e0a\u6570\u636e\u5e93<\/td>\n<td>CloudBase PostgreSQL<\/td>\n<td>\u591a\u8d26\u53f7\u5171\u4eab\u3001\u5173\u7cfb\u67e5\u8be2\u548c\u6301\u4e45\u5316\u7ecf\u8425\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>\u672c\u5730 API<\/td>\n<td>Express 5\u3001TypeScript<\/td>\n<td>\u8def\u7531\u4e0e\u9886\u57df\u6a21\u5757\u6e05\u6670&#xff0c;\u4fbf\u4e8e\u7c7b\u578b\u68c0\u67e5\u548c\u540e\u7eed\u62c6\u5206<\/td>\n<\/tr>\n<tr>\n<td>\u672c\u5730\u6570\u636e\u8bbf\u95ee<\/td>\n<td>Prisma 6\u3001SQLite<\/td>\n<td>\u58f0\u660e\u5f0f\u6a21\u578b\u3001\u5173\u7cfb\u67e5\u8be2\u3001\u8fc1\u79fb&#xff1b;\u65e0\u9700\u989d\u5916\u5b89\u88c5\u6570\u636e\u5e93<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u5165\u6821\u9a8c<\/td>\n<td>Zod &#043; \u4e91\u51fd\u6570\u7b49\u4ef7\u6821\u9a8c<\/td>\n<td>\u62d2\u7edd\u975e\u6cd5\u624b\u673a\u53f7\u3001\u4ef7\u683c\u3001\u6392\u73ed\u3001\u670d\u52a1\u548c\u72b6\u6001\u8f93\u5165<\/td>\n<\/tr>\n<tr>\n<td>\u8eab\u4efd\u8ba4\u8bc1<\/td>\n<td>JWT HS256<\/td>\n<td>\u65e0\u72b6\u6001\u9274\u6743&#xff0c;\u9002\u5408\u4e91\u51fd\u6570&#xff1b;\u4ee4\u724c\u6709\u6548\u671f 7 \u5929<\/td>\n<\/tr>\n<tr>\n<td>\u5bc6\u7801\u5b89\u5168<\/td>\n<td>crypto.scrypt &#043; \u968f\u673a\u76d0<\/td>\n<td>\u6570\u636e\u5e93\u4e0d\u5b58\u660e\u6587\u5bc6\u7801&#xff0c;\u6052\u5b9a\u65f6\u95f4\u6bd4\u8f83\u54c8\u5e0c<\/td>\n<\/tr>\n<tr>\n<td>\u6743\u9650\u63a7\u5236<\/td>\n<td>RBAC<\/td>\n<td>USER\u3001TECHNICIAN\u3001ADMIN \u4e09\u79cd\u89d2\u8272\u7531\u670d\u52a1\u7aef\u9694\u79bb<\/td>\n<\/tr>\n<tr>\n<td>Web \u5b89\u5168<\/td>\n<td>Helmet\u3001CORS \u767d\u540d\u5355\u3001Body \u9650\u5236<\/td>\n<td>\u964d\u4f4e\u5e38\u89c1\u54cd\u5e94\u5934\u3001\u8de8\u57df\u548c\u5927\u8bf7\u6c42\u98ce\u9669<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u52a8\u5316\u9a8c\u8bc1<\/td>\n<td>TypeScript\u3001Puppeteer\u3001Node \u811a\u672c<\/td>\n<td>\u8986\u76d6\u6784\u5efa\u3001\u6309\u94ae\u53cd\u9988\u3001\u89d2\u8272\u7a7a\u95f4\u3001\u8d26\u53f7\u9694\u79bb\u548c\u6539\u5bc6<\/td>\n<\/tr>\n<tr>\n<td>\u90e8\u7f72<\/td>\n<td>CloudBase CLI\u3001Surge<\/td>\n<td>\u4e91\u51fd\u6570\/\u6570\u636e\u5e93\u4e0e\u9759\u6001\u524d\u7aef\u5206\u79bb&#xff0c;\u5f53\u524d\u53ef\u7ef4\u6301\u514d\u8d39\u989d\u5ea6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>3. \u540e\u7aef\u6a21\u5757<\/h3>\n<p>server\/src\/<br \/>\n\u251c\u2500 middleware\/               JWT \u9274\u6743\u3001\u89d2\u8272\u6388\u6743\u3001\u9519\u8bef\u5904\u7406<br \/>\n\u251c\u2500 modules\/<br \/>\n\u2502  \u251c\u2500 auth\/                  \u6ce8\u518c\u3001\u767b\u5f55\u3001\u4fee\u6539\u5bc6\u7801<br \/>\n\u2502  \u251c\u2500 technicians\/           \u6280\u5e08\u5217\u8868\u3001\u8be6\u60c5\u3001\u72ec\u7acb\u6863\u671f<br \/>\n\u2502  \u251c\u2500 orders\/                \u4e0b\u5355\u3001\u53d6\u6d88\u3001\u72b6\u6001\u673a\u3001\u8bc4\u4ef7<br \/>\n\u2502  \u251c\u2500 profile\/               \u7528\u6237\u8d44\u6599\u3001\u5730\u5740\u3001\u504f\u597d\u3001\u6536\u85cf\u3001\u79ef\u5206<br \/>\n\u2502  \u251c\u2500 technician-workbench\/  \u6280\u5e08\u8ba2\u5355\u4e0e\u5c65\u7ea6\u63a8\u8fdb<br \/>\n\u2502  \u2514\u2500 admin\/                 \u770b\u677f\u3001\u8ba2\u5355\u3001\u7528\u6237\u3001\u6280\u5e08\u3001\u670d\u52a1\u7ba1\u7406<br \/>\n\u2514\u2500 shared\/                   \u6570\u636e\u5e93\u3001\u5bc6\u7801\u3001\u4f1a\u8bdd\u7248\u672c\u3001\u7edf\u4e00\u9519\u8bef<\/p>\n<p>\u7ebf\u4e0a cloudfunctions\/luohan-api\/ \u5b9e\u73b0\u76f8\u540c\u63a5\u53e3&#xff1a;index.js \u8d1f\u8d23\u516c\u5171\u3001\u8ba4\u8bc1\u548c\u7528\u6237\u8d44\u6599\u8def\u7531&#xff0c;\u5176\u4f59\u6309\u7ba1\u7406\u7aef\u3001\u8ba2\u5355\u3001\u6280\u5e08\u5de5\u4f5c\u53f0\u62c6\u5206\u3002\u4e24\u5957\u5b9e\u73b0\u5171\u4eab\u4e1a\u52a1\u5951\u7ea6&#xff0c;\u907f\u514d\u524d\u7aef\u4e3a\u90e8\u7f72\u73af\u5883\u7ef4\u62a4\u4e24\u5957\u903b\u8f91\u3002<\/p>\n<h3>4. \u6570\u636e\u6a21\u578b<\/h3>\n<table>\n<tr>\u5b9e\u4f53\u5173\u952e\u6570\u636e\u5173\u7cfb\/\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>User<\/td>\n<td>\u624b\u673a\u53f7\u3001\u59d3\u540d\u3001\u89d2\u8272\u3001\u5bc6\u7801\u54c8\u5e0c\u3001\u79ef\u5206\u3001\u504f\u597d<\/td>\n<td>\u767b\u5f55\u4e3b\u4f53&#xff1b;\u53ef\u5173\u8054\u6280\u5e08\u6863\u6848\u6216\u7528\u6237\u8ba2\u5355<\/td>\n<\/tr>\n<tr>\n<td>Technician<\/td>\n<td>\u5934\u50cf\u3001\u804c\u79f0\u3001\u4f4d\u7f6e\u3001\u8bc4\u5206\u3001\u7ecf\u9a8c\u3001\u6392\u73ed\u3001\u4e0a\u4e0b\u7ebf\/\u5f52\u6863<\/td>\n<td>\u516c\u5f00\u6280\u5e08\u8d44\u6599\u4e0e\u5de5\u4f5c\u53f0\u4e3b\u4f53<\/td>\n<\/tr>\n<tr>\n<td>Service<\/td>\n<td>\u540d\u79f0\u3001\u8bf4\u660e\u3001\u4ef7\u683c\u3001\u65f6\u957f\u3001\u4e0a\u4e0b\u67b6<\/td>\n<td>\u5e73\u53f0\u53ef\u914d\u7f6e\u670d\u52a1\u76ee\u5f55<\/td>\n<\/tr>\n<tr>\n<td>TechnicianService<\/td>\n<td>technicianId\u3001serviceId<\/td>\n<td>\u6280\u5e08\u4e0e\u670d\u52a1\u591a\u5bf9\u591a\u5173\u7cfb<\/td>\n<\/tr>\n<tr>\n<td>Order<\/td>\n<td>\u7528\u6237\u3001\u6280\u5e08\u3001\u670d\u52a1\u3001\u9884\u7ea6\u65f6\u95f4\u3001\u5730\u5740\u3001\u91d1\u989d\u3001\u72b6\u6001<\/td>\n<td>\u4ea4\u6613\u4e0e\u5c65\u7ea6\u4e3b\u8bb0\u5f55<\/td>\n<\/tr>\n<tr>\n<td>OrderStatusLog<\/td>\n<td>orderId\u3001status\u3001createdAt<\/td>\n<td>\u8ba2\u5355\u72b6\u6001\u5ba1\u8ba1\u8f68\u8ff9<\/td>\n<\/tr>\n<tr>\n<td>Favorite<\/td>\n<td>userId\u3001technicianId<\/td>\n<td>\u6bcf\u4e2a\u7528\u6237\u72ec\u7acb\u6536\u85cf\u5173\u7cfb<\/td>\n<\/tr>\n<tr>\n<td>PointRecord<\/td>\n<td>userId\u3001\u53d8\u52a8\u503c\u3001\u539f\u56e0<\/td>\n<td>\u79ef\u5206\u8d26\u672c&#xff0c;\u907f\u514d\u53ea\u4fdd\u5b58\u4f59\u989d<\/td>\n<\/tr>\n<tr>\n<td>AuditLog<\/td>\n<td>\u64cd\u4f5c\u4eba\u3001\u52a8\u4f5c\u3001\u76ee\u6807\u3001\u5143\u6570\u636e<\/td>\n<td>\u7ba1\u7406\u5458\u5173\u952e\u64cd\u4f5c\u7559\u75d5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7528\u6237\u5730\u5740\u76ee\u524d\u4e0e\u504f\u597d\u4e00\u8d77\u4ee5 JSON \u5b58\u50a8\u5728 User.preferences&#xff0c;\u8fd9\u662f\u514d\u8d39 MVP \u7684\u517c\u5bb9\u6027\u53d6\u820d&#xff1b;\u8fdb\u5165\u5546\u7528\u9636\u6bb5\u540e\u4f1a\u62c6\u4e3a Address \u8868\u5e76\u589e\u52a0\u9ed8\u8ba4\u5730\u5740\u7ea6\u675f\u3002<\/p>\n<h3>5. \u8ba4\u8bc1\u3001\u4f1a\u8bdd\u548c\u6743\u9650<\/h3>\n<p>\u6ce8\u518c\u6216\u767b\u5f55\u540e\u7b7e\u53d1 JWT&#xff0c;\u8f7d\u8377\u5305\u62ec&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;sub&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u7528\u6237 ID&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;role&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;USER&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;ver&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u5bc6\u7801\u54c8\u5e0c\u6307\u7eb9&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;exp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span> <span class=\"token punctuation\">}<\/span><\/p>\n<p>ver \u662f\u5bc6\u7801\u54c8\u5e0c\u7684\u4e0d\u53ef\u9006\u77ed\u6307\u7eb9\u3002\u6bcf\u6b21\u53d7\u4fdd\u62a4\u8bf7\u6c42\u90fd\u4f1a\u8bfb\u53d6\u5f53\u524d\u7528\u6237\u5e76\u6bd4\u8f83\u6307\u7eb9&#xff0c;\u56e0\u6b64\u7528\u6237\u4fee\u6539\u5bc6\u7801\u6216\u7ba1\u7406\u5458\u91cd\u7f6e\u6280\u5e08\u5bc6\u7801\u540e&#xff0c;\u6240\u6709\u65e7\u4ee4\u724c\u7acb\u5373\u5931\u6548&#xff0c;\u65e0\u9700\u589e\u52a0\u6536\u8d39\u7f13\u5b58\u6216\u4fee\u6539\u6570\u636e\u5e93\u7ed3\u6784\u3002\u524d\u7aef\u6539\u5bc6\u6210\u529f\u540e\u4e3b\u52a8\u9000\u51fa\u5e76\u8981\u6c42\u4f7f\u7528\u65b0\u5bc6\u7801\u91cd\u65b0\u767b\u5f55\u3002<\/p>\n<p>\u6743\u9650\u8fb9\u754c&#xff1a;<\/p>\n<ul>\n<li>USER&#xff1a;\u53ea\u8bfb\u5199\u81ea\u5df1\u7684\u8d44\u6599\u3001\u5730\u5740\u3001\u6536\u85cf\u3001\u8ba2\u5355\u548c\u8bc4\u4ef7\u3002<\/li>\n<li>TECHNICIAN&#xff1a;\u53ea\u80fd\u8bfb\u53d6\u5206\u914d\u7ed9\u81ea\u5df1\u7684\u8ba2\u5355&#xff0c;\u5e76\u6309\u72b6\u6001\u673a\u63a8\u8fdb\u5c65\u7ea6\u3002<\/li>\n<li>ADMIN&#xff1a;\u8bfb\u53d6\u7ecf\u8425\u805a\u5408&#xff0c;\u7ba1\u7406\u8ba2\u5355\u3001\u7528\u6237\u3001\u670d\u52a1\u3001\u6280\u5e08\u6863\u6848\u548c\u8d26\u53f7\u3002<\/li>\n<\/ul>\n<p>\u65b0\u5efa\u6280\u5e08\u65f6\u540c\u6b65\u521b\u5efa\u5de5\u4f5c\u53f0\u8d26\u53f7\u3002\u5386\u53f2\u672a\u7ed1\u5b9a\u6863\u6848\u53ef\u5728\u7ba1\u7406\u7aef\u586b\u5199\u624b\u673a\u53f7\u548c\u521d\u59cb\u5bc6\u7801\u5b8c\u6210\u7ed1\u5b9a&#xff1b;\u624b\u673a\u53f7\u5168\u5c40\u552f\u4e00\u3002\u516c\u5171\u9762\u8bd5\u6f14\u793a\u8d26\u53f7\u7981\u6b62\u6539\u5bc6\u6216\u88ab\u91cd\u7f6e&#xff0c;\u907f\u514d\u540e\u7eed\u8bbf\u95ee\u8005\u65e0\u6cd5\u767b\u5f55\u3002<\/p>\n<h3>6. \u6838\u5fc3\u4e1a\u52a1\u89c4\u5219<\/h3>\n<h4>6.1 \u6863\u671f\u4e0e\u4e0b\u5355<\/h4>\n<p>\u6bcf\u4e2a\u6280\u5e08\u62e5\u6709\u72ec\u7acb\u7684 workDays\u3001workStart\u3001workEnd\u3002\u53ef\u9884\u7ea6\u6027\u4f9d\u6b21\u6821\u9a8c&#xff1a;\u6280\u5e08\/\u670d\u52a1\u6709\u6548\u3001\u6280\u5e08\u63d0\u4f9b\u8be5\u670d\u52a1\u3001\u65e5\u671f\u5728\u5f00\u653e\u8303\u56f4\u3001\u5317\u4eac\u65f6\u95f4\u5c1a\u672a\u8fc7\u53bb\u3001\u5c5e\u4e8e\u8be5\u6280\u5e08\u6392\u73ed\u3001\u540c\u4e00\u6280\u5e08\u540c\u4e00\u65f6\u95f4\u6ca1\u6709\u672a\u53d6\u6d88\u8ba2\u5355\u3002<\/p>\n<p>\u51b2\u7a81\u67e5\u8be2\u59cb\u7ec8\u5305\u542b technicianId&#xff0c;\u6240\u4ee5 A \u6280\u5e08 20:00 \u88ab\u9884\u7ea6\u4e0d\u4f1a\u5360\u7528 B \u6280\u5e08 20:00\u3002\u524d\u7aef\u7528\u4e8e\u5373\u65f6\u63d0\u793a&#xff0c;\u540e\u7aef\u4fdd\u7559\u6700\u7ec8\u6821\u9a8c&#xff0c;\u9632\u6b62\u7ed5\u8fc7\u9875\u9762\u63d0\u4ea4\u3002<\/p>\n<h4>6.2 \u8ba2\u5355\u72b6\u6001\u673a<\/h4>\n<p>\u5f85\u63a5\u5355 \u2192 \u5df2\u63a5\u5355 \u2192 \u5df2\u51fa\u53d1 \u2192 \u5df2\u5230\u8fbe \u2192 \u670d\u52a1\u4e2d \u2192 \u5df2\u5b8c\u6210<br \/>\n                         \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u53ef\u53d6\u6d88\u7684\u7ec8\u6b62\u72b6\u6001<\/p>\n<p>\u72b6\u6001\u4e0d\u80fd\u4efb\u610f\u8df3\u8dc3\u3002\u5230\u8fbe\u65f6\u8bb0\u5f55\u51c6\u65f6\u6570\u636e&#xff1b;\u5b8c\u6210\u540e\u5199\u5165\u7528\u6237\u79ef\u5206\u53ca\u79ef\u5206\u6d41\u6c34\u3002\u8ba2\u5355\u7ba1\u7406\u53ef\u6309\u8ba2\u5355\u53f7\u3001\u7528\u6237\u3001\u624b\u673a\u53f7\u3001\u6280\u5e08\u548c\u72b6\u6001\u7b5b\u9009&#xff0c;\u5e76\u5c55\u793a\u4e0b\u5355\u65f6\u95f4\u4e0e\u9884\u7ea6\u65f6\u95f4\u3002<\/p>\n<h4>6.3 \u8bc4\u4ef7\u3001\u6307\u6807\u4e0e\u5f52\u6863<\/h4>\n<p>\u5df2\u5b8c\u6210\u8ba2\u5355\u4ec5\u53ef\u8bc4\u4ef7\u4e00\u6b21&#xff0c;\u8bc4\u4ef7\u7ed3\u679c\u843d\u5e93\u5e76\u91cd\u65b0\u8ba1\u7b97\u6280\u5e08\u8bc4\u5206\u3002\u51c6\u65f6\u7387\u521d\u59cb\u4e3a 100%&#xff0c;\u4e4b\u540e\u6309\u771f\u5b9e\u5230\u8fbe\u8bb0\u5f55\u8ba1\u7b97&#xff1b;\u4ece\u4e1a\u7ecf\u9a8c\u7531\u7ba1\u7406\u5458\u4f9d\u636e\u8d44\u8d28\u586b\u5199\u3002\u6280\u5e08\u201c\u5220\u9664\u201d\u91c7\u7528\u8f6f\u5f52\u6863&#xff0c;\u4fdd\u7559\u5386\u53f2\u8ba2\u5355&#xff1b;\u6709\u8fdb\u884c\u4e2d\u8ba2\u5355\u65f6\u62d2\u7edd\u5f52\u6863\u3002<\/p>\n<h3>7. \u4e3b\u8981 API<\/h3>\n<table>\n<tr>\u65b9\u6cd5\u8def\u5f84\u6743\u9650\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>POST<\/td>\n<td>\/api\/auth\/register<\/td>\n<td>\u516c\u5f00<\/td>\n<td>\u7528\u6237\u6ce8\u518c<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/api\/auth\/login<\/td>\n<td>\u516c\u5f00<\/td>\n<td>\u5bc6\u7801\/\u6f14\u793a\u9a8c\u8bc1\u7801\u767b\u5f55<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/api\/auth\/me<\/td>\n<td>\u5df2\u767b\u5f55<\/td>\n<td>\u6821\u9a8c\u4f1a\u8bdd\u5e76\u8fd4\u56de\u5f53\u524d\u8d26\u53f7<\/td>\n<\/tr>\n<tr>\n<td>PUT<\/td>\n<td>\/api\/auth\/password<\/td>\n<td>\u5df2\u767b\u5f55<\/td>\n<td>\u4fee\u6539\u5bc6\u7801\u5e76\u4f7f\u65e7\u4f1a\u8bdd\u5931\u6548<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/api\/technicians\/:id\/availability<\/td>\n<td>\u516c\u5f00<\/td>\n<td>\u83b7\u53d6\u8be5\u6280\u5e08\u6392\u73ed\u548c\u5360\u7528\u65f6\u6bb5<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/api\/orders<\/td>\n<td>USER<\/td>\n<td>\u521b\u5efa\u8ba2\u5355<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/api\/orders\/:id\/review<\/td>\n<td>USER<\/td>\n<td>\u63d0\u4ea4\u5b8c\u6210\u8ba2\u5355\u8bc4\u4ef7<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/api\/admin\/dashboard<\/td>\n<td>ADMIN<\/td>\n<td>\u7ecf\u8425\u770b\u677f\u805a\u5408<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/api\/admin\/technicians<\/td>\n<td>ADMIN<\/td>\n<td>\u65b0\u5efa\u6280\u5e08\u53ca\u767b\u5f55\u8d26\u53f7<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/api\/admin\/technicians\/:id\/bind-account<\/td>\n<td>ADMIN<\/td>\n<td>\u4e3a\u65e7\u6863\u6848\u7ed1\u5b9a\u8d26\u53f7<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/api\/admin\/technicians\/:id\/reset-password<\/td>\n<td>ADMIN<\/td>\n<td>\u91cd\u7f6e\u6280\u5e08\u5bc6\u7801\u5e76\u6ce8\u9500\u65e7\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>DELETE<\/td>\n<td>\/api\/admin\/technicians\/:id<\/td>\n<td>ADMIN<\/td>\n<td>\u8f6f\u5f52\u6863\u6280\u5e08<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6210\u529f\u7edf\u4e00\u8fd4\u56de { &#034;data&#034;: &#8230; }&#xff0c;\u5931\u8d25\u7edf\u4e00\u8fd4\u56de { &#034;error&#034;: { &#034;code&#034;: &#034;&#8230;&#034;, &#034;message&#034;: &#034;&#8230;&#034; } }&#xff0c;\u4fbf\u4e8e\u524d\u7aef\u96c6\u4e2d\u5904\u7406\u53cd\u9988\u3002<\/p>\n<h3>8. \u90e8\u7f72\u3001\u914d\u7f6e\u4e0e\u6d4b\u8bd5<\/h3>\n<p>\u751f\u4ea7\u94fe\u8def&#xff1a;Surge \u9759\u6001\u524d\u7aef \u2192 CloudBase HTTP \u4e91\u51fd\u6570 \u2192 CloudBase PostgreSQL\u3002\u672c\u5730\u94fe\u8def&#xff1a;Vite \u2192 Express \u2192 Prisma \u2192 SQLite\u3002<\/p>\n<p>\u4ed3\u5e93\u4ec5\u63d0\u4ea4 .env.example&#xff1b;JWT \u5bc6\u94a5\u3001CloudBase API Key\u3001\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u771f\u5b9e\u914d\u7f6e\u4e0d\u8fdb\u5165 Git\u3002\u751f\u4ea7 CORS \u53ea\u5141\u8bb8\u6b63\u5f0f\u524d\u7aef\u57df\u540d\u3002\u5e38\u7528\u68c0\u67e5&#xff1a;<\/p>\n<p><span class=\"token function\">npm<\/span> run build<br \/>\n<span class=\"token function\">npm<\/span> run check:role-workspaces<br \/>\n<span class=\"token function\">node<\/span> scripts\/check-account-isolation.mjs<br \/>\n<span class=\"token function\">node<\/span> scripts\/check-account-workflows.mjs<br \/>\n<span class=\"token function\">node<\/span> scripts\/check-password-change.mjs<\/p>\n<p>\u81ea\u52a8\u5316\u8986\u76d6\u8d26\u53f7\u8d44\u6599\u9694\u79bb\u3001\u6536\u85cf\u9694\u79bb\u3001\u6280\u5e08\u5de5\u4f5c\u53f0\u8eab\u4efd\u3001\u5730\u5740\u6301\u4e45\u5316\u3001\u8bc4\u4ef7\u3001\u7ba1\u7406\u5458\u91cd\u7f6e\u5bc6\u7801&#xff0c;\u4ee5\u53ca\u6539\u5bc6\u540e\u65e7\u4ee4\u724c\u5931\u6548\u3002\u7ebf\u4e0a\u5199\u6d4b\u8bd5\u4f1a\u6062\u590d\u4e34\u65f6\u5bc6\u7801&#xff0c;\u907f\u514d\u6c61\u67d3\u6f14\u793a\u8d26\u53f7\u3002<\/p>\n<h3>9. \u5f53\u524d\u53d6\u820d\u548c\u98ce\u9669<\/h3>\n<ul>\n<li>\u56fa\u5b9a\u9a8c\u8bc1\u7801\u4ec5\u7528\u4e8e\u516c\u5f00\u6f14\u793a&#xff0c;\u4e0d\u53d1\u9001\u771f\u5b9e\u77ed\u4fe1&#xff1b;\u6b63\u5f0f\u4ea7\u54c1\u5fc5\u987b\u63a5\u5165\u9a8c\u8bc1\u7801\u8fc7\u671f\u3001\u9891\u7387\u9650\u5236\u548c\u98ce\u63a7\u3002<\/li>\n<li>\u6280\u5e08\u5934\u50cf\u5f53\u524d\u538b\u7f29\u81f3 100 KB \u540e\u968f\u8bb0\u5f55\u4fdd\u5b58&#xff1b;\u89c4\u6a21\u6269\u5927\u5e94\u8fc1\u79fb\u5230\u5bf9\u8c61\u5b58\u50a8\u4e0e CDN\u3002<\/li>\n<li>\u652f\u4ed8\u3001\u804a\u5929\u3001\u5b9a\u4f4d\u79fb\u52a8\u5c5e\u4e8e\u4ea4\u4e92\u6f14\u793a&#xff0c;\u6ca1\u6709\u771f\u5b9e\u8d44\u91d1\u56de\u8c03\u548c\u6301\u7eed\u4f4d\u7f6e\u901a\u9053\u3002<\/li>\n<li>\u4e91\u51fd\u6570\u7248\u672c\u4ee5\u5e94\u7528\u5c42\u67e5\u8be2\u9632\u6b62\u6863\u671f\u51b2\u7a81&#xff1b;\u9ad8\u5e76\u53d1\u4e0b\u5e94\u589e\u52a0\u6570\u636e\u5e93\u552f\u4e00\u7ea6\u675f\u4e0e\u4e8b\u52a1\u91cd\u8bd5\u3002<\/li>\n<li>\u672c\u5730\u4e0e\u4e91\u7aef\u5b58\u5728\u53cc\u5b9e\u73b0\u7ef4\u62a4\u6210\u672c&#xff1b;\u63a5\u53e3\u5951\u7ea6\u5fc5\u987b\u901a\u8fc7\u56de\u5f52\u811a\u672c\u4fdd\u6301\u4e00\u81f4\u3002<\/li>\n<li>\u5f53\u524d\u8bbf\u95ee\u4ee4\u724c 7 \u5929\u6709\u6548\u4e14\u6539\u5bc6\u53ef\u6574\u4f53\u5931\u6548&#xff0c;\u4f46\u6ca1\u6709\u591a\u8bbe\u5907\u4f1a\u8bdd\u5217\u8868\u548c\u5355\u8bbe\u5907\u9000\u51fa\u3002<\/li>\n<\/ul>\n<h3>10. \u540e\u7eed\u89c4\u5212<\/h3>\n<h4>P0&#xff1a;\u9762\u8bd5\u6f14\u793a\u7a33\u5b9a\u6027&#xff08;\u5f53\u524d\u9636\u6bb5&#xff09;<\/h4>\n<ul>\n<li>\u4fdd\u6301\u4e09\u89d2\u8272\u4e3b\u6d41\u7a0b\u3001\u8d26\u53f7\u9694\u79bb\u3001\u6863\u671f\u3001\u8ba2\u5355\u72b6\u6001\u3001\u8bc4\u4ef7\u4e0e\u7ba1\u7406\u7aef\u5168\u94fe\u8def\u53ef\u56de\u5f52\u3002<\/li>\n<li>\u589e\u52a0\u4e91\u51fd\u6570\u9519\u8bef\u544a\u8b66\u3001\u6570\u636e\u5e93\u5907\u4efd\u8bf4\u660e\u548c\u90e8\u7f72\u540e\u70df\u96fe\u6d4b\u8bd5\u3002<\/li>\n<li>\u4e3a\u5173\u952e\u5199\u64cd\u4f5c\u589e\u52a0\u8bf7\u6c42\u5e42\u7b49\u952e&#xff0c;\u907f\u514d\u5f31\u7f51\u91cd\u590d\u4e0b\u5355\u3002<\/li>\n<\/ul>\n<h4>P1&#xff1a;\u5c0f\u89c4\u6a21\u771f\u5b9e\u8fd0\u8425<\/h4>\n<ul>\n<li>\u5c06 Address\u3001Review \u62c6\u4e3a\u72ec\u7acb\u8868&#xff0c;\u652f\u6301\u8bc4\u4ef7\u6587\u672c\u3001\u6807\u7b7e\u3001\u7533\u8bc9\u4e0e\u7ba1\u7406\u7aef\u5ba1\u6838\u3002<\/li>\n<li>\u5934\u50cf\u8fc1\u79fb\u81f3\u5bf9\u8c61\u5b58\u50a8&#xff1b;\u63a5\u5165\u53d7\u9650\u77ed\u4fe1\u3001\u652f\u4ed8\u6c99\u7bb1\u3001\u6d88\u606f\u901a\u77e5\u548c\u9000\u6b3e\u72b6\u6001\u3002<\/li>\n<li>\u5f15\u5165\u77ed\u6548 Access Token &#043; Refresh Token\u3001\u8bbe\u5907\u4f1a\u8bdd\u7ba1\u7406\u3001\u767b\u5f55\u9650\u6d41\u548c\u5f02\u5e38\u767b\u5f55\u8bb0\u5f55\u3002<\/li>\n<li>\u589e\u52a0\u7ba1\u7406\u5458\u5ba1\u8ba1\u65e5\u5fd7\u9875\u9762\u3001\u7ec6\u7c92\u5ea6\u6743\u9650\u3001\u6570\u636e\u5bfc\u51fa\u548c\u654f\u611f\u5b57\u6bb5\u8131\u654f\u3002<\/li>\n<li>\u5b8c\u5584\u8ba2\u5355\u5e76\u53d1\u4e8b\u52a1\u3001\u8d85\u65f6\u81ea\u52a8\u53d6\u6d88\u3001\u6280\u5e08\u8bf7\u5047\/\u505c\u6392\u548c\u670d\u52a1\u65f6\u957f\u5360\u7528\u3002<\/li>\n<\/ul>\n<h4>P2&#xff1a;\u89c4\u6a21\u5316\u4e0e\u53ef\u9760\u6027<\/h4>\n<ul>\n<li>Redis \u7f13\u5b58\u548c\u5206\u5e03\u5f0f\u9501\u3001\u6d88\u606f\u961f\u5217\u5904\u7406\u901a\u77e5\/\u79ef\u5206\/\u7edf\u8ba1&#xff0c;WebSocket \u6216\u63a8\u9001\u627f\u8f7d\u5b9e\u65f6\u72b6\u6001\u3002<\/li>\n<li>\u53ef\u89c2\u6d4b\u6027&#xff1a;\u7ed3\u6784\u5316\u65e5\u5fd7\u3001\u94fe\u8def\u8ffd\u8e2a\u3001\u6307\u6807\u3001\u544a\u8b66\u4e0e\u9519\u8bef\u805a\u5408\u3002<\/li>\n<li>PostgreSQL \u9ad8\u53ef\u7528\u3001\u81ea\u52a8\u5907\u4efd\u4e0e\u6062\u590d\u6f14\u7ec3&#xff1b;\u8bfb\u5199\u70ed\u70b9\u7d22\u5f15\u548c\u6162\u67e5\u8be2\u6cbb\u7406\u3002<\/li>\n<li>CI\/CD \u6267\u884c\u7c7b\u578b\u3001\u5355\u5143\u3001\u96c6\u6210\u3001E2E\u3001\u5b89\u5168\u626b\u63cf\u548c\u5206\u9636\u6bb5\u53d1\u5e03\u3002<\/li>\n<li>\u5b8c\u6210\u9690\u79c1\u534f\u8bae\u3001\u6570\u636e\u6700\u5c0f\u5316\u3001\u8d26\u53f7\u6ce8\u9500\u3001\u6570\u636e\u4fdd\u7559\u548c\u652f\u4ed8\/\u5b9a\u4f4d\u5408\u89c4\u8bc4\u5ba1\u3002<\/li>\n<\/ul>\n<h3>11. \u8865\u5145<\/h3>\n<p>\u9879\u76ee\u4eae\u70b9\u4e0d\u662f\u5806\u53e0\u6280\u672f\u540d\u79f0&#xff0c;\u800c\u662f\u628a\u771f\u5b9e\u4e1a\u52a1\u89c4\u5219\u843d\u5230\u670d\u52a1\u7aef&#xff1a;\u4e09\u89d2\u8272\u6743\u9650\u4e0d\u80fd\u9760\u9690\u85cf\u6309\u94ae&#xff1b;\u6536\u85cf\u548c\u8ba2\u5355\u6309\u8d26\u53f7\u9694\u79bb&#xff1b;\u6280\u5e08\u6863\u671f\u72ec\u7acb&#xff1b;\u72b6\u6001\u63a8\u8fdb\u6709\u7ea6\u675f&#xff1b;\u8bc4\u4ef7\u3001\u79ef\u5206\u3001\u51c6\u65f6\u7387\u6765\u6e90\u53ef\u8ffd\u6eaf&#xff1b;\u6280\u5e08\u7528\u5f52\u6863\u4fdd\u7559\u5386\u53f2&#xff1b;\u6539\u5bc6\u4f1a\u6ce8\u9500\u65e7\u4f1a\u8bdd&#xff1b;\u7ebf\u4e0a\u5171\u4eab\u6570\u636e\u4e0e\u672c\u5730\u5de5\u7a0b\u5316\u540e\u7aef\u4fdd\u6301\u540c\u4e00\u63a5\u53e3\u3002\u540e\u7eed\u89c4\u5212\u8bf4\u660e\u4e86\u5f53\u524d\u514d\u8d39 MVP \u7684\u53d6\u820d&#xff0c;\u4ee5\u53ca\u5982\u4f55\u6309\u4e1a\u52a1\u589e\u957f\u9010\u6b65\u6f14\u8fdb&#xff0c;\u800c\u4e0d\u662f\u4e00\u5f00\u59cb\u8fc7\u5ea6\u8bbe\u8ba1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f57\u6c49\u5230\u5bb6&#xff1a;\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212\u6587\u6863\u7248\u672c&#xff1a;2026-09-23\u3002\u9879\u76ee\u662f\u53ef\u5728\u7ebf\u6f14\u793a\u7684\u4e0a\u95e8\u6309\u6469 O2O \u5168\u6808 MVP&#xff0c;\u4e0d\u662f\u7eaf\u524d\u7aef Mock\u3002\u751f\u4ea7\u6570\u636e\u7531\u817e\u8baf\u4e91 CloudBase \u4e91\u51fd\u6570\u4e0e PostgreSQL \u6301\u4e45\u5316&#xff1b;\u672c\u5730\u4fdd\u7559 Express  Prisma  SQLite \u4f5c\u4e3a\u7c7b\u578b\u66f4\u5b8c\u6574\u3001\u4fbf\u4e8e\u8c03\u8bd5\u7684\u5f00\u53d1\u540e\u7aef\u30021. \u7cfb\u7edf\u76ee\u6807\u4e0e\u8fb9\u754c<br \/>\n\u540e\u7aef\u627f\u62c5\u8d26\u53f7\u3001\u6280\u5e08\u3001\u670d\u52a1\u3001\u6863\u671f\u3001\u8ba2\u5355\u3001\u5c65\u7ea6\u3001\u8bc4\u4ef7\u3001\u79ef\u5206\u53ca\u7ecf\u8425\u7ba1\u7406\u516b\u7c7b\u6838\u5fc3\u80fd\u529b\u3002\u5f53\u524d\u76ee\u6807\u662f\u8ba9<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11820,10201,50,61,43,86],"topic":[],"class_list":["post-108994","post","type-post","status-publish","format-standard","hentry","category-server","tag-atomgit","tag-imagen","tag-50","tag-61","tag-43","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/108994.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7f57\u6c49\u5230\u5bb6&#xff1a;\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212\u6587\u6863\u7248\u672c&#xff1a;2026-09-23\u3002\u9879\u76ee\u662f\u53ef\u5728\u7ebf\u6f14\u793a\u7684\u4e0a\u95e8\u6309\u6469 O2O \u5168\u6808 MVP&#xff0c;\u4e0d\u662f\u7eaf\u524d\u7aef Mock\u3002\u751f\u4ea7\u6570\u636e\u7531\u817e\u8baf\u4e91 CloudBase \u4e91\u51fd\u6570\u4e0e PostgreSQL \u6301\u4e45\u5316&#xff1b;\u672c\u5730\u4fdd\u7559 Express Prisma SQLite \u4f5c\u4e3a\u7c7b\u578b\u66f4\u5b8c\u6574\u3001\u4fbf\u4e8e\u8c03\u8bd5\u7684\u5f00\u53d1\u540e\u7aef\u30021. \u7cfb\u7edf\u76ee\u6807\u4e0e\u8fb9\u754c \u540e\u7aef\u627f\u62c5\u8d26\u53f7\u3001\u6280\u5e08\u3001\u670d\u52a1\u3001\u6863\u671f\u3001\u8ba2\u5355\u3001\u5c65\u7ea6\u3001\u8bc4\u4ef7\u3001\u79ef\u5206\u53ca\u7ecf\u8425\u7ba1\u7406\u516b\u7c7b\u6838\u5fc3\u80fd\u529b\u3002\u5f53\u524d\u76ee\u6807\u662f\u8ba9\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/108994.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-22T21:56:40+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/108994.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/108994.html\",\"name\":\"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-22T21:56:40+00:00\",\"dateModified\":\"2026-09-22T21:56:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/108994.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/108994.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/108994.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/108994.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7f57\u6c49\u5230\u5bb6&#xff1a;\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212\u6587\u6863\u7248\u672c&#xff1a;2026-09-23\u3002\u9879\u76ee\u662f\u53ef\u5728\u7ebf\u6f14\u793a\u7684\u4e0a\u95e8\u6309\u6469 O2O \u5168\u6808 MVP&#xff0c;\u4e0d\u662f\u7eaf\u524d\u7aef Mock\u3002\u751f\u4ea7\u6570\u636e\u7531\u817e\u8baf\u4e91 CloudBase \u4e91\u51fd\u6570\u4e0e PostgreSQL \u6301\u4e45\u5316&#xff1b;\u672c\u5730\u4fdd\u7559 Express Prisma SQLite \u4f5c\u4e3a\u7c7b\u578b\u66f4\u5b8c\u6574\u3001\u4fbf\u4e8e\u8c03\u8bd5\u7684\u5f00\u53d1\u540e\u7aef\u30021. \u7cfb\u7edf\u76ee\u6807\u4e0e\u8fb9\u754c \u540e\u7aef\u627f\u62c5\u8d26\u53f7\u3001\u6280\u5e08\u3001\u670d\u52a1\u3001\u6863\u671f\u3001\u8ba2\u5355\u3001\u5c65\u7ea6\u3001\u8bc4\u4ef7\u3001\u79ef\u5206\u53ca\u7ecf\u8425\u7ba1\u7406\u516b\u7c7b\u6838\u5fc3\u80fd\u529b\u3002\u5f53\u524d\u76ee\u6807\u662f\u8ba9","og_url":"https:\/\/www.wsisp.com\/helps\/108994.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-22T21:56:40+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/108994.html","url":"https:\/\/www.wsisp.com\/helps\/108994.html","name":"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-22T21:56:40+00:00","dateModified":"2026-09-22T21:56:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/108994.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/108994.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/108994.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7f57\u6c49\u5230\u5bb6\uff1a\u540e\u7aef\u6280\u672f\u6808\u3001\u67b6\u6784\u4e0e\u540e\u7eed\u89c4\u5212"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/108994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=108994"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/108994\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=108994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=108994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=108994"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=108994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}