{"id":926,"date":"2024-11-07T12:51:09","date_gmt":"2024-11-07T04:51:09","guid":{"rendered":"https:\/\/fwq.ai\/blog\/926\/"},"modified":"2024-11-07T12:51:09","modified_gmt":"2024-11-07T04:51:09","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-go-%e4%b8%ad%e5%ae%9e%e7%8e%b0%e6%95%b0%e6%8d%ae%e5%ba%93%e5%8f%98%e6%9b%b4%e8%b7%9f%e8%b8%aa%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/926\/","title":{"rendered":"\u5982\u4f55\u5728 Go \u4e2d\u5b9e\u73b0\u6570\u636e\u5e93\u53d8\u66f4\u8ddf\u8e2a\uff1f"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-979\" src=\"https:\/\/fwq.ai\/blog\/wp-content\/uploads\/2024\/11\/173072934387898.jpg\" width=\"800\" height=\"320\" srcset=\"https:\/\/fwq.ai\/blog\/wp-content\/uploads\/2024\/11\/173072934387898.jpg 800w, https:\/\/fwq.ai\/blog\/wp-content\/uploads\/2024\/11\/173072934387898-300x120.jpg 300w, https:\/\/fwq.ai\/blog\/wp-content\/uploads\/2024\/11\/173072934387898-768x307.jpg 768w, https:\/\/fwq.ai\/blog\/wp-content\/uploads\/2024\/11\/173072934387898-670x268.jpg 670w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" title=\"\u5982\u4f55\u5728 Go \u4e2d\u5b9e\u73b0\u6570\u636e\u5e93\u53d8\u66f4\u8ddf\u8e2a\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5728 Go \u4e2d\u5b9e\u73b0\u6570\u636e\u5e93\u53d8\u66f4\u8ddf\u8e2a\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u7834\u8bd1 Go \u4e2d\u7684\u6570\u636e\u5e93\u53d8\u66f4\u8ddf\u8e2a<\/strong><\/p>\n<p>\u60a8\u662f\u5426\u5728\u5bfb\u627e\u4e00\u4e2a\u7c7b\u4f3c\u4e8e PHP \u4e2d Laravel Activitylog \u7684\u5de5\u5177\u5305\uff0c\u7528\u4e8e\u8ddf\u8e2a Go \u4e2d\u7684\u6570\u636e\u5e93\u53d8\u66f4\uff1f<\/p>\n<p><strong>\u73b0\u72b6\uff1aGo \u4e2d\u7684\u5de5\u5177\u532e\u4e4f<\/strong><\/p>\n<p>\u4e0d\u5e78\u7684\u662f\uff0c\u622a\u81f3\u76ee\u524d\uff0cGo \u4e2d\u8fd8\u6ca1\u6709\u8fd9\u6837\u7684\u5de5\u5177\u5305\u3002\u751f\u6001\u7cfb\u7edf\u4e2d\u73b0\u6709\u7684\u5e93\uff0c\u5982 ORM xorm \u548c gorm\uff0c\u53ea\u63d0\u4f9b\u4e86\u53ef\u63d2\u5165\u7684\u8bb0\u5f55\u5668\u3002\u4f7f\u7528 SQL \u5305\u548c\u5176\u4ed6\u7b2c\u4e09\u65b9\u5305\uff0c\u5982 sqlmw\uff0c\u53ef\u4ee5\u589e\u5f3a\u65e5\u5fd7\u529f\u80fd\uff0c\u4f46\u5b83\u4eec\u65e0\u6cd5\u5b8c\u5168\u66ff\u4ee3 Laravel Activitylog \u7684\u529f\u80fd\u3002<\/p>\n<p><strong>DIY \u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u5c3d\u7ba1\u6ca1\u6709\u73b0\u6210\u7684\u5de5\u5177\u5305\uff0c\u60a8\u4ecd\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u6280\u672f\u81ea\u5df1\u6784\u5efa\u7c7b\u4f3c\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u601d\u8def\uff1a<\/p>\n<ul>\n<li> <strong>\u81ea\u5b9a\u4e49\u8bb0\u5f55\u5668\uff1a<\/strong>\u5728 ORM \u6216 SQL \u5305\u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u8bb0\u5f55\u5668\uff0c\u6355\u83b7\u6570\u636e\u5e93\u5199\u5165\u67e5\u8be2\u5e76\u8bb0\u5f55\u76f8\u5173\u4fe1\u606f\u3002<\/li>\n<li> <strong>SQLMW \u5305\u88c5\uff1a<\/strong>\u4f7f\u7528 sqlmw \u5305\u5305\u88c5\u6570\u636e\u5e93\u9a71\u52a8\uff0c\u5728\u67e5\u8be2\u6267\u884c\u524d\u540e\u63d2\u5165\u94a9\u5b50\uff0c\u4ee5\u8bb0\u5f55\u53d8\u66f4\u3002<\/li>\n<li> <strong>\u7b2c\u4e09\u65b9\u65e5\u5fd7\u5de5\u5177\uff1a<\/strong>\u4e0e zap \u7b49\u7ed3\u6784\u5316\u65e5\u5fd7\u5de5\u5177\u96c6\u6210\uff0c\u8bb0\u5f55\u6709\u5173\u53d8\u66f4\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u5c06\u8fd9\u4e9b\u6784\u5efa\u5757\u7ec4\u5408\u8d77\u6765\uff0c\u60a8\u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3c Laravel Activitylog \u7684\u529f\u80fd\uff0c\u8ddf\u8e2a Go \u4e2d\u7684\u6570\u636e\u5e93\u53d8\u66f4\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728 Go \u4e2d\u5b9e\u73b0\u6570\u636e\u5e93\u53d8\u66f4\u8ddf\u8e2a\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7834\u8bd1 Go \u4e2d\u7684\u6570\u636e\u5e93\u53d8\u66f4\u8ddf\u8e2a \u60a8\u662f\u5426\u5728\u5bfb\u627e\u4e00\u4e2a\u7c7b\u4f3c\u4e8e PHP \u4e2d Laravel Activitylog \u7684\u5de5\u5177\u5305\uff0c\u7528\u4e8e\u8ddf\u8e2a Go \u4e2d\u7684\u6570\u636e\u5e93\u53d8\u66f4\uff1f \u73b0\u72b6\uff1aGo \u4e2d\u7684\u5de5\u5177\u532e\u4e4f \u4e0d\u5e78\u7684\u662f\uff0c\u622a\u81f3\u76ee\u524d\uff0cGo \u4e2d\u8fd8\u6ca1\u6709\u8fd9\u6837\u7684\u5de5\u5177\u5305\u3002\u751f\u6001\u7cfb\u7edf\u4e2d\u73b0\u6709\u7684\u5e93\uff0c\u5982 ORM xorm \u548c gorm\uff0c\u53ea\u63d0\u4f9b\u4e86\u53ef\u63d2\u5165\u7684\u8bb0\u5f55\u5668\u3002\u4f7f\u7528 SQL \u5305\u548c\u5176\u4ed6\u7b2c\u4e09\u65b9\u5305\uff0c\u5982 sqlmw\uff0c\u53ef\u4ee5\u589e\u5f3a\u65e5\u5fd7\u529f\u80fd\uff0c\u4f46\u5b83\u4eec\u65e0\u6cd5\u5b8c\u5168\u66ff\u4ee3 Laravel Activitylog \u7684\u529f\u80fd\u3002 DIY \u89e3\u51b3\u65b9\u6848 \u5c3d\u7ba1\u6ca1\u6709\u73b0\u6210\u7684\u5de5\u5177\u5305\uff0c\u60a8\u4ecd\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u6280\u672f\u81ea\u5df1\u6784\u5efa\u7c7b\u4f3c\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u601d\u8def\uff1a \u81ea\u5b9a\u4e49\u8bb0\u5f55\u5668\uff1a\u5728 ORM \u6216 SQL \u5305\u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u8bb0\u5f55\u5668\uff0c\u6355\u83b7\u6570\u636e\u5e93\u5199\u5165\u67e5\u8be2\u5e76\u8bb0\u5f55\u76f8\u5173\u4fe1\u606f\u3002 SQLMW \u5305\u88c5\uff1a\u4f7f\u7528 sqlmw \u5305\u5305\u88c5\u6570\u636e\u5e93\u9a71\u52a8\uff0c\u5728\u67e5\u8be2\u6267\u884c\u524d\u540e\u63d2\u5165\u94a9\u5b50\uff0c\u4ee5\u8bb0\u5f55\u53d8\u66f4\u3002 \u7b2c\u4e09\u65b9\u65e5\u5fd7\u5de5\u5177\uff1a\u4e0e zap \u7b49\u7ed3\u6784\u5316\u65e5\u5fd7\u5de5\u5177\u96c6\u6210\uff0c\u8bb0\u5f55\u6709\u5173\u53d8\u66f4\u7684\u8be6\u7ec6\u4fe1\u606f\u3002 \u901a\u8fc7\u5c06\u8fd9\u4e9b\u6784\u5efa\u5757\u7ec4\u5408\u8d77\u6765\uff0c\u60a8\u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3c Laravel Activitylog \u7684\u529f\u80fd\uff0c\u8ddf\u8e2a Go \u4e2d\u7684\u6570\u636e\u5e93\u53d8\u66f4\u3002 \u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728 Go \u4e2d\u5b9e\u73b0\u6570\u636e\u5e93\u53d8\u66f4\u8ddf\u8e2a\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-926","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=926"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}