{"id":78210,"date":"2026-02-26T16:58:34","date_gmt":"2026-02-26T08:58:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/78210.html"},"modified":"2026-02-26T16:58:34","modified_gmt":"2026-02-26T08:58:34","slug":"%e5%a4%9a%e8%a1%a8%e6%99%ba%e8%83%bd%e7%94%9f%e6%88%90%e9%9c%80%e6%b1%82%e5%88%86%e6%9e%90%e4%b8%8e%e5%ae%9e%e7%8e%b0%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/78210.html","title":{"rendered":"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848"},"content":{"rendered":"<h3>\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848<\/h3>\n<p>\u4f5c\u4e3a\u4f4e\u4ee3\u7801\u5e73\u53f0\u7684\u6838\u5fc3\u80fd\u529b\u5347\u7ea7&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u73b0\u6709\u7684\u201c\u5355\u8868\u6587\u5b57\u8f6c\u7ed3\u6784\u201d\u63a5\u53e3\u6269\u5c55\u4e3a\u201c\u591a\u8868\u7cfb\u7edf\u7ea7\u751f\u6210\u201d&#xff0c;\u652f\u6301\u7528\u6237\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0&#xff0c;\u81ea\u52a8\u751f\u6210\u4e00\u5957\u5b8c\u6574\u7684\u591a\u8868\u6570\u636e\u5e93\u6a21\u578b&#xff08;\u4f8b\u5982OA\u7cfb\u7edf\u3001\u8fdb\u9500\u5b58\u7b49&#xff09;\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u62c6\u89e3\u9700\u6c42&#xff0c;\u5e76\u7ed9\u51fa\u4ece\u540e\u7aef\u5230\u524d\u7aef\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6848\u3002<\/p>\n<hr \/>\n<h4>1. \u9700\u6c42\u62c6\u5206<\/h4>\n<h5>1.1 \u6838\u5fc3\u76ee\u6807<\/h5>\n<ul>\n<li>\n<p>\u8f93\u5165&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u6bb5\u81ea\u7136\u8bed\u8a00&#xff0c;\u63cf\u8ff0\u4e00\u4e2a\u4e1a\u52a1\u7cfb\u7edf\u7684\u9700\u6c42&#xff08;\u4f8b\u5982&#xff1a;\u201c\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684OA\u7cfb\u7edf&#xff0c;\u5305\u542b\u5458\u5de5\u3001\u90e8\u95e8\u3001\u8bf7\u5047\u7533\u8bf7&#xff0c;\u5458\u5de5\u5c5e\u4e8e\u90e8\u95e8&#xff0c;\u8bf7\u5047\u7533\u8bf7\u7531\u5458\u5de5\u53d1\u8d77\u201d&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8f93\u51fa&#xff1a;\u751f\u6210\u4e00\u7ec4\u5177\u6709\u5173\u8054\u5173\u7cfb\u7684\u6570\u636e\u5e93\u8868\u7ed3\u6784&#xff0c;\u5e76\u4ee5\u53ef\u89c6\u5316\u65b9\u5f0f\u5c55\u793a&#xff0c;\u5141\u8bb8\u7528\u6237\u786e\u8ba4\u3001\u4fee\u6539&#xff0c;\u6700\u7ec8\u843d\u5730\u5230\u5e73\u53f0\u7684\u5143\u6570\u636e\u5e93&#xff0c;\u5e76\u81ea\u52a8\u521b\u5efa\u7269\u7406\u8868\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>1.2 \u529f\u80fd\u6a21\u5757\u5206\u89e3<\/h5>\n<table>\n<tr>\u6a21\u5757\u5b50\u529f\u80fd\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>1. \u5927\u6a21\u578b\u4ea4\u4e92<\/td>\n<td>1.1 \u8bbe\u8ba1\u63d0\u793a\u8bcd\u6a21\u677f&#xff0c;\u5f15\u5bfc\u6a21\u578b\u8f93\u51fa\u6807\u51c6\u683c\u5f0f\u7684\u591a\u8868\u63cf\u8ff0<\/td>\n<td>\u8981\u6c42\u6a21\u578b\u8fd4\u56de JSON \u683c\u5f0f&#xff0c;\u5305\u542b\u8868\u5217\u8868\u3001\u5b57\u6bb5\u3001\u5173\u7cfb\u3001\u7d22\u5f15\u7b49\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>1.2 \u8c03\u7528\u73b0\u6709\u5927\u6a21\u578b\u63a5\u53e3&#xff0c;\u4f20\u5165\u7528\u6237\u9700\u6c42&#xff0c;\u83b7\u53d6\u539f\u59cb\u54cd\u5e94<\/td>\n<td>\u590d\u7528\u5df2\u6709\u63a5\u53e3&#xff0c;\u4f46\u9700\u8981\u9002\u914d\u591a\u8868\u8f93\u51fa<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>1.3 \u89e3\u6790\u5e76\u9a8c\u8bc1\u6a21\u578b\u8f93\u51fa&#xff0c;\u5904\u7406\u5f02\u5e38\u60c5\u51b5&#xff08;\u683c\u5f0f\u9519\u8bef\u3001\u5b57\u6bb5\u4e0d\u5168\u7b49&#xff09;<\/td>\n<td>\u52a0\u5165\u91cd\u8bd5\u6216\u964d\u7ea7\u673a\u5236<\/td>\n<\/tr>\n<tr>\n<td>2. \u540e\u7aef\u903b\u8f91<\/td>\n<td>2.1 \u5c06\u6a21\u578b\u8f93\u51fa\u8f6c\u6362\u4e3a\u5185\u90e8\u6570\u636e\u6a21\u578b&#xff08;TableSchema \u5bf9\u8c61\u96c6\u5408&#xff09;<\/td>\n<td>\u5b9a\u4e49\u6e05\u6670\u7684 Java\/Python \u5b9e\u4f53\u7c7b<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>2.2 \u81ea\u52a8\u751f\u6210\u7269\u7406 DDL&#xff08;\u542b\u5916\u952e\u7ea6\u675f&#xff09;<\/td>\n<td>\u652f\u6301\u4e3b\u6d41\u6570\u636e\u5e93&#xff08;MySQL\u3001PostgreSQL&#xff09;<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>2.3 \u5c06\u8868\u7ed3\u6784\u5143\u6570\u636e\u5b58\u5165\u5e73\u53f0\u5143\u6570\u636e\u5e93&#xff08;\u7528\u4e8e\u540e\u7eed\u4ee3\u7801\u751f\u6210\u3001UI\u6e32\u67d3&#xff09;<\/td>\n<td>\u5305\u62ec\u8868\u540d\u3001\u5b57\u6bb5\u3001\u5173\u7cfb\u3001\u7d22\u5f15\u3001\u5907\u6ce8\u7b49<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>2.4 \u63d0\u4f9b API&#xff1a;\u63a5\u6536\u6587\u5b57&#xff0c;\u8fd4\u56de\u751f\u6210\u7684\u8868\u7ed3\u6784\u9884\u89c8\u6570\u636e<\/td>\n<td>GET\/POST \u63a5\u53e3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>2.5 \u63d0\u4f9b API&#xff1a;\u7528\u6237\u786e\u8ba4\u540e&#xff0c;\u6267\u884c\u5efa\u8868\u5e76\u4fdd\u5b58\u5143\u6570\u636e<\/td>\n<td>\u4e8b\u52a1\u6027\u64cd\u4f5c&#xff0c;\u786e\u4fdd\u5143\u6570\u636e\u4e0e\u7269\u7406\u8868\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>3. \u524d\u7aef\u4ea4\u4e92<\/td>\n<td>3.1 \u8f93\u5165\u533a\u57df&#xff1a;\u591a\u884c\u6587\u672c\u6846&#xff0c;\u652f\u6301\u793a\u4f8b\u586b\u5145<\/td>\n<td>\u7c7b\u4f3c ChatGPT \u7684\u8f93\u5165\u6846<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>3.2 \u751f\u6210\u7ed3\u679c\u5c55\u793a&#xff1a;\u4ee5\u8868\u683c\u5217\u8868\u5f62\u5f0f\u5c55\u793a\u6240\u6709\u8868\u53ca\u5b57\u6bb5<\/td>\n<td>\u53ef\u6298\u53e0\u5c55\u5f00&#xff0c;\u652f\u6301\u5b57\u6bb5\u7ea7\u7f16\u8f91<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>3.3 \u5173\u7cfb\u53ef\u89c6\u5316&#xff1a;\u7528\u7b80\u6613 ER \u56fe\u6216\u5217\u8868\u5c55\u793a\u5916\u952e\u5173\u7cfb<\/td>\n<td>\u8f85\u52a9\u7528\u6237\u7406\u89e3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>3.4 \u7f16\u8f91\u529f\u80fd&#xff1a;\u5141\u8bb8\u7528\u6237\u589e\u5220\u6539\u8868\u3001\u5b57\u6bb5\u3001\u5173\u7cfb<\/td>\n<td>\u63d0\u4f9b\u201c\u6dfb\u52a0\u5b57\u6bb5\u201d\u3001\u201c\u5220\u9664\u8868\u201d\u3001\u201c\u8bbe\u7f6e\u5916\u952e\u201d\u7b49\u64cd\u4f5c<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>3.5 \u786e\u8ba4\/\u53d6\u6d88\u6309\u94ae&#xff1a;\u7528\u6237\u8c03\u6574\u6ee1\u610f\u540e&#xff0c;\u4e00\u952e\u5e94\u7528<\/td>\n<td>\u89e6\u53d1\u540e\u7aef\u5efa\u8868<\/td>\n<\/tr>\n<tr>\n<td>4. \u6269\u5c55\u4e0e\u4f18\u5316<\/td>\n<td>4.1 \u652f\u6301\u81ea\u5b9a\u4e49\u6570\u636e\u7c7b\u578b\u6620\u5c04&#xff08;\u5982\u201c\u65e5\u671f\u201d\u6620\u5c04\u4e3a date \u6216 datetime&#xff09;<\/td>\n<td>\u6839\u636e\u914d\u7f6e\u51b3\u5b9a<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>4.2 \u652f\u6301\u751f\u6210\u6837\u4f8b\u6570\u636e&#xff08;\u53ef\u9009&#xff09;<\/td>\n<td>\u7528\u4e8e\u5feb\u901f\u6f14\u793a<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>4.3 \u8bb0\u5f55\u751f\u6210\u5386\u53f2&#xff0c;\u652f\u6301\u56de\u6eaf<\/td>\n<td>\u65b9\u4fbf\u7528\u6237\u5bf9\u6bd4\u4e0d\u540c\u7248\u672c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>2. \u5927\u6a21\u578b\u63d0\u793a\u8bcd\u8bbe\u8ba1<\/h4>\n<p>\u4e3a\u4e86\u8ba9\u5927\u6a21\u578b\u7a33\u5b9a\u8f93\u51fa\u7ed3\u6784\u5316\u7684\u591a\u8868\u4fe1\u606f&#xff0c;\u6211\u4eec\u9700\u8981\u7cbe\u5fc3\u8bbe\u8ba1\u63d0\u793a\u8bcd&#xff0c;\u660e\u786e\u8f93\u51fa\u683c\u5f0f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u63d0\u793a\u8bcd\u6a21\u677f&#xff08;\u9002\u7528\u4e8e GPT \u7cfb\u5217&#xff09;&#xff1a;<\/p>\n<p>\u4f60\u662f\u4e00\u4e2a\u6570\u636e\u5e93\u8bbe\u8ba1\u4e13\u5bb6\u3002\u8bf7\u6839\u636e\u7528\u6237\u7684\u9700\u6c42&#xff0c;\u8bbe\u8ba1\u4e00\u5957\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7684\u8868\u7ed3\u6784&#xff0c;\u5e76\u4ee5\u4e25\u683c\u7684 JSON \u683c\u5f0f\u8f93\u51fa\u3002<br \/>\n\u9700\u6c42\u63cf\u8ff0&#xff1a;{user_input}<\/p>\n<p>\u8981\u6c42&#xff1a;<br \/>\n1. \u8f93\u51fa\u5fc5\u987b\u662f\u4e00\u4e2a JSON \u5bf9\u8c61&#xff0c;\u5305\u542b\u4e00\u4e2a &#034;tables&#034; \u6570\u7ec4\u3002<br \/>\n2. \u6bcf\u4e2a\u8868\u5bf9\u8c61\u5305\u542b&#xff1a;<br \/>\n   &#8211; &#034;name&#034;: \u8868\u540d&#xff08;\u82f1\u6587\u5c0f\u5199&#xff0c;\u4e0b\u5212\u7ebf\u5206\u9694&#xff09;<br \/>\n   &#8211; &#034;comment&#034;: \u8868\u6ce8\u91ca<br \/>\n   &#8211; &#034;columns&#034;: \u5b57\u6bb5\u6570\u7ec4&#xff0c;\u6bcf\u4e2a\u5b57\u6bb5\u5305\u542b&#xff1a;<br \/>\n       &#8211; &#034;name&#034;: \u5b57\u6bb5\u540d&#xff08;\u82f1\u6587\u5c0f\u5199&#xff09;<br \/>\n       &#8211; &#034;type&#034;: \u6570\u636e\u7c7b\u578b&#xff08;\u5982 int, varchar(255), date, decimal(10,2), text \u7b49&#xff09;<br \/>\n       &#8211; &#034;nullable&#034;: \u662f\u5426\u53ef\u4e3a\u7a7a&#xff0c;true\/false<br \/>\n       &#8211; &#034;primary&#034;: \u662f\u5426\u4e3b\u952e&#xff0c;true\/false<br \/>\n       &#8211; &#034;default&#034;: \u9ed8\u8ba4\u503c&#xff08;\u53ef\u9009&#xff09;<br \/>\n       &#8211; &#034;comment&#034;: \u5b57\u6bb5\u6ce8\u91ca<br \/>\n   &#8211; &#034;indexes&#034;: \u7d22\u5f15\u6570\u7ec4&#xff08;\u53ef\u9009&#xff09;&#xff0c;\u6bcf\u4e2a\u7d22\u5f15\u5305\u542b&#xff1a;<br \/>\n       &#8211; &#034;name&#034;: \u7d22\u5f15\u540d<br \/>\n       &#8211; &#034;columns&#034;: \u5b57\u6bb5\u540d\u6570\u7ec4<br \/>\n       &#8211; &#034;unique&#034;: \u662f\u5426\u552f\u4e00<br \/>\n3. \u8868\u4e4b\u95f4\u7684\u5173\u7cfb\u7528\u5916\u952e\u8868\u793a&#xff0c;\u53ef\u4ee5\u5728\u5b57\u6bb5\u4e2d\u901a\u8fc7 &#034;foreignKey&#034; \u5c5e\u6027\u63cf\u8ff0&#xff1a;<br \/>\n   &#8211; &#034;foreignKey&#034;: { &#034;table&#034;: &#034;\u5173\u8054\u8868\u540d&#034;, &#034;column&#034;: &#034;\u5173\u8054\u5b57\u6bb5&#034; }<br \/>\n   \u6216\u8005\u5355\u72ec\u7528\u4e00\u4e2a &#034;relations&#034; \u6570\u7ec4\u6765\u63cf\u8ff0&#xff0c;\u4f46\u66f4\u63a8\u8350\u5728\u5b57\u6bb5\u4e2d\u76f4\u63a5\u6807\u6ce8\u5916\u952e\u3002<br \/>\n4. \u8bf7\u786e\u4fdd\u8868\u540d\u3001\u5b57\u6bb5\u540d\u7b26\u5408\u547d\u540d\u89c4\u8303&#xff0c;\u5e76\u5305\u542b\u5fc5\u8981\u7684\u6ce8\u91ca\u3002<br \/>\n5. \u5982\u679c\u9700\u6c42\u4e2d\u6709\u660e\u663e\u7684\u591a\u5bf9\u591a\u5173\u7cfb&#xff0c;\u8bf7\u521b\u5efa\u4e2d\u95f4\u8868\u3002<\/p>\n<p>\u8bf7\u76f4\u63a5\u8f93\u51fa JSON&#xff0c;\u4e0d\u8981\u5305\u542b\u5176\u4ed6\u89e3\u91ca\u6587\u5b57\u3002<\/p>\n<p>\u793a\u4f8b\u8f93\u51fa&#xff08;\u57fa\u4e8e\u201cOA\u7cfb\u7edf\u542b\u5458\u5de5\u3001\u90e8\u95e8\u3001\u8bf7\u5047\u7533\u8bf7\u201d&#xff09;&#xff1a;<\/p>\n<p>json<\/p>\n<p>{<br \/>\n  &#034;tables&#034;: [<br \/>\n    {<br \/>\n      &#034;name&#034;: &#034;department&#034;,<br \/>\n      &#034;comment&#034;: &#034;\u90e8\u95e8\u8868&#034;,<br \/>\n      &#034;columns&#034;: [<br \/>\n        { &#034;name&#034;: &#034;id&#034;, &#034;type&#034;: &#034;int&#034;, &#034;nullable&#034;: false, &#034;primary&#034;: true, &#034;comment&#034;: &#034;\u90e8\u95e8ID&#034; },<br \/>\n        { &#034;name&#034;: &#034;name&#034;, &#034;type&#034;: &#034;varchar(100)&#034;, &#034;nullable&#034;: false, &#034;comment&#034;: &#034;\u90e8\u95e8\u540d\u79f0&#034; },<br \/>\n        { &#034;name&#034;: &#034;parent_id&#034;, &#034;type&#034;: &#034;int&#034;, &#034;nullable&#034;: true, &#034;comment&#034;: &#034;\u4e0a\u7ea7\u90e8\u95e8ID&#034;, &#034;foreignKey&#034;: { &#034;table&#034;: &#034;department&#034;, &#034;column&#034;: &#034;id&#034; } }<br \/>\n      ],<br \/>\n      &#034;indexes&#034;: []<br \/>\n    },<br \/>\n    {<br \/>\n      &#034;name&#034;: &#034;employee&#034;,<br \/>\n      &#034;comment&#034;: &#034;\u5458\u5de5\u8868&#034;,<br \/>\n      &#034;columns&#034;: [<br \/>\n        { &#034;name&#034;: &#034;id&#034;, &#034;type&#034;: &#034;int&#034;, &#034;nullable&#034;: false, &#034;primary&#034;: true, &#034;comment&#034;: &#034;\u5458\u5de5ID&#034; },<br \/>\n        { &#034;name&#034;: &#034;name&#034;, &#034;type&#034;: &#034;varchar(50)&#034;, &#034;nullable&#034;: false, &#034;comment&#034;: &#034;\u59d3\u540d&#034; },<br \/>\n        { &#034;name&#034;: &#034;department_id&#034;, &#034;type&#034;: &#034;int&#034;, &#034;nullable&#034;: true, &#034;comment&#034;: &#034;\u6240\u5c5e\u90e8\u95e8&#034;, &#034;foreignKey&#034;: { &#034;table&#034;: &#034;department&#034;, &#034;column&#034;: &#034;id&#034; } },<br \/>\n        { &#034;name&#034;: &#034;hire_date&#034;, &#034;type&#034;: &#034;date&#034;, &#034;nullable&#034;: true, &#034;comment&#034;: &#034;\u5165\u804c\u65e5\u671f&#034; }<br \/>\n      ],<br \/>\n      &#034;indexes&#034;: []<br \/>\n    },<br \/>\n    {<br \/>\n      &#034;name&#034;: &#034;leave_application&#034;,<br \/>\n      &#034;comment&#034;: &#034;\u8bf7\u5047\u7533\u8bf7\u8868&#034;,<br \/>\n      &#034;columns&#034;: [<br \/>\n        { &#034;name&#034;: &#034;id&#034;, &#034;type&#034;: &#034;int&#034;, &#034;nullable&#034;: false, &#034;primary&#034;: true, &#034;comment&#034;: &#034;\u7533\u8bf7ID&#034; },<br \/>\n        { &#034;name&#034;: &#034;employee_id&#034;, &#034;type&#034;: &#034;int&#034;, &#034;nullable&#034;: false, &#034;comment&#034;: &#034;\u7533\u8bf7\u4eba&#034;, &#034;foreignKey&#034;: { &#034;table&#034;: &#034;employee&#034;, &#034;column&#034;: &#034;id&#034; } },<br \/>\n        { &#034;name&#034;: &#034;start_date&#034;, &#034;type&#034;: &#034;date&#034;, &#034;nullable&#034;: false, &#034;comment&#034;: &#034;\u5f00\u59cb\u65e5\u671f&#034; },<br \/>\n        { &#034;name&#034;: &#034;end_date&#034;, &#034;type&#034;: &#034;date&#034;, &#034;nullable&#034;: false, &#034;comment&#034;: &#034;\u7ed3\u675f\u65e5\u671f&#034; },<br \/>\n        { &#034;name&#034;: &#034;reason&#034;, &#034;type&#034;: &#034;text&#034;, &#034;nullable&#034;: true, &#034;comment&#034;: &#034;\u4e8b\u7531&#034; },<br \/>\n        { &#034;name&#034;: &#034;status&#034;, &#034;type&#034;: &#034;varchar(20)&#034;, &#034;nullable&#034;: false, &#034;default&#034;: &#034;&#039;pending&#039;&#034;, &#034;comment&#034;: &#034;\u72b6\u6001&#034; }<br \/>\n      ],<br \/>\n      &#034;indexes&#034;: [<br \/>\n        { &#034;name&#034;: &#034;idx_employee_id&#034;, &#034;columns&#034;: [&#034;employee_id&#034;], &#034;unique&#034;: false }<br \/>\n      ]<br \/>\n    }<br \/>\n  ]<br \/>\n}<\/p>\n<hr \/>\n<h4>3. \u540e\u7aef\u8be6\u7ec6\u8bbe\u8ba1<\/h4>\n<h5>3.1 \u6280\u672f\u6808\u5047\u8bbe<\/h5>\n<ul>\n<li>\n<p>\u540e\u7aef\u8bed\u8a00&#xff1a;Java&#xff08;Spring Boot&#xff09;\u6216 Python&#xff08;FastAPI&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6570\u636e\u5e93&#xff1a;MySQL 8.0&#043; \/ PostgreSQL<\/p>\n<\/li>\n<li>\n<p>\u5927\u6a21\u578b\u8c03\u7528&#xff1a;HTTP \u8bf7\u6c42&#xff08;\u73b0\u6709\u63a5\u53e3&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5143\u6570\u636e\u5b58\u50a8&#xff1a;MySQL \u8868&#xff08;\u5982\u00a0table_meta,\u00a0column_meta,\u00a0relation_meta&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h5>3.2 \u6838\u5fc3\u6570\u636e\u6a21\u578b<\/h5>\n<p>\u5b9a\u4e49\u5185\u90e8\u5b9e\u4f53\u7c7b&#xff08;\u4ee5 Java \u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<p>java<\/p>\n<p>\/\/ TableSchema.java<br \/>\npublic class TableSchema {<br \/>\n    private String name;<br \/>\n    private String comment;<br \/>\n    private List&lt;ColumnSchema&gt; columns;<br \/>\n    private List&lt;IndexSchema&gt; indexes;<br \/>\n    \/\/ getters\/setters<br \/>\n}<\/p>\n<p>public class ColumnSchema {<br \/>\n    private String name;<br \/>\n    private String type;        \/\/ \u4f8b\u5982 &#034;varchar(255)&#034;<br \/>\n    private boolean nullable;<br \/>\n    private boolean primary;<br \/>\n    private String defaultValue;<br \/>\n    private String comment;<br \/>\n    private ForeignKey foreignKey; \/\/ \u5916\u952e\u4fe1\u606f&#xff0c;\u53ef\u4e3a\u7a7a<br \/>\n    \/\/ getters\/setters<br \/>\n}<\/p>\n<p>public class ForeignKey {<br \/>\n    private String table;   \/\/ \u5173\u8054\u8868\u540d<br \/>\n    private String column;  \/\/ \u5173\u8054\u5b57\u6bb5<br \/>\n    \/\/ getters\/setters<br \/>\n}<\/p>\n<p>public class IndexSchema {<br \/>\n    private String name;<br \/>\n    private List&lt;String&gt; columns;<br \/>\n    private boolean unique;<br \/>\n    \/\/ getters\/setters<br \/>\n}<\/p>\n<h5>3.3 \u6838\u5fc3\u6d41\u7a0b<\/h5>\n<li>\n<p>\u63a5\u6536\u8bf7\u6c42&#xff1a;POST \/api\/schema\/generate\u00a0\u5e26\u53c2\u6570\u00a0{ &#034;prompt&#034;: &#034;&#8230;&#034; }<\/p>\n<\/li>\n<li>\n<p>\u8c03\u7528\u5927\u6a21\u578b&#xff1a;\u5c06\u7528\u6237\u63d0\u793a\u8bcd\u4e0e\u9884\u8bbe\u6a21\u677f\u7ec4\u5408&#xff0c;\u8bf7\u6c42\u73b0\u6709 LLM \u63a5\u53e3&#xff0c;\u83b7\u53d6\u54cd\u5e94\u6587\u672c\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u6790 JSON&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5c1d\u8bd5\u89e3\u6790\u4e3a\u00a0TablesSchema\u00a0\u5bf9\u8c61&#xff08;\u5305\u542b tables \u6570\u7ec4&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u9a8c\u8bc1\u5fc5\u586b\u5b57\u6bb5&#xff0c;\u68c0\u67e5\u6570\u636e\u7c7b\u578b\u5408\u6cd5\u6027&#xff08;\u5982 type \u662f\u5426\u7b26\u5408 SQL \u89c4\u8303&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u89e3\u6790\u5931\u8d25&#xff0c;\u8fd4\u56de\u53cb\u597d\u9519\u8bef\u63d0\u793a&#xff0c;\u6216\u5c1d\u8bd5\u8ba9\u6a21\u578b\u91cd\u65b0\u751f\u6210&#xff08;\u91cd\u8bd5\u673a\u5236&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6784\u5efa\u9884\u89c8\u54cd\u5e94&#xff1a;\u5c06\u89e3\u6790\u540e\u7684\u7ed3\u6784\u8fd4\u56de\u524d\u7aef&#xff0c;\u540c\u65f6\u751f\u6210 DDL \u9884\u89c8&#xff08;\u4f46\u4e0d\u5b9e\u9645\u6267\u884c&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u7528\u6237\u786e\u8ba4\u540e&#xff1a;\u8c03\u7528\u00a0POST \/api\/schema\/apply&#xff0c;\u4f20\u5165\u524d\u7aef\u53ef\u80fd\u4fee\u6539\u540e\u7684\u6700\u7ec8 JSON\u3002<\/p>\n<ul>\n<li>\n<p>\u5728\u4e8b\u52a1\u4e2d&#xff1a;\u5148\u6839\u636e JSON \u751f\u6210\u7269\u7406\u8868&#xff08;\u6267\u884c CREATE TABLE \u8bed\u53e5&#xff09;&#xff0c;\u540c\u65f6\u5c06\u5143\u6570\u636e\u63d2\u5165\u5143\u6570\u636e\u5e93\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u5df2\u6709\u540c\u540d\u8868&#xff0c;\u53ef\u63d0\u793a\u51b2\u7a81&#xff0c;\u6216\u63d0\u4f9b\u201c\u8986\u76d6\/\u65b0\u5efa\u201d\u9009\u9879&#xff08;\u9700\u8c28\u614e&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8bb0\u5f55\u64cd\u4f5c\u65e5\u5fd7\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<h5>3.4 \u751f\u6210 DDL<\/h5>\n<p>\u6839\u636e\u00a0TableSchema\u00a0\u751f\u6210 SQL \u8bed\u53e5&#xff08;\u4ee5 MySQL \u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<p>java<\/p>\n<p>public String generateCreateTableSQL(TableSchema table) {<br \/>\n    StringBuilder ddl &#061; new StringBuilder(&#034;CREATE TABLE &#096;&#034;)<br \/>\n            .append(table.getName()).append(&#034;&#096; (\\\\n&#034;);<br \/>\n    List&lt;String&gt; columnDefs &#061; new ArrayList&lt;&gt;();<br \/>\n    List&lt;String&gt; primaryKeys &#061; new ArrayList&lt;&gt;();<\/p>\n<p>    for (ColumnSchema col : table.getColumns()) {<br \/>\n        StringBuilder colDef &#061; new StringBuilder(&#034;  &#096;&#034;)<br \/>\n                .append(col.getName()).append(&#034;&#096; &#034;).append(col.getType());<br \/>\n        if (!col.isNullable()) {<br \/>\n            colDef.append(&#034; NOT NULL&#034;);<br \/>\n        }<br \/>\n        if (col.getDefaultValue() !&#061; null) {<br \/>\n            colDef.append(&#034; DEFAULT &#034;).append(col.getDefaultValue());<br \/>\n        }<br \/>\n        if (col.isPrimary()) {<br \/>\n            primaryKeys.add(&#034;&#096;&#034; &#043; col.getName() &#043; &#034;&#096;&#034;);<br \/>\n        }<br \/>\n        if (col.getComment() !&#061; null &amp;&amp; !col.getComment().isEmpty()) {<br \/>\n            colDef.append(&#034; COMMENT &#039;&#034;).append(col.getComment()).append(&#034;&#039;&#034;);<br \/>\n        }<br \/>\n        columnDefs.add(colDef.toString());<br \/>\n    }<\/p>\n<p>    \/\/ \u4e3b\u952e\u7ea6\u675f<br \/>\n    if (!primaryKeys.isEmpty()) {<br \/>\n        columnDefs.add(&#034;  PRIMARY KEY (&#034; &#043; String.join(&#034;, &#034;, primaryKeys) &#043; &#034;)&#034;);<br \/>\n    }<\/p>\n<p>    \/\/ \u5916\u952e\u7ea6\u675f&#xff08;\u5728\u5efa\u8868\u8bed\u53e5\u540e\u6dfb\u52a0&#xff0c;\u6216\u4f7f\u7528\u5355\u72ec\u7684 ALTER \u8bed\u53e5&#xff0c;\u8fd9\u91cc\u9009\u62e9\u540e\u52a0&#xff09;<br \/>\n    ddl.append(String.join(&#034;,\\\\n&#034;, columnDefs));<br \/>\n    ddl.append(&#034;\\\\n) ENGINE&#061;InnoDB DEFAULT CHARSET&#061;utf8mb4 COMMENT&#061;&#039;&#034;)<br \/>\n            .append(table.getComment()).append(&#034;&#039;;&#034;);<\/p>\n<p>    \/\/ \u6dfb\u52a0\u5916\u952e\u7ea6\u675f&#xff08;ALTER TABLE&#xff09;<br \/>\n    StringBuilder fkSQL &#061; new StringBuilder();<br \/>\n    for (ColumnSchema col : table.getColumns()) {<br \/>\n        if (col.getForeignKey() !&#061; null) {<br \/>\n            fkSQL.append(&#034;ALTER TABLE &#096;&#034;).append(table.getName())<br \/>\n                    .append(&#034;&#096; ADD FOREIGN KEY (&#096;&#034;).append(col.getName())<br \/>\n                    .append(&#034;&#096;) REFERENCES &#096;&#034;).append(col.getForeignKey().getTable())<br \/>\n                    .append(&#034;&#096; (&#096;&#034;).append(col.getForeignKey().getColumn())<br \/>\n                    .append(&#034;&#096;);\\\\n&#034;);<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ \u7d22\u5f15<br \/>\n    StringBuilder indexSQL &#061; new StringBuilder();<br \/>\n    if (table.getIndexes() !&#061; null) {<br \/>\n        for (IndexSchema idx : table.getIndexes()) {<br \/>\n            indexSQL.append(&#034;CREATE &#034;);<br \/>\n            if (idx.isUnique()) indexSQL.append(&#034;UNIQUE &#034;);<br \/>\n            indexSQL.append(&#034;INDEX &#096;&#034;).append(idx.getName())<br \/>\n                    .append(&#034;&#096; ON &#096;&#034;).append(table.getName())<br \/>\n                    .append(&#034;&#096; (&#034;).append(<br \/>\n                            idx.getColumns().stream().map(c -&gt; &#034;&#096;&#034; &#043; c &#043; &#034;&#096;&#034;).collect(Collectors.joining(&#034;, &#034;))<br \/>\n                    ).append(&#034;);\\\\n&#034;);<br \/>\n        }<br \/>\n    }<\/p>\n<p>    return ddl.toString() &#043; &#034;\\\\n&#034; &#043; fkSQL.toString() &#043; &#034;\\\\n&#034; &#043; indexSQL.toString();<br \/>\n}<\/p>\n<h5>3.5 \u5143\u6570\u636e\u5b58\u50a8\u8bbe\u8ba1<\/h5>\n<p>\u5728\u5e73\u53f0\u7684\u5143\u6570\u636e\u5e93\u4e2d\u521b\u5efa\u4ee5\u4e0b\u8868&#xff1a;<\/p>\n<p>sql<\/p>\n<p>CREATE TABLE &#096;table_meta&#096; (<br \/>\n  &#096;id&#096; int PRIMARY KEY AUTO_INCREMENT,<br \/>\n  &#096;name&#096; varchar(100) NOT NULL COMMENT &#039;\u7269\u7406\u8868\u540d&#039;,<br \/>\n  &#096;display_name&#096; varchar(100) COMMENT &#039;\u663e\u793a\u540d\u79f0&#039;,<br \/>\n  &#096;comment&#096; text,<br \/>\n  &#096;created_at&#096; datetime DEFAULT CURRENT_TIMESTAMP,<br \/>\n  UNIQUE KEY &#096;uniq_name&#096; (&#096;name&#096;)<br \/>\n);<\/p>\n<p>CREATE TABLE &#096;column_meta&#096; (<br \/>\n  &#096;id&#096; int PRIMARY KEY AUTO_INCREMENT,<br \/>\n  &#096;table_id&#096; int NOT NULL,<br \/>\n  &#096;name&#096; varchar(100) NOT NULL,<br \/>\n  &#096;type&#096; varchar(50) NOT NULL,<br \/>\n  &#096;nullable&#096; tinyint(1) DEFAULT 0,<br \/>\n  &#096;primary&#096; tinyint(1) DEFAULT 0,<br \/>\n  &#096;default_value&#096; varchar(255),<br \/>\n  &#096;comment&#096; text,<br \/>\n  &#096;foreign_key_table&#096; varchar(100) COMMENT &#039;\u5173\u8054\u8868\u540d&#039;,<br \/>\n  &#096;foreign_key_column&#096; varchar(100) COMMENT &#039;\u5173\u8054\u5b57\u6bb5\u540d&#039;,<br \/>\n  FOREIGN KEY (&#096;table_id&#096;) REFERENCES &#096;table_meta&#096;(&#096;id&#096;) ON DELETE CASCADE<br \/>\n);<\/p>\n<p>CREATE TABLE &#096;index_meta&#096; (<br \/>\n  &#096;id&#096; int PRIMARY KEY AUTO_INCREMENT,<br \/>\n  &#096;table_id&#096; int NOT NULL,<br \/>\n  &#096;name&#096; varchar(100),<br \/>\n  &#096;columns&#096; text NOT NULL COMMENT &#039;\u9017\u53f7\u5206\u9694\u7684\u5b57\u6bb5\u540d&#039;,<br \/>\n  &#096;unique&#096; tinyint(1) DEFAULT 0,<br \/>\n  FOREIGN KEY (&#096;table_id&#096;) REFERENCES &#096;table_meta&#096;(&#096;id&#096;) ON DELETE CASCADE<br \/>\n);<\/p>\n<hr \/>\n<h4>4. \u524d\u7aef\u8be6\u7ec6\u8bbe\u8ba1<\/h4>\n<h5>4.1 \u754c\u9762\u5e03\u5c40<\/h5>\n<p>\u91c7\u7528\u5de6\u53f3\u7ed3\u6784\u6216\u4e0a\u4e0b\u7ed3\u6784\u3002\u8fd9\u91cc\u5efa\u8bae\u4e0a\u4e0b\u5e03\u5c40&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u9876\u90e8&#xff1a;\u8f93\u5165\u533a\u57df &#043; \u201c\u751f\u6210\u201d\u6309\u94ae &#043; \u793a\u4f8b\u4e0b\u62c9<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u90e8&#xff1a;\u751f\u6210\u7ed3\u679c\u5c55\u793a&#xff08;\u53ef\u5207\u6362\u201c\u8868\u683c\u89c6\u56fe\u201d\u548c\u201cER\u56fe\u9884\u89c8\u201d&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5e95\u90e8&#xff1a;\u64cd\u4f5c\u6309\u94ae&#xff08;\u786e\u8ba4\u5e94\u7528\u3001\u53d6\u6d88\u3001\u5bfc\u51faSQL\u7b49&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h5>4.2 \u6838\u5fc3\u7ec4\u4ef6<\/h5>\n<ul>\n<li>\n<p>PromptInput&#xff1a;\u6587\u672c\u57df&#xff0c;\u652f\u6301 placeholder \u63d0\u793a\u3002<\/p>\n<\/li>\n<li>\n<p>TableList&#xff1a;\u5c55\u793a\u6240\u6709\u8868&#xff0c;\u6bcf\u4e2a\u8868\u53ef\u5c55\u5f00\u663e\u793a\u5b57\u6bb5\u5217\u8868\u3002\u652f\u6301&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6dfb\u52a0\u65b0\u8868\u6309\u94ae&#xff08;\u5f39\u7a97\u8f93\u5165\u8868\u540d\u3001\u6ce8\u91ca&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6bcf\u4e2a\u8868\u53f3\u4fa7\u7684\u7f16\u8f91\/\u5220\u9664\u56fe\u6807<\/p>\n<\/li>\n<li>\n<p>\u6bcf\u4e2a\u5b57\u6bb5\u7684\u7f16\u8f91\/\u5220\u9664&#xff0c;\u4ee5\u53ca\u6dfb\u52a0\u5b57\u6bb5\u6309\u94ae<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>ForeignKeyEditor&#xff1a;\u5f53\u7f16\u8f91\u5b57\u6bb5\u65f6&#xff0c;\u5982\u679c\u5b57\u6bb5\u7c7b\u578b\u9002\u5408\u4f5c\u4e3a\u5916\u952e&#xff08;\u5982 int&#xff09;&#xff0c;\u663e\u793a\u201c\u8bbe\u7f6e\u4e3a\u5916\u952e\u201d\u590d\u9009\u6846&#xff0c;\u5e76\u9009\u62e9\u76ee\u6807\u8868\u548c\u5b57\u6bb5\u3002<\/p>\n<\/li>\n<li>\n<p>ERDiagram&#xff08;\u53ef\u9009&#xff09;&#xff1a;\u7528\u7b80\u5355\u7684 SVG \u6216 Canvas \u7ed8\u5236\u8868\u6846\u548c\u8fde\u7ebf&#xff0c;\u6839\u636e\u5916\u952e\u4fe1\u606f\u7ed8\u5236\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>4.3 \u72b6\u6001\u7ba1\u7406<\/h5>\n<ul>\n<li>\n<p>\u4f7f\u7528 Vue3 \u6216 React \u7684\u54cd\u5e94\u5f0f\u6570\u636e\u5b58\u50a8\u5f53\u524d\u751f\u6210\u7684 schema\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f53\u7528\u6237\u7f16\u8f91\u65f6&#xff0c;\u5b9e\u65f6\u66f4\u65b0\u672c\u5730\u72b6\u6001&#xff0c;\u4f46\u4e0d\u4f1a\u81ea\u52a8\u89e6\u53d1\u540e\u7aef\u3002<\/p>\n<\/li>\n<li>\n<p>\u786e\u8ba4\u5e94\u7528\u65f6&#xff0c;\u5c06\u5f53\u524d schema \u53d1\u9001\u5230\u540e\u7aef\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>4.4 \u4e0e\u540e\u7aef\u4ea4\u4e92<\/h5>\n<ul>\n<li>\n<p>\u8c03\u7528\u751f\u6210\u63a5\u53e3&#xff1a;POST \/api\/schema\/generate&#xff0c;\u4f20\u9012 prompt&#xff0c;\u8fd4\u56de schema JSON\u3002<\/p>\n<\/li>\n<li>\n<p>\u8c03\u7528\u5e94\u7528\u63a5\u53e3&#xff1a;POST \/api\/schema\/apply&#xff0c;\u4f20\u9012\u6700\u7ec8\u7684 schema JSON\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>4.5 \u5173\u952e\u4ee3\u7801\u793a\u4f8b&#xff08;Vue3 &#043; Element Plus&#xff09;<\/h5>\n<p>vue<\/p>\n<p>&lt;template&gt;<br \/>\n  &lt;div class&#061;&#034;container&#034;&gt;<br \/>\n    &lt;el-input<br \/>\n      v-model&#061;&#034;prompt&#034;<br \/>\n      type&#061;&#034;textarea&#034;<br \/>\n      :rows&#061;&#034;4&#034;<br \/>\n      placeholder&#061;&#034;\u8bf7\u8f93\u5165\u7cfb\u7edf\u9700\u6c42&#xff0c;\u4f8b\u5982&#xff1a;\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684OA\u7cfb\u7edf&#xff0c;\u5305\u542b\u5458\u5de5\u3001\u90e8\u95e8\u3001\u8bf7\u5047\u7533\u8bf7&#8230;&#034;<br \/>\n    \/&gt;<br \/>\n    &lt;el-button type&#061;&#034;primary&#034; &#064;click&#061;&#034;generate&#034; :loading&#061;&#034;generating&#034;&gt;\u751f\u6210&lt;\/el-button&gt;<\/p>\n<p>    &lt;div v-if&#061;&#034;schema&#034; class&#061;&#034;schema-preview&#034;&gt;<br \/>\n      &lt;el-tabs&gt;<br \/>\n        &lt;el-tab-pane label&#061;&#034;\u8868\u7ed3\u6784&#034;&gt;<br \/>\n          &lt;div v-for&#061;&#034;table in schema.tables&#034; :key&#061;&#034;table.name&#034; class&#061;&#034;table-card&#034;&gt;<br \/>\n            &lt;el-card&gt;<br \/>\n              &lt;template #header&gt;<br \/>\n                &lt;span&gt;{{ table.name }} ({{ table.comment }})&lt;\/span&gt;<br \/>\n                &lt;el-button type&#061;&#034;text&#034; &#064;click&#061;&#034;editTable(table)&#034;&gt;\u7f16\u8f91&lt;\/el-button&gt;<br \/>\n                &lt;el-button type&#061;&#034;text&#034; &#064;click&#061;&#034;deleteTable(table)&#034;&gt;\u5220\u9664&lt;\/el-button&gt;<br \/>\n              &lt;\/template&gt;<br \/>\n              &lt;el-table :data&#061;&#034;table.columns&#034; style&#061;&#034;width: 100%&#034;&gt;<br \/>\n                &lt;el-table-column prop&#061;&#034;name&#034; label&#061;&#034;\u5b57\u6bb5\u540d&#034; \/&gt;<br \/>\n                &lt;el-table-column prop&#061;&#034;type&#034; label&#061;&#034;\u7c7b\u578b&#034; \/&gt;<br \/>\n                &lt;el-table-column prop&#061;&#034;nullable&#034; label&#061;&#034;\u53ef\u7a7a&#034;&gt;<br \/>\n                  &lt;template #default&#061;&#034;{ row }&#034;&gt;{{ row.nullable ? &#039;\u662f&#039; : &#039;\u5426&#039; }}&lt;\/template&gt;<br \/>\n                &lt;\/el-table-column&gt;<br \/>\n                &lt;el-table-column prop&#061;&#034;primary&#034; label&#061;&#034;\u4e3b\u952e&#034;&gt;<br \/>\n                  &lt;template #default&#061;&#034;{ row }&#034;&gt;{{ row.primary ? &#039;\u662f&#039; : &#039;\u5426&#039; }}&lt;\/template&gt;<br \/>\n                &lt;\/el-table-column&gt;<br \/>\n                &lt;el-table-column prop&#061;&#034;comment&#034; label&#061;&#034;\u6ce8\u91ca&#034; \/&gt;<br \/>\n                &lt;el-table-column label&#061;&#034;\u5916\u952e&#034; width&#061;&#034;120&#034;&gt;<br \/>\n                  &lt;template #default&#061;&#034;{ row }&#034;&gt;<br \/>\n                    &lt;span v-if&#061;&#034;row.foreignKey&#034;&gt;{{ row.foreignKey.table }}.{{ row.foreignKey.column }}&lt;\/span&gt;<br \/>\n                  &lt;\/template&gt;<br \/>\n                &lt;\/el-table-column&gt;<br \/>\n                &lt;el-table-column label&#061;&#034;\u64cd\u4f5c&#034; width&#061;&#034;120&#034;&gt;<br \/>\n                  &lt;template #default&#061;&#034;{ row }&#034;&gt;<br \/>\n                    &lt;el-button type&#061;&#034;text&#034; &#064;click&#061;&#034;editColumn(table, row)&#034;&gt;\u7f16\u8f91&lt;\/el-button&gt;<br \/>\n                    &lt;el-button type&#061;&#034;text&#034; &#064;click&#061;&#034;deleteColumn(table, row)&#034;&gt;\u5220\u9664&lt;\/el-button&gt;<br \/>\n                  &lt;\/template&gt;<br \/>\n                &lt;\/el-table-column&gt;<br \/>\n              &lt;\/el-table&gt;<br \/>\n              &lt;el-button type&#061;&#034;primary&#034; size&#061;&#034;small&#034; &#064;click&#061;&#034;addColumn(table)&#034;&gt;\u6dfb\u52a0\u5b57\u6bb5&lt;\/el-button&gt;<br \/>\n            &lt;\/el-card&gt;<br \/>\n          &lt;\/div&gt;<br \/>\n          &lt;el-button type&#061;&#034;success&#034; &#064;click&#061;&#034;addTable&#034;&gt;\u6dfb\u52a0\u8868&lt;\/el-button&gt;<br \/>\n        &lt;\/el-tab-pane&gt;<br \/>\n        &lt;el-tab-pane label&#061;&#034;ER\u56fe&#034;&gt;\u7b80\u6613ER\u56fe\u5360\u4f4d&lt;\/el-tab-pane&gt;<br \/>\n      &lt;\/el-tabs&gt;<br \/>\n    &lt;\/div&gt;<\/p>\n<p>    &lt;div class&#061;&#034;actions&#034; v-if&#061;&#034;schema&#034;&gt;<br \/>\n      &lt;el-button type&#061;&#034;primary&#034; &#064;click&#061;&#034;applySchema&#034;&gt;\u786e\u8ba4\u5e94\u7528&lt;\/el-button&gt;<br \/>\n      &lt;el-button &#064;click&#061;&#034;cancel&#034;&gt;\u53d6\u6d88&lt;\/el-button&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n&lt;\/template&gt;<\/p>\n<p>&lt;script setup&gt;<br \/>\nimport { ref } from &#039;vue&#039;<br \/>\nimport axios from &#039;axios&#039;<\/p>\n<p>const prompt &#061; ref(&#039;&#039;)<br \/>\nconst generating &#061; ref(false)<br \/>\nconst schema &#061; ref(null)<\/p>\n<p>const generate &#061; async () &#061;&gt; {<br \/>\n  generating.value &#061; true<br \/>\n  try {<br \/>\n    const res &#061; await axios.post(&#039;\/api\/schema\/generate&#039;, { prompt: prompt.value })<br \/>\n    schema.value &#061; res.data<br \/>\n  } catch (e) {<br \/>\n    ElMessage.error(&#039;\u751f\u6210\u5931\u8d25&#xff1a;&#039; &#043; e.message)<br \/>\n  } finally {<br \/>\n    generating.value &#061; false<br \/>\n  }<br \/>\n}<\/p>\n<p>const applySchema &#061; async () &#061;&gt; {<br \/>\n  try {<br \/>\n    await axios.post(&#039;\/api\/schema\/apply&#039;, schema.value)<br \/>\n    ElMessage.success(&#039;\u5e94\u7528\u6210\u529f&#039;)<br \/>\n  } catch (e) {<br \/>\n    ElMessage.error(&#039;\u5e94\u7528\u5931\u8d25&#xff1a;&#039; &#043; e.message)<br \/>\n  }<br \/>\n}<\/p>\n<p>\/\/ \u5176\u4ed6\u7f16\u8f91\u65b9\u6cd5\u7565&#8230;<br \/>\n&lt;\/script&gt;<\/p>\n<hr \/>\n<h4>5. \u5173\u7cfb\u5904\u7406\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h4>\n<h5>5.1 \u591a\u5bf9\u591a\u5173\u7cfb\u81ea\u52a8\u8bc6\u522b<\/h5>\n<ul>\n<li>\n<p>\u5728\u63d0\u793a\u8bcd\u4e2d\u5f15\u5bfc\u6a21\u578b&#xff1a;\u9047\u5230\u591a\u5bf9\u591a&#xff08;\u5982\u201c\u5b66\u751f\u548c\u8bfe\u7a0b\u201d&#xff09;&#xff0c;\u5e94\u521b\u5efa\u4e2d\u95f4\u8868&#xff0c;\u5e76\u5728\u4e2d\u95f4\u8868\u4e2d\u8bbe\u7f6e\u4e24\u4e2a\u5916\u952e\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u6a21\u578b\u672a\u81ea\u52a8\u521b\u5efa&#xff0c;\u524d\u7aef\u53ef\u63d0\u4f9b\u201c\u6dfb\u52a0\u4e2d\u95f4\u8868\u201d\u7684\u5feb\u6377\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>5.2 \u6570\u636e\u7c7b\u578b\u6620\u5c04<\/h5>\n<ul>\n<li>\n<p>\u53ef\u914d\u7f6e\u4e00\u4e2a\u6620\u5c04\u8868&#xff0c;\u5c06\u5e38\u89c1\u4e2d\u6587\u63cf\u8ff0&#xff08;\u5982\u201c\u6574\u6570\u201d\u3001\u201c\u5b57\u7b26\u4e32\u201d\u3001\u201c\u65e5\u671f\u201d&#xff09;\u6620\u5c04\u5230\u5177\u4f53 SQL \u7c7b\u578b\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f8b\u5982\u6a21\u578b\u8f93\u51fa\u00a0&#034;type&#034;: &#034;int&#034;\u00a0\u76f4\u63a5\u53ef\u7528&#xff0c;\u4f46\u82e5\u8f93\u51fa\u00a0&#034;type&#034;: &#034;\u6574\u6570&#034;&#xff0c;\u5219\u9700\u8981\u540e\u5904\u7406\u8f6c\u6362\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>5.3 \u5b57\u6bb5\u9ed8\u8ba4\u503c\u5904\u7406<\/h5>\n<ul>\n<li>\n<p>\u6ce8\u610f SQL \u8bed\u6cd5\u4e2d\u9ed8\u8ba4\u503c\u7684\u5f15\u53f7\u95ee\u9898&#xff1a;\u5b57\u7b26\u4e32\u9700\u52a0\u5355\u5f15\u53f7&#xff0c;\u6570\u5b57\u548c\u5e03\u5c14\u65e0\u9700\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u6790\u65f6\u53ef\u6839\u636e\u7c7b\u578b\u81ea\u52a8\u5904\u7406\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>5.4 \u8868\u540d\u51b2\u7a81<\/h5>\n<ul>\n<li>\n<p>\u5982\u679c\u5143\u6570\u636e\u5e93\u4e2d\u5df2\u5b58\u5728\u540c\u540d\u8868&#xff0c;\u5e94\u5728\u5e94\u7528\u524d\u63d0\u793a\u7528\u6237\u9009\u62e9&#xff1a;\u8986\u76d6\u3001\u91cd\u547d\u540d\u6216\u8df3\u8fc7\u3002<\/p>\n<\/li>\n<li>\n<p>\u8986\u76d6\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e22\u5931&#xff0c;\u9700\u8c28\u614e&#xff0c;\u901a\u5e38\u5efa\u8bae\u4ec5\u7528\u4e8e\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>5.5 \u4e8b\u52a1\u6027\u4fdd\u8bc1<\/h5>\n<ul>\n<li>\n<p>\u5e94\u7528\u63a5\u53e3\u5e94\u5728\u6570\u636e\u5e93\u4e8b\u52a1\u4e2d\u6267\u884c&#xff1a;\u5148\u63d2\u5165\u5143\u6570\u636e&#xff0c;\u518d\u6267\u884c DDL\u3002\u82e5 DDL \u5931\u8d25&#xff0c;\u56de\u6eda\u5143\u6570\u636e\u63d2\u5165\u3002<\/p>\n<\/li>\n<li>\n<p>\u6ce8\u610f&#xff1a;DDL \u662f\u9690\u5f0f\u63d0\u4ea4\u7684&#xff0c;\u5728 MySQL \u4e2d\u65e0\u6cd5\u56de\u6eda&#xff0c;\u6240\u4ee5\u66f4\u597d\u7684\u987a\u5e8f\u662f&#xff1a;\u5148\u521b\u5efa\u7269\u7406\u8868&#xff0c;\u6210\u529f\u540e\u518d\u63d2\u5165\u5143\u6570\u636e\u3002\u5982\u679c\u5143\u6570\u636e\u63d2\u5165\u5931\u8d25&#xff0c;\u9700\u624b\u52a8\u5220\u9664\u5df2\u521b\u5efa\u7684\u8868&#xff08;\u6216\u8bb0\u5f55\u65e5\u5fd7\u7531\u7ba1\u7406\u5458\u5904\u7406&#xff09;\u3002\u4f46\u4e3a\u4e86\u7b80\u5316&#xff0c;\u53ef\u5148\u63d2\u5165\u5143\u6570\u636e&#xff08;\u8bbe\u7f6e\u72b6\u6001\u4e3a\u201c\u521b\u5efa\u4e2d\u201d&#xff09;&#xff0c;\u7136\u540e\u521b\u5efa\u8868&#xff0c;\u6210\u529f\u540e\u66f4\u65b0\u72b6\u6001\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>5.6 \u5927\u6a21\u578b\u8f93\u51fa\u8d28\u91cf\u63d0\u5347<\/h5>\n<ul>\n<li>\n<p>\u53ef\u901a\u8fc7 few-shot \u793a\u4f8b\u5f3a\u5316\u6a21\u578b\u5bf9 JSON \u683c\u5f0f\u7684\u9075\u5faa\u3002<\/p>\n<\/li>\n<li>\n<p>\u589e\u52a0\u540e\u5904\u7406\u6821\u9a8c&#xff0c;\u5982\u68c0\u67e5\u4e3b\u952e\u662f\u5426\u5b58\u5728\u3001\u5916\u952e\u5f15\u7528\u662f\u5426\u5b58\u5728\u7b49\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u6a21\u578b\u8f93\u51fa\u4e0d\u7b26\u5408\u8981\u6c42&#xff0c;\u53ef\u5c1d\u8bd5\u91cd\u65b0\u751f\u6210\u6216\u63d0\u793a\u7528\u6237\u624b\u52a8\u4fee\u6b63\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>6. \u6269\u5c55\u601d\u8003<\/h4>\n<h5>6.1 \u751f\u6210\u521d\u59cb\u6570\u636e<\/h5>\n<ul>\n<li>\n<p>\u53ef\u5728\u751f\u6210\u8868\u7ed3\u6784\u540e&#xff0c;\u8ba9\u5927\u6a21\u578b\u518d\u751f\u6210\u4e00\u6279\u6837\u4f8b\u6570\u636e&#xff08;INSERT \u8bed\u53e5&#xff09;&#xff0c;\u7528\u4e8e\u5feb\u901f\u6f14\u793a\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>6.2 \u751f\u6210 API \u4e0e UI<\/h5>\n<ul>\n<li>\n<p>\u7ed3\u5408\u4f4e\u4ee3\u7801\u5e73\u53f0\u80fd\u529b&#xff0c;\u6839\u636e\u751f\u6210\u7684\u8868\u7ed3\u6784\u81ea\u52a8\u751f\u6210 CRUD \u9875\u9762\u548c API\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>6.3 \u8fed\u4ee3\u4f18\u5316<\/h5>\n<ul>\n<li>\n<p>\u8bb0\u5f55\u7528\u6237\u5bf9\u751f\u6210\u7ed3\u679c\u7684\u4fee\u6539&#xff0c;\u5f62\u6210\u53cd\u9988\u6570\u636e&#xff0c;\u7528\u4e8e\u5fae\u8c03\u63d0\u793a\u8bcd\u6216\u6a21\u578b\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>6.4 \u591a\u8f6e\u5bf9\u8bdd<\/h5>\n<ul>\n<li>\n<p>\u652f\u6301\u7528\u6237\u901a\u8fc7\u5bf9\u8bdd\u9010\u6b65\u8c03\u6574\u9700\u6c42&#xff08;\u4f8b\u5982\u201c\u518d\u589e\u52a0\u4e00\u4e2a\u89d2\u8272\u8868\u201d&#xff09;&#xff0c;\u540e\u7aef\u7ef4\u62a4\u4e0a\u4e0b\u6587\u72b6\u6001\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>7. \u603b\u7ed3<\/h4>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u9700\u6c42\u62c6\u5206\u4e0e\u8be6\u7ec6\u8bbe\u8ba1&#xff0c;\u6211\u4eec\u6210\u529f\u5c06\u5355\u8868\u751f\u6210\u6269\u5c55\u4e3a\u591a\u8868\u7cfb\u7edf\u751f\u6210\u3002\u6838\u5fc3\u5728\u4e8e&#xff1a;\u5b9a\u4e49\u6807\u51c6\u5316\u7684 JSON \u4ea4\u6362\u683c\u5f0f\u3001\u5065\u58ee\u7684\u89e3\u6790\u4e0e\u9a8c\u8bc1\u3001\u7075\u6d3b\u7684\u7f16\u8f91\u4ea4\u4e92\u3001\u53ef\u9760\u7684\u5143\u6570\u636e\u4e0e\u7269\u7406\u8868\u540c\u6b65\u3002\u8fd9\u4e00\u529f\u80fd\u5c06\u6781\u5927\u63d0\u5347\u4f4e\u4ee3\u7801\u5e73\u53f0\u7684\u5efa\u6a21\u6548\u7387&#xff0c;\u4f7f\u7528\u6237\u80fd\u591f\u7528\u81ea\u7136\u8bed\u8a00\u5feb\u901f\u642d\u5efa\u4e1a\u52a1\u539f\u578b\u3002<\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u56e2\u961f\u53ef\u4ee5\u6309\u7167\u6a21\u5757\u9010\u6b65\u5f00\u53d1&#xff0c;\u5e76\u6301\u7eed\u6839\u636e\u7528\u6237\u53cd\u9988\u4f18\u5316\u6a21\u578b\u63d0\u793a\u8bcd\u4e0e\u7f16\u8f91\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848\u4f5c\u4e3a\u4f4e\u4ee3\u7801\u5e73\u53f0\u7684\u6838\u5fc3\u80fd\u529b\u5347\u7ea7&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u73b0\u6709\u7684\u201c\u5355\u8868\u6587\u5b57\u8f6c\u7ed3\u6784\u201d\u63a5\u53e3\u6269\u5c55\u4e3a\u201c\u591a\u8868\u7cfb\u7edf\u7ea7\u751f\u6210\u201d&#xff0c;\u652f\u6301\u7528\u6237\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0&#xff0c;\u81ea\u52a8\u751f\u6210\u4e00\u5957\u5b8c\u6574\u7684\u591a\u8868\u6570\u636e\u5e93\u6a21\u578b&#xff08;\u4f8b\u5982OA\u7cfb\u7edf\u3001\u8fdb\u9500\u5b58\u7b49&#xff09;\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u62c6\u89e3\u9700\u6c42&#xff0c;\u5e76\u7ed9\u51fa\u4ece\u540e\u7aef\u5230\u524d\u7aef\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6848\u30021. \u9700\u6c42\u62c6\u52061.1 \u6838\u5fc3\u76ee\u6807\u8f93\u5165&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u6bb5\u81ea\u7136\u8bed\u8a00&#xff0c;\u63cf\u8ff0\u4e00\u4e2a\u4e1a\u52a1\u7cfb\u7edf\u7684\u9700\u6c42&#xff08;\u4f8b\u5982&amp;#<\/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":[50,1359],"topic":[],"class_list":["post-78210","post","type-post","status-publish","format-standard","hentry","category-server","tag-50","tag-1359"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848 - \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\/78210.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848\u4f5c\u4e3a\u4f4e\u4ee3\u7801\u5e73\u53f0\u7684\u6838\u5fc3\u80fd\u529b\u5347\u7ea7&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u73b0\u6709\u7684\u201c\u5355\u8868\u6587\u5b57\u8f6c\u7ed3\u6784\u201d\u63a5\u53e3\u6269\u5c55\u4e3a\u201c\u591a\u8868\u7cfb\u7edf\u7ea7\u751f\u6210\u201d&#xff0c;\u652f\u6301\u7528\u6237\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0&#xff0c;\u81ea\u52a8\u751f\u6210\u4e00\u5957\u5b8c\u6574\u7684\u591a\u8868\u6570\u636e\u5e93\u6a21\u578b&#xff08;\u4f8b\u5982OA\u7cfb\u7edf\u3001\u8fdb\u9500\u5b58\u7b49&#xff09;\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u62c6\u89e3\u9700\u6c42&#xff0c;\u5e76\u7ed9\u51fa\u4ece\u540e\u7aef\u5230\u524d\u7aef\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6848\u30021. \u9700\u6c42\u62c6\u52061.1 \u6838\u5fc3\u76ee\u6807\u8f93\u5165&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u6bb5\u81ea\u7136\u8bed\u8a00&#xff0c;\u63cf\u8ff0\u4e00\u4e2a\u4e1a\u52a1\u7cfb\u7edf\u7684\u9700\u6c42&#xff08;\u4f8b\u5982&amp;#\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/78210.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-26T08:58:34+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=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78210.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/78210.html\",\"name\":\"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-26T08:58:34+00:00\",\"dateModified\":\"2026-02-26T08:58:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/78210.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/78210.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78210.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848\"}]},{\"@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":"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848 - \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\/78210.html","og_locale":"zh_CN","og_type":"article","og_title":"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848\u4f5c\u4e3a\u4f4e\u4ee3\u7801\u5e73\u53f0\u7684\u6838\u5fc3\u80fd\u529b\u5347\u7ea7&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u73b0\u6709\u7684\u201c\u5355\u8868\u6587\u5b57\u8f6c\u7ed3\u6784\u201d\u63a5\u53e3\u6269\u5c55\u4e3a\u201c\u591a\u8868\u7cfb\u7edf\u7ea7\u751f\u6210\u201d&#xff0c;\u652f\u6301\u7528\u6237\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0&#xff0c;\u81ea\u52a8\u751f\u6210\u4e00\u5957\u5b8c\u6574\u7684\u591a\u8868\u6570\u636e\u5e93\u6a21\u578b&#xff08;\u4f8b\u5982OA\u7cfb\u7edf\u3001\u8fdb\u9500\u5b58\u7b49&#xff09;\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u62c6\u89e3\u9700\u6c42&#xff0c;\u5e76\u7ed9\u51fa\u4ece\u540e\u7aef\u5230\u524d\u7aef\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6848\u30021. \u9700\u6c42\u62c6\u52061.1 \u6838\u5fc3\u76ee\u6807\u8f93\u5165&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u6bb5\u81ea\u7136\u8bed\u8a00&#xff0c;\u63cf\u8ff0\u4e00\u4e2a\u4e1a\u52a1\u7cfb\u7edf\u7684\u9700\u6c42&#xff08;\u4f8b\u5982&amp;#","og_url":"https:\/\/www.wsisp.com\/helps\/78210.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-26T08:58:34+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/78210.html","url":"https:\/\/www.wsisp.com\/helps\/78210.html","name":"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-26T08:58:34+00:00","dateModified":"2026-02-26T08:58:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/78210.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/78210.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/78210.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u591a\u8868\u667a\u80fd\u751f\u6210\u9700\u6c42\u5206\u6790\u4e0e\u5b9e\u73b0\u65b9\u6848"}]},{"@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\/78210","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=78210"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78210\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=78210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=78210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=78210"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=78210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}