{"id":555373,"date":"2022-02-22T03:54:29","date_gmt":"2022-02-21T19:54:29","guid":{"rendered":"http:\/\/4563.org\/?p=555373"},"modified":"2022-02-22T03:54:29","modified_gmt":"2022-02-21T19:54:29","slug":"github-copilot-%e7%9c%9f%e9%a6%99-%e7%ae%80%e7%9b%b4%e6%98%af%e8%a7%a3%e6%94%be%e7%94%9f%e4%ba%a7%e5%8a%9b%e7%9a%84%e7%a5%9e%e5%99%a8-5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=555373","title":{"rendered":"Github Copilot \u771f\u9999, \u7b80\u76f4\u662f\u89e3\u653e\u751f\u4ea7\u529b\u7684\u795e\u5668."},"content":{"rendered":"<div>\n<div>\n<div>\n<h1> Github Copilot \u771f\u9999, \u7b80\u76f4\u662f\u89e3\u653e\u751f\u4ea7\u529b\u7684\u795e\u5668. <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : w88975 <\/span>  <span><i><\/i> 56<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e45\u95fb Github Copilot \u5927\u540d, \u4e4b\u524d\u4e5f\u5c31\u542c\u5230\u8fc7\u8bf4\u8be5\u63d2\u4ef6\u7684\u4ee3\u7801\u7247\u6bb5\u6d89\u53ca\u7248\u6743\u95ee\u9898, \u53e3\u7891\u4e0d\u662f\u5f88\u597d \u6628\u5929\u53d1\u73b0\u6211\u7684 github \u8d26\u53f7\u6709\u4e86 beta \u8d44\u683c\u540e, \u88c5\u4e86\u4e00\u4e2a\u8bd5\u8bd5, \u53d1\u73b0\u771f\u4e0d\u662f\u7f51\u4e0a\u6240\u8bf4\u7684\u90a3\u6837.<\/p>\n<p>\u5728\u751f\u4ea7\u73af\u5883\u91cc\u4f7f\u7528\u4e86\u4e4b\u540e,\u53d1\u73b0\u6839\u672c\u4e0d\u662f\u90a3\u4e48\u56de\u4e8b, \u8fd9\u4e2a\u63d2\u4ef6\u6700\u5927\u7684\u4f18\u52bf\u5728\u4e8e\u4ed6\u80fd\u5206\u6790\u4f60\u5f53\u524d\u9879\u76ee\u7684\u6240\u6709\u4ee3\u7801,\u4e66\u5199\u4e60\u60ef,\u800c\u4e14\u603b\u80fd\u9884\u6d4b\u4f60\u4e0b\u4e00\u6b65\u8981\u5e72\u4ec0\u4e48,\u4e00\u4e2a\u5f88\u7b80\u5355\u7684\u573a\u666f:<\/p>\n<p>\u5f53\u6211\u8981\u5199\u4e00\u4e2a\u51fd\u6570, \u6211\u53ea\u9700\u5199\u4e00\u4e2a\u51fd\u6570\u540d \u6216\u8005\u4e00\u6bb5\u6ce8\u91ca, \u4e0d\u7ba1\u662f\u4e2d\u6587\u8fd8\u662f\u82f1\u6587, \u8be5\u63d2\u4ef6\u5c31\u80fd\u5206\u6790\u4e0a\u4e0b\u6587, \u81ea\u52a8\u7ed9\u4f60\u751f\u6210\u4f60\u60f3\u8981\u7684\u4ee3\u7801,\u800c\u4e14\u7b26\u5408\u4f60\u7684\u4e66\u5199\u4e60\u60ef,\u5927\u90e8\u5206\u60c5\u51b5\u4e0b(90%)\u90fd\u662f\u5b8c\u5168\u53ef\u7528\u7684\u4ee3\u7801,\u4f60\u53ea\u9700 Tab + Enter \u8865\u5168, \u7136\u540e\u518d\u505a\u4e00\u4e9b\u5c0f\u6539\u52a8\u5c31\u591f\u4e86, \u7b80\u76f4\u5237\u65b0\u4e86\u6211\u5bf9 AI \u7684\u65b0\u770b\u6cd5, \u5c31\u50cf\u8be5\u63d2\u4ef6\u6709\u81ea\u5df1\u7684\u601d\u7ef4\u4e00\u6837.\u5b8c\u5168\u79d2\u6740\u5e02\u9762\u4e0a\u6240\u6709\u7684\u667a\u80fd\u63d0\u793a.<\/p>\n<ul>\n<li>\u6211\u624b\u5199\u7684\u4ee3\u7801:<\/li>\n<\/ul>\n<pre><code> export const getChannelPostInfo = (id: string) =&gt; {   return POSTJSON(`\/xxxxxxx\/post\/info`, { id }) }  <\/code><\/pre>\n<ul>\n<li>Copilot \u9884\u6d4b\u7684\u4ee3\u7801<\/li>\n<\/ul>\n<pre><code> \/\/ \u5220\u9664\u5e16\u5b50 (\u8fd9\u662f\u6211\u624b\u5199\u7684\u6ce8\u91ca, \u4e0b\u9762\u662f Copilot \u751f\u6210\u7684\u4ee3\u7801) export const deleteChannelPost = (id: string) =&gt; {   return POSTJSON(`\/xxxxxxx\/post\/delete`, { id }) }  <\/code><\/pre>\n<p>\u4e0d\u4ec5\u4ec5\u662f\u751f\u6210\u51fd\u6570, \u8fd8\u6709\u51fd\u6570\u5185\u7684\u4ee3\u7801\u9884\u6d4b, \u9884\u6d4b\u4f60\u4e0b\u4e00\u6b65\u8981\u5e72\u4ec0\u4e48, \u4f60\u6240\u9700\u7684\u5c31\u662f, \u628a\u51fd\u6570\u540d\u5199\u89c4\u8303, \u8ba9 AI \u77e5\u9053\u8be5\u51fd\u6570\u7684\u4f5c\u7528<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"7046358\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kebamt <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u786e\u5b9e\u5f88\u597d\u7528\uff0c\u6709\u4e00\u6b21\u6211\u4e0d\u77e5\u9053\u6709\u4e00\u4e2a\u90e8\u5206\u548b\u5199\uff0c\u8c37\u6b4c\u767e\u5ea6\u641c\u4e86 10 \u591a\u5206\u949f\u6ca1\u641c\u7740\uff0c\u8bd5\u7740\u7528\u4e86\u4e00\u4e0b GitHub Copilot \uff0c\u7ed9\u6211\u751f\u6210\u4e86\u975e\u5e38\u590d\u6742\u7684\u4e00\u6bb5\u4ee3\u7801\uff0c\u6ca1\u770b\u61c2\uff0c\u4f46\u662f\u8bd5\u8bd5\u770b\u7684\u60f3\u6cd5\u63a5\u53d7\u4e86\u5efa\u8bae\uff0c\u6700\u540e\u53d1\u73b0\u8ddf\u6211\u60f3\u8981\u7684\u5b8c\u5168\u4e00\u6837\uff0c\u7b80\u76f4\u795e\u4e86\uff0c\u54c8\u54c8\u54c8 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7046359\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zagfai <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u80fd\u591f\u751f\u6210\uff0c\u5176\u5b9e\u662f\u56e0\u4e3a\u4f60\u7684\u4ee3\u7801\u5e76\u6ca1\u6709\u4ec0\u4e48\u6280\u672f\u542b\u91cf\uff0c\u50cf\u8fd9\u79cd get delete \u7684\u58f0\u660e\u6027\u51fd\u6570\uff0c\u4ee3\u7801\u6bb5\u5927\u90e8\u5206\u672c\u8d28\u4e0a\u4e0d\u662f\u521b\u9020\uff0c\u800c\u662f\u91cd\u590d\u52b3\u52a8 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7046360\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : w88975 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @zagfai \u4f60\u80fd\u4fdd\u8bc1\u4f60\u5de5\u4f5c\u4e2d\u7684\u4e1a\u52a1\u4ee3\u7801 CRUD \u6ca1\u6709\u89c4\u5f8b,\u6ca1\u6709\u91cd\u590d\u52b3\u52a8\u7684\u5730\u65b9\u5417? \u6ca1\u4eba\u6307\u671b\u63d2\u4ef6\u53bb\u89e3\u51b3\u4e00\u4e9b\u5201\u94bb\u7684\u95ee\u9898\u5427, \u89e3\u653e\u751f\u4ea7\u529b, \u51cf\u5c11\u91cd\u590d\u52b3\u52a8\u624d\u662f\u5173\u952e <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Github Copilot \u771f\u9999&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/555373"}],"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=555373"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/555373\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=555373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=555373"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=555373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}