{"id":341273,"date":"2021-02-17T14:40:06","date_gmt":"2021-02-17T06:40:06","guid":{"rendered":"http:\/\/4563.org\/?p=341273"},"modified":"2021-02-17T14:40:06","modified_gmt":"2021-02-17T06:40:06","slug":"%e9%80%9a%e8%bf%87-strapi-%e8%bf%99%e7%b1%bb%e4%ba%a7%e5%93%81%ef%bc%8c%e6%98%af%e4%b8%8d%e6%98%af%e5%b0%b1%e6%b2%a1%e6%9c%89-crud-boy-gril-%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=341273","title":{"rendered":"\u901a\u8fc7 strapi \u8fd9\u7c7b\u4ea7\u54c1\uff0c\u662f\u4e0d\u662f\u5c31\u6ca1\u6709 CRUD boy\/gril \u4e86"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u901a\u8fc7 strapi \u8fd9\u7c7b\u4ea7\u54c1\uff0c\u662f\u4e0d\u662f\u5c31\u6ca1\u6709 CRUD boy\/gril \u4e86               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sugarkeek <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6211\u8fd9\u662f\u8bbe\u60f3\u554a\u3002<\/p>\n<p>strapi \u5176\u5b9e\u662f\u4f5c\u4e3a\u4e00\u4e2a\u4e2d\u95f4\u5c42\u6216\u8005\u7f51\u5173\u8fd9\u4e48\u4e00\u4e2a\u6982\u5ff5\uff0c\u5b9a\u4e49\u5b8c\u6a21\u578b\u548c\u6743\u9650\uff0c\u524d\u7aef\u7528 GraphQL \u67e5\u8be2\uff0c\u6d89\u53ca\u5230\u590d\u6742\u7684\u903b\u8f91\uff0c\u5982\u56fe\u7247\u5408\u6210\u7b49\uff0c\u901a\u8fc7 strapi \u63d2\u4ef6\u7684\u5f62\u5f0f\u4ea4\u7ed9\u7b97\u6cd5\u5de5\u7a0b\u5e08\u53bb\u505a\u3002<\/p>\n<p>\u5f53\u7136\u6211\u60f3\u8fc7\u751a\u81f3\u53bb\u4e86 strapi \u4e5f\u884c\uff0c\u76f4\u63a5\u5728\u6570\u636e\u5e93\u4e0a\u5b9a\u4e49\u597d\u6743\u9650\u548c\u6743\u9650\uff0cpsql \u5df2\u7ecf\u6709\u7c7b\u4f3c\u7684\u90e8\u4ef6\u4e86\u3002\u5f53\u7136\u6211\u89c9\u5f97\u52a0\u4e0a\u4e00\u5c42\u66f4\u597d\u4e00\u70b9\uff0c\u8fd9\u6837 js er \u6709 strapi.js \uff0cpy er \u6709 strapi.py, java er \u6709 strapi.java\uff0c\u66f4\u52a0\u7075\u6d3b\u3002<\/p>\n<p>\u5927\u9879\u76ee\u6211\u4e0d\u6e05\u695a\uff0c\u6211\u63a5\u89e6\u8fc7\u7684\u4e2d\u5c0f\u578b\u9879\u76ee\uff0c\u7edd\u5927\u90e8\u5206\u53ef\u4ee5\u66ff\u6362\u3002<\/p>\n<p>\u60f3\u6cd5\u53ea\u662f\u4e00\u65f6\u5174\u8d77\u8fd8\u6709\u4e0d\u6210\u719f\u7684\u5730\u65b9\u5927\u5bb6\u591a\u591a\u8ba8\u8bba      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5270791\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shawnxwang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7528\u8fc7 Prisma+Nexus\uff0c\u8fd9\u7c7b\u4ea7\u54c1\u4f1a\u6709 performance \u7684\u95ee\u9898\uff0c\u5185\u90e8\u5c0f\u9879\u76ee\u7528\u8fd8\u884c\uff0c\u7b80\u5355\u5feb\u6377                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270792\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : est <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f4e\u4ee3\u7801\u5e73\u53f0\u5e7f\u544a\u8d34\uff1f<\/p>\n<p>\u6211\u611f\u89c9\u8def\u8d70\u504f\u4e86\uff0c\u4f60\u628a graphql \u6362\u6210 sql \u5c31\u548c 20 \u5e74\u524d\u505a\u6cd5\u4e00\u6a21\u4e00\u6837\u4e86\u3002db \u8d1f\u8d23\u7ba1\u7406\u6743\u9650\uff0c\u53ef\u4ee5\u6267\u884c\u4e00\u4e9b serverless \u7684\u5b58\u50a8\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u4e1a\u52a1\u751f\u6210\u4e0d\u540c\u7684\u6570\u636e view \u3002\u5148\u8fdb\u7684\u591a\u3002<\/p>\n<p>\u90fd\u4e0d\u5982 vb5 delphi \u6765\u7684\u5feb\u3002\u62d6\u4e00\u4e2a\u8868\u683c\u63a7\u4ef6\uff0c\u53cc\u5411\u7ed1\u5b9a\uff0c\u53ef\u4ee5\u6ee1\u8db3 99%\u9700\u6c42\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270793\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sugarkeek <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @est \u8001\u54e5\uff0c\u8bf4\u5e7f\u544a\u8d34\u6211\u5c31\u4e0d\u4e50\u610f\u4e86\uff0c\u5e16\u5b50\u91cc\u6ca1\u6709\u5e7f\u544a\u94fe\u63a5\u5427\uff0c\u7ecf\u5e38\u770b\u6211\u53d1\u63a8\u5e7f\u5417\uff1f\u6211\u5c31\u53d1\u8fc7\u51e0\u4e2a\u5916\u5305\u9879\u76ee\u7684\u3002\u6211\u7406\u89e3\u8bba\u575b\u4e0a\u6709\u53d1\u5e7f\u544a\u7684\uff0c\u4f46\u662f\u8fd9\u4e48\u4e00\u4e0a\u6765\u5c31\u6263\u5e3d\u5b50\u7740\u5b9e\u4e0d\u8212\u670d\u3002<\/p>\n<p>\u6211\u4e0a\u9762\u4e5f\u8bb2\u4e86\uff0c\u4e5f\u8bbe\u60f3\u8fc7\u4e4b\u95f4\u5728\u6570\u636e\u5e93\u5c42\u9762\u5c55\u5f00\u6743\u9650\u548c\u6a21\u578b\uff0c\u4f46\u662f\u8fd8\u662f\u548c\u5176\u4ed6\u6280\u672f\u914d\u5408\u5c31\u4e0d\u592a\u7075\u6d3b\u4e86\u3002\u5982\u679c\u8bf4\u6570\u636e\u5e93\u6709\u8fd9\u4e48\u6d89\u53ca\u5230\u590d\u6742\u903b\u8f91\u4e00\u4e2a\u548c\u6280\u672f\u914d\u5408\u7684\u90e8\u5206\uff0c\u90a3\u5176\u5b9e\u548c\u6211\u8bb2\u7684\u6982\u5ff5\u4e00\u6837\uff0c                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270794\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dfzj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u53ef\u80fd\u7684\uff0cCRUD \u7684 SQL \u672c\u8eab\u8db3\u591f\u7b80\u5355\uff0cSELECT.. UPDATE&#8230; INSERT&#8230; \u672c\u8eab\u5c31\u975e\u5e38\u63a5\u8fd1\u81ea\u7136\u8bed\u8a00\u3002<br \/>\u5e94\u7528\u5c42\u6ca1\u6709\u4ec0\u4e48\u5fc5\u8981\u9700\u8981\u5e72\u6389\u5b83\uff0c\u9664\u975e\u5b83\u80fd\u5b9e\u73b0 SQL \u7684\u7684\u6548\u679c\uff0c\u5e76\u4e14\u6bd4 SQL \u8fd8\u7b80\u5355\uff0c\u800c\u4e14\u8ddf\u524d\u540e\u4e0a\u4e0b\u6587\u7a0b\u5e8f\u8854\u63a5\u6210\u672c\u4e5f\u66f4\u4f4e\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270795\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u600e\u4e48\u6709\u79cd\u91cd\u65b0\u53d1\u660e ORM \u7684\u611f\u89c9\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270796\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xcstream <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u591a\u4e86 <br \/>crud \u662f\u7a0b\u5e8f\u5458\u5403\u996d\u7684\u4e3b\u98df                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270797\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abcbuzhiming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sql \u5df2\u7ecf\u975e\u5e38\u7b80\u5355\u4e86\uff0c\u6211\u89c9\u5f97\u4f60\u91cd\u65b0\u5b9a\u4e49 SQL \u771f\u7684\u6ca1\u6709\u610f\u4e49\uff0cSQL \u6ca1\u6709\u88ab NoSQL \u5e72\u8de8\u5df2\u7ecf\u8bf4\u660e\u4e86\u81ea\u5df1\u7684\u751f\u547d\u529b\u5982\u4f55\u3002<\/p>\n<p>\u6700\u540e\uff0c\u590d\u6742\u5ea6\u95ee\u9898\u7684\u5b58\u5728\u662f\u5404\u79cd\u901a\u4fe1\u534f\u8bae\u7684\u66f4\u65b0\u89e3\u51b3\u4e0d\u4e86\uff0c\u65e0\u8bba\u4f60\u7ba1\u8fd9\u901a\u4fe1\u534f\u8bae\u53eb REST \u8fd8\u662f GraphQL \u90fd\u6ca1\u610f\u4e49                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270798\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : moonsn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             gril ?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270799\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sugarkeek <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @moonsn girl\uff0c\u624b\u8bef\u624b\u8bef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270800\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : musi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             strapi \u7531\u8c01\u53bb\u5f00\u53d1\uff1f\u524d\u7aef\u7528 GraphQL \u67e5\u8be2\u4e5f\u662f\u9700\u8981\u540e\u7aef\u53bb\u5199\u63a5\u53e3\u7684\uff0c\u4e0d\u8981\u628a GraphQL \u8fc7\u4e8e\u795e\u8bdd\u4e86\u3002\u505a\u5f00\u53d1\u7684\u8981\u8bb0\u4f4f\u4e00\u53e5\u8bdd\uff1a\u8f6f\u4ef6\u5f00\u53d1\u6ca1\u6709\u94f6\u5f39                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270801\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GreyYang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             strapi \u8fd9\u7c7b headless cms \u53ea\u80fd\u89e3\u51b3 CRUD \u9879\u76ee\u7684\u7b80\u5355\u57fa\u7840\u9700\u6c42\u3002\u4f46\u662f\u8fd9\u662f\u975e\u5e38\u6709\u610f\u4e49\u7684\u3002<br \/>\u5904\u7406\u8868\u4e4b\u95f4\u7684\u590d\u6742\u7ea7\u8054\u5173\u7cfb\u548c\u903b\u8f91\u8ba1\u7b97\uff0cstrapi \u7684 Shadow CRUD \u662f\u4e0d\u591f\u7684\uff0c\u4f46\u662f strapi \u4e5f\u660e\u767d\u8fd9\u4e2a\u9053\u7406\uff0c\u5728\u9879\u76ee\u4e2d\u51e0\u4e4e\u6bcf\u4e2a\u9636\u6bb5\u90fd\u53ef\u4ee5 hook\uff0c\u4ee5\u589e\u52a0\u81ea\u5df1\u7684\u5904\u7406\u903b\u8f91\uff0c\u751a\u81f3\u53ef\u4ee5\u5b9a\u5236 plugin, \u8fd9\u65f6 CRUD boy\/girl \u8fd8\u9700\u8981\u4e0a\u573a\u3002<br \/>\u6743\u9650\u7cfb\u7edf\u4e5f\u662f\u5982\u6b64\uff0c\u901a\u7528\u89e3\u51b3\u65b9\u6848\u4e0d\u53ef\u80fd\u5b9e\u73b0\u73b0\u5b9e\u9879\u76ee\u4e2d\u7684\u5404\u79cd\u6743\u9650\uff0c\u4f8b\u5982 strapi \u7684 RBAC \u9897\u7c92\u5ea6\u662f\u9488\u5bf9\u6bcf\u4e2a model \uff08\u8868\uff09\u4e2d\u7684\u5404\u4e2a\u65b9\u6cd5\uff08 find\/findOne\/create\/update\/delete \u7b49\uff09\u7684\u6743\u9650\uff0c\u4f46\u662f\u73b0\u5b9e\u4e2d\u7684\u9879\u76ee\u5ba2\u6237\u8981\u6c42\u7684\u201c\u6743\u9650\u201d\u53ef\u80fd\u662f\u597d\u51e0\u4e2a model \u4e2d\u65b9\u6cd5\u7684\u7ec4\u5408\uff0c\u751a\u81f3\u8fd8\u7275\u626f\u66f4\u591a\u7684\u522b\u7684\u5224\u65ad\uff0c\u8fd9\u65f6\u7684\u903b\u8f91\u4e5f\u9700\u8981 CRUD boys or girls \u53bb\u5b9e\u73b0\u3002<br \/>\u8fd8\u6709\u8bb8\u591a\u7684\u201c\u73b0\u5b9e\u201c\u9700\u6c42\u76f4\u63a5\u7528 strapi \u65e0\u6cd5\u5b8c\u6210\u7684,\u6240\u4ee5 strapi \u6b64\u7c7b\u4ea7\u54c1\u80fd\u5426\u53d6\u4ee3 CURD boy?\u6211\u89c9\u5f97\u4e0d\u80fd\u3002\u4f46\u662f\u80fd\u53d6\u4ee3\u4e00\u90e8\u5206 CRUD boy \u7684\u57fa\u7840\u5de5\u4f5c\uff0c\u8ba9 CRUD boy \u7684\u5de5\u4f5c\u66f4\u52a0\u8f7b\u677e\u4e00\u70b9\u6211\u8ba4\u4e3a\u662f\u53ef\u4ee5\u505a\u5230\u7684\u3002<br \/>\u53e6\u5916\u6027\u80fd\u95ee\u9898\u6211\u89c9\u5f97\u5012\u4e0d\u662f\u975e\u5e38\u91cd\u8981\uff0c\u8fd9\u7c7b\u4ea7\u54c1\u7684\u5355\u4f53\u6027\u80fd\u80af\u5b9a\u662f\u6bd4\u7528 springboot \u6216\u8005\u5176\u4ed6\u6846\u67b6\u76f4\u63a5\u5199\u51fa\u6765\u7684\u8981\u4f4e\uff0c\u4f46\u662f\u672c\u8eab\u903b\u8f91\u4e0e\u6570\u636e\u5206\u79bb\uff0c\u6570\u636e\u5e93\u53ef\u4ee5\u5206\u5e03\u5f0f\u6269\u5bb9\uff0cstrapi \u65e0\u72b6\u6001\u914d\u7f6e\u540e(\u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\u4e0a\u4e91\u50a8\u5b58\uff0c\u516c\u5171 auth \u8ba4\u8bc1)\u4e5f\u53ef\u4ee5\u6c34\u5e73\u6269\u5bb9\u505a\u8d1f\u8f7d\u5747\u8861\uff0c\u6700\u7ec8\u8ba1\u7b97\u5f97\u5931\u7684\u5730\u65b9\u662f\u4f7f\u7528 strapi \u51cf\u5c11\u7684\u4eba\u529b\u6210\u672c\u3001\u540e\u671f\u7ef4\u62a4\u8d39\u7528\u4e0e\u4e91\u4ea7\u54c1\uff08\u786c\u4ef6\uff09\u8d39\u7528\u589e\u52a0\u7684\u6210\u672c\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u7136\u800c\u8fd9\u4e2a\u5f97\u5931\u7ed3\u679c\u5374\u662f\u975e\u5e38\u96be\u4ee5\u660e\u786e\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5270802\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sugarkeek <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GreyYang \u611f\u8c22\u8001\u54e5\u7684\u5206\u4eab\u7684\u89c2\u70b9\uff0c\u5f88\u5ba2\u89c2\u7406\u6027\u7684\u5206\u6790                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7 strapi \u8fd9\u7c7b\u4ea7\u54c1\uff0c\u662f\u4e0d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/341273"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=341273"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/341273\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=341273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=341273"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=341273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}