{"id":146,"date":"2024-01-02T16:29:08","date_gmt":"2024-01-02T08:29:08","guid":{"rendered":"https:\/\/hjwzs.xyz\/?p=146"},"modified":"2024-01-02T16:29:08","modified_gmt":"2024-01-02T08:29:08","slug":"%e9%87%8d%e6%9e%84-02%ef%bc%9a%e5%bc%80%e5%a7%8b%e8%af%8a%e7%96%97","status":"publish","type":"post","link":"https:\/\/hjwzs.xyz\/?p=146","title":{"rendered":"\u91cd\u6784 02\uff1a\u5f00\u59cb\u8bca\u7597"},"content":{"rendered":"\n<div class=\"wp-block-jetpack-markdown\"><blockquote>\n<p>Translated from\uff1a<a href=\"https:\/\/refactoringguru.cn\/refactoring\">Refactoring<\/a><\/p>\n<\/blockquote>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5927\u591a\u6570\u4ee3\u7801\uff0c\u90fd\u5177\u5907\u201c\u5c4e\u5c71\u201d\u7684\u7279\u5f81\u3002<\/p>\n\n\n\n<div class=\"wp-block-jetpack-markdown\"><blockquote>\n<p>\u4ee3\u7801\u7684\u5473\u9053<\/p>\n<ul>\n<li>\u7eb3\u5c3c\uff1f\u4ee3\u7801\u600e\u4e48\u4f1a\u6709\u5473\u9053\uff1f<\/li>\n<li>\u867d\u7136\u95fb\u4e0d\u51fa\u6765\u2026\u4f46\u662f\u6211\u6562\u6253\u8d4c\u5b83\u80af\u5b9a\u4f1a\u53d1\u81ed\uff01<\/li>\n<\/ul>\n<\/blockquote>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u8bca\u65ad\uff1a\u81c3\u80bf<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u81c3\u80bf\u7684\u4ee3\u7801\uff0c\u5305\u62ec\u81c3\u80bf\u7684\u51fd\u6570\u548c\u7c7b\u7b49\u7b49\uff0c\u592a\u8fc7\u81c3\u80bf\u7684\u4ee3\u7801\u5bfc\u81f4\u7a0b\u5e8f\u51e0\u4e4e\u65e0\u6cd5\u8fd0\u884c\u3002\u901a\u5e38\u81c3\u80bf\u7684\u95ee\u9898\u4e0d\u4f1a\u9a6c\u4e0a\u5c31\u51fa\u884c\uff0c\u800c\u662f\u968f\u7740\u65f6\u95f4\u63a8\u79fb\uff0c\u968f\u7740\u7a0b\u5e8f\u7684\u53d1\u5c55\uff0c\u800c\u9010\u6e10\u79ef\u7d2f\uff08\u7279\u522b\u662f\u6ca1\u6709\u4eba\u53bb\u5173\u5fc3\u8fd9\u4e2a\u95ee\u9898\u65f6\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u75c5\u75c7\uff1a\u8fc7\u957f\u7684\u51fd\u6570<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u75c7\u72b6<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u51fd\u6570\u5305\u542b\u592a\u591a\u7684\u4ee3\u7801\u884c\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4efb\u4f55\u8d85\u8fc7\u5341\u884c\u7684\u51fd\u6570\u90fd\u5e94\u8be5\u8ba9\u4f60\u4ea7\u751f\u4e0d\u5b89\u7684\u611f\u89c9\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/IqVZ.png\" alt=\"long-method-01\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ea7\u751f\u539f\u56e0<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c31\u50cf Hotel California \uff08\u8bd1\u8005\u6ce8\uff1a\u4e0d\u662f\u5f88\u6e05\u695a\u8fd9\u4e2a\u6897\uff0c\u5e94\u8be5\u662f<a href=\"https:\/\/zh.wikipedia.org\/wiki\/%E5%8A%A0%E5%B7%9E%E6%97%85%E9%A4%A8\" data-type=\"link\" data-id=\"https:\/\/zh.wikipedia.org\/wiki\/%E5%8A%A0%E5%B7%9E%E6%97%85%E9%A4%A8\">\u8fd9\u4e2a<\/a>\uff09\uff0c\u67d0\u4e9b\u51fd\u6570\u603b\u662f\u5728\u4e00\u76f4\u6dfb\u52a0\u4e1c\u897f\uff0c\u4f46\u6ca1\u6709\u4efb\u4f55\u903b\u8f91\u88ab\u62c6\u5206\u6216\u5220\u9664\u3002\u7531\u4e8e\u5199\u4ee3\u7801\u6bd4\u8bfb\u4ee3\u7801\u5bb9\u6613\uff0c\u8fd9\u79cd\u201c\u81ed\u5473\u201d\u4e00\u76f4\u6ca1\u6709\u88ab\u6ce8\u610f\u5230\uff0c\u76f4\u5230\u51fd\u6570\u53d8\u6210\u4e00\u4e2a\u4e11\u964b\u3001\u5de8\u5927\u7684\u602a\u517d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ece\u5f00\u53d1\u4eba\u5458\u7684\u5fc3\u6001\u6765\u8bf4\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u51fd\u6570\u5f80\u5f80\u6bd4\u5728\u539f\u6709\u51fd\u6570\u4e2d\u6dfb\u52a0\u903b\u8f91\u66f4\u96be\u3002\u201c\u53ea\u662f\u518d\u52a0\u4e24\u884c\u4ee3\u7801\u800c\u5df2\uff0c\u6ca1\u6709\u5fc5\u8981\u7ed9\u8fd9\u6bb5\u903b\u8f91\u5355\u72ec\u653e\u4e00\u4e2a\u51fd\u6570\u91cc&#8230;\u201d\u3002\u5e26\u7740\u8fd9\u79cd\u60f3\u6cd5\uff0c\u6211\u4eec\u7ecf\u5e38\u5728\u51fd\u6570\u4e2d\u585e\u5165\u4e00\u884c\u53c8\u4e00\u884c\u7684\u4ee3\u7801\uff0c\u6700\u7ec8\u4ea7\u751f\u4e86\u4e00\u56e2\u4e71\u4e03\u516b\u7cdf\uff0c\u50cf\u610f\u5927\u5229\u9762\u6761\u4e00\u6837\u7684\u4e1c\u897f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u7ecf\u9a8c\u6cd5\u5219\u662f\uff0c\u5982\u679c\u4f60\u89c9\u5f97\u9700\u8981\u5728\u4e00\u4e2a\u51fd\u6570\u91cc\uff0c\u9488\u5bf9\u4e00\u6bb5\u4ee3\u7801\u9700\u8981<strong>\u5199\u6ce8\u91ca<\/strong>\uff0c\u90a3\u4f60\u5e94\u8be5\u628a\u8fd9\u6bb5\u4ee3\u7801\u653e\u5230\u4e00\u4e2a\u65b0\u7684\u51fd\u6570\u4e2d\u3002\u5982\u679c\u662f\u4e00\u5b9a\u9700\u8981\u5199\u6ce8\u91ca\u7684\u4ee3\u7801\uff0c\u54ea\u6015\u662f\u4e00\u884c\uff0c\u4e5f\u5e94\u8be5\u62c6\u5206\u51fa\u4e00\u4e2a\u5355\u72ec\u7684\u51fd\u6570\u3002\u5982\u679c\u51fd\u6570\u6709\u4e00\u4e2a\u63cf\u8ff0\u6027\u7684\u540d\u5b57\uff0c\u90a3\u540e\u9762\u7684\u5f00\u53d1\u4eba\u5458\u5c31\u4e0d\u9700\u8981\u770b\u4ee3\u7801\u6765\u4e86\u89e3\u5185\u90e8\u7684\u8fd0\u4f5c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/IyP0.png\" alt=\"long-method-02\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8981\u51cf\u5c11\u51fd\u6570\u4f53\u7684\u957f\u5ea6\uff0c\u53ef\u4ee5\u53c2\u89c1<a href=\"https:\/\/refactoringguru.cn\/extract-method\">\u62c6\u5206\u51fd\u6570<\/a><\/li>\n\n\n\n<li>\u5982\u679c\u5c40\u90e8\u53d8\u91cf\u548c\u53c2\u6570\u5e72\u6270\u4e86\u51fd\u6570\u62c6\u5206\uff0c\u90a3\u8bd5\u8bd5<a href=\"https:\/\/refactoringguru.cn\/replace-temp-with-query\">\u4f7f\u7528\u67e5\u8be2\u66ff\u4ee3\u4e34\u65f6\u8ba1\u7b97<\/a>\u3001<a href=\"https:\/\/refactoringguru.cn\/introduce-parameter-object\">\u5f15\u5165\u5bf9\u8c61\u5f62\u53c2<\/a>\u548c<a href=\"https:\/\/refactoringguru.cn\/preserve-whole-object\">\u5bf9\u8c61\u6574\u5b58\u6574\u53d6<\/a><\/li>\n\n\n\n<li>\u5982\u679c\u524d\u9762\u7684\u51fd\u6570\u90fd\u6ca1\u6709\u7528\uff0c\u8bf7\u5c1d\u8bd5\u901a\u8fc7<a href=\"https:\/\/refactoringguru.cn\/replace-method-with-method-object\">\u66ff\u6362\u51fd\u6570\u4e3a\u51fd\u6570\u5bf9\u8c61<\/a>\u5c06\u6574\u4e2a\u51fd\u6570\u79fb\u5230\u4e00\u4e2a\u5355\u72ec\u7684\u5bf9\u8c61\u4e2d\u3002<\/li>\n\n\n\n<li>\u6761\u4ef6\u8fd0\u7b97\u7b26\u548c\u5faa\u73af\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u6807\u8bc6\uff0c\u901a\u8fc7\u8fd9\u4e9b\u53ef\u4ee5\u5c06\u4e0d\u540c\u90e8\u5206\u7684\u4ee3\u7801\u8fc1\u79fb\u5230\u5355\u72ec\u7684\u51fd\u6570\u4e2d\u3002\u5bf9\u4e8e\u6761\u4ef6\u8fd0\u7b97\uff0c\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/refactoringguru.cn\/decompose-conditional\">\u6761\u4ef6\u5206\u89e3\u6cd5<\/a>\uff1b\u5bf9\u4e8e\u5faa\u73af\uff0c\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/refactoringguru.cn\/extract-method\">\u62c6\u5206\u51fd\u6570<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5c0f\u7ed3<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u6240\u6709\u9762\u5411\u5bf9\u8c61\u7684\u9879\u76ee\u4e2d\uff0c\u51fd\u6570\u8d8a\u77ed\u7684\u7c7b\u5bff\u547d\u6700\u957f\u3002\u4e00\u4e2a\u51fd\u6570\u6216\u8005\u51fd\u6570\u8d8a\u957f\u5c31\u8d8a\u96be\u7406\u89e3\u548c\u7ef4\u62a4\u3002<\/li>\n\n\n\n<li>\u6b64\u5916\uff0c\u957f\u51fd\u6570\u4e3a\u4e0d\u5fc5\u8981\u7684\u91cd\u590d\u4ee3\u7801\u63d0\u4f9b\u7684\u5b8c\u7f8e\u7684\u85cf\u8eab\u4e4b\u5904\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/IUaK.png\" alt=\"long-method-03\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f18\u5316\u540e\u4f1a\u5f71\u54cd\u6027\u80fd\u5417\uff1f<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f88\u591a\u4eba\u8bf4\uff0c\u589e\u52a0\u592a\u591a\u51fd\u6570\u4f1a\u5f71\u54cd\u6027\u80fd\uff1f\u4f46\u662f\u5728\u51e0\u4e4e\u6240\u6709\u8bd5\u9a8c\u4e2d\uff0c\u5176\u5e26\u6765\u7684\u6027\u80fd\u635f\u8017\u5fae\u4e4e\u5176\u5fae\uff0c\u4e0d\u503c\u5f97\u62c5\u5fc3\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u800c\u4e14\u901a\u8fc7\u4ee5\u4e0a\u63aa\u65bd\uff0c\u6211\u4eec\u83b7\u5f97\u4e86\u6e05\u6670\u6613\u61c2\u7684\u4ee3\u7801\uff0c\u5728\u4f18\u5316\u8fc7\u7a0b\u4e2d\uff0c\u66f4\u6709\u53ef\u80fd\u627e\u5230\u771f\u6b63\u6709\u6548\u7684\u51fd\u6570\u6765\u91cd\u7ec4\u4ee3\u7801\uff0c\u83b7\u5f97\u771f\u6b63\u7684\u6027\u80fd\u63d0\u5347\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u75c5\u75c7\uff1a\u8fc7\u957f\u7684\u7c7b<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u75c7\u72b6<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u7c7b\u5305\u542b\u592a\u591a\u5b57\u6bb5\/\u51fd\u6570\/\u4ee3\u7801\u884c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/IYQJ.png\" alt=\"large-class-01\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ea7\u751f\u539f\u56e0<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u822c\u6765\u8bf4\uff0c\u7c7b\u4e00\u5f00\u59cb\u88ab\u521b\u5efa\u7684\u65f6\u5019\u90fd\u4f1a\u6bd4\u8f83\u5c0f\uff0c\u4f46\u662f\u4e00\u65e6\u968f\u7740\u5c81\u6708\u6d41\u901d\uff0c\u8fd9\u4e2a\u7c7b\u5c31\u4f1a\u53d8\u5f97\u8d8a\u6765\u8d8a\u5927\uff0c\u529f\u80fd\u4e5f\u4f1a\u8d8a\u6765\u8d8a\u590d\u6742\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u548c\u8fc7\u957f\u7684\u51fd\u6570\u4e00\u6837\uff0c\u6bd4\u8d77\u65b0\u521b\u5efa\u4e00\u4e2a\u7c7b\uff0c\u7a0b\u5e8f\u5458\u4eec\u66f4\u559c\u6b22\u5c06\u65b0\u529f\u80fd\u653e\u5728\u73b0\u6709\u7684\u7c7b\u4e2d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/I0iy.png\" alt=\"large-class-02\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4e00\u4e2a\u7c7b\u5305\u542b\u4e86\u5927\u91cf\u7684\u51fd\u6570\u65f6\uff0c\u9700\u8981\u8fdb\u884c\u5206\u6790\u5e76\u4e14\u901a\u8fc7\u4ee5\u4e0b\u624b\u6bb5\u5c1d\u8bd5\u5c06\u5b83\u4eec\u62c6\u5206\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u7c7b\u4e2d\u5305\u542b\u4e86\u53ef\u4ee5\u72ec\u7acb\u7684\u903b\u8f91\u6216\u8005\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u76f4\u63a5 <a href=\"https:\/\/refactoringguru.cn\/extract-class\">\u62c6\u5206\u7c7b<\/a><\/li>\n\n\n\n<li>\u5982\u679c\u7c7b\u4e2d\u5305\u542b\u7684\u903b\u8f91\u53ef\u4ee5\u5dee\u5f02\u5316\u5b9e\u73b0\uff0c\u6216\u8005\u5f88\u5c11\u8fd0\u884c\u5230\u7684\u903b\u8f91\uff0c\u53ef\u4ee5\u5c1d\u8bd5 <a href=\"https:\/\/refactoringguru.cn\/extract-subclass\">\u62c6\u5206\u5b50\u7c7b<\/a><\/li>\n\n\n\n<li>\u5982\u679c\u7c7b\u4e2d\u7684\u51fd\u6570\u548c\u903b\u8f91\u53ef\u4ee5\u5b8c\u5168\u62bd\u8c61\uff0c\u8c03\u7528\u65f6\u518d\u8fdb\u884c\u5b9e\u73b0\uff0c\u53ef\u4ee5\u5c1d\u8bd5 <a href=\"https:\/\/refactoringguru.cn\/extract-interface\">\u62c6\u5206\u63a5\u53e3<\/a><\/li>\n\n\n\n<li>\u5bf9\u4e8e\u590d\u6742\u7684UI\u754c\u9762\uff0c\u6bd4\u8f83\u597d\u7684\u51fd\u6570\u662f\u5c06\u6a21\u578b\u6570\u636e\u548c\u903b\u8f91\u62c6\u5206\u5230\u5355\u72ec\u7684\u5bf9\u8c61\u4e2d\u3002\u8fd9\u662f\u53ef\u80fd\u4f1a\u57282\u4e2a\u5730\u65b9\u5b58\u50a8\u4e00\u4e9b\u6570\u636e\u7684\u526f\u672c\uff0c\u5e76\u4e14\u4fdd\u6301\u6570\u636e\u7684\u4e00\u81f4\u6027\u3002<a href=\"https:\/\/refactoringguru.cn\/duplicate-observed-data\">\u91cd\u590d\u6570\u636e\u89c2\u5bdf\u6a21\u5f0f<\/a> \u63d0\u4f9b\u4e86\u4e00\u79cd\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\u7684\u65b9\u6848\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/Iaq3.png\" alt=\"large-class-03\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u91cd\u6784\u4e86\u4e4b\u540e&#8230;<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u91cd\u6784\u8fd9\u4e9b\u5927\u578b\u7c7b\u540e\uff0c\u53ef\u4ee5\u663e\u8457\u964d\u4f4e\u5f00\u53d1\u4eba\u5458\u7684\u5fc3\u667a\u8d1f\u62c5\u3002<\/li>\n\n\n\n<li>\u901a\u5e38\u62c6\u5206\u5927\u7c7b\u540e\uff0c\u53ef\u4ee5\u907f\u514d\u5f88\u591a\u91cd\u590d\u7684\u4ee3\u7801\u548c\u529f\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u75c5\u75c7\uff1a<a href=\"https:\/\/baike.baidu.com\/item\/%E5%8E%9F%E5%A7%8B%E7%B1%BB%E5%9E%8B\">\u57fa\u7840\u7c7b\u578b<\/a>\u7684\u6ee5\u7528<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u75c7\u72b6<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e00\u4e9b\u7b80\u5355\u7684\u4e8b\u7269\uff08\u5982\u8d27\u5e01\u3001\u8303\u56f4\u3001\u7535\u8bdd\u53f7\u7801\u7279\u6b8a\u5b57\u7b26\u7b49\uff09\u4f7f\u7528\u57fa\u7840\u7c7b\u578b\u800c\u4e0d\u662f\u4f7f\u7528\u5bf9\u8c61<\/li>\n\n\n\n<li>\u4f7f\u7528\u5e38\u91cf\u6765\u7f16\u7801\u4fe1\u606f\uff0c\u6bd4\u5982\u5b9a\u4e49\u5e38\u91cf <strong>USER_ADMIN_ROLE = 1<\/strong>\u6765\u63cf\u8ff0\u5177\u5907\u7ba1\u7406\u5458\u6743\u9650\u7684\u7528\u6237<\/li>\n\n\n\n<li>\u4f7f\u7528\u5b57\u7b26\u4e32\u5e38\u91cf\u4f5c\u4e3a\u6570\u636e\u7c7b\u6570\u7ec4\u7684\u5b57\u6bb5\u540d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/Iwee.png\" alt=\"primitive-obsession-01\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ea7\u751f\u539f\u56e0<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u548c\u5176\u4ed6\u95ee\u9898\u4e00\u6837\uff0c\u57fa\u7840\u6570\u636e\u7684\u6ee5\u7528\u4e5f\u662f\u4e00\u65f6\u7684\u61c8\u6020\u3002\u201c\u53ea\u662f\u60f3\u8981\u4e00\u4e2a\u4e1c\u897f\u653e\u4e34\u65f6\u7684\u6570\u636e\uff01\u201d\u7a0b\u5e8f\u5458\u4ea7\u751f\u8fd9\u79cd\u60f3\u6cd5\u7684\u65f6\u5019\uff0c\u90fd\u662f\u89c9\u5f97\u6bd4\u8d77\u521b\u5efa\u4e00\u4e2a\u5168\u65b0\u7684\u7c7b\uff0c\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u57fa\u7840\u7c7b\u578b\u66f4\u65b9\u4fbf\u3002\u5f53\u6bcf\u4e00\u6b21\u9047\u5230\u76f8\u540c\u7684\u60c5\u51b5\u65f6\uff0c\u90fd\u4f1a\u6709\u8fd9\u6837\u5077\u61d2\u7684\u60f3\u6cd5\uff0c\u5bfc\u81f4\u6211\u4eec\u6700\u540e\u521b\u5efa\u4e86\u4e00\u4e2a\u53c8\u4e00\u4e2a\u7684\u57fa\u7840\u7c7b\u578b\u5b58\u653e\u6570\u636e\uff0c\u800c\u5bb9\u7eb3\u8fd9\u4e9b\u57fa\u7840\u7c7b\u578b\u5c5e\u6027\u7684\u7c7b\u4e5f\u9010\u6e10\u53d8\u5f97\u8d8a\u6765\u8d8a\u5927\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u7840\u7c7b\u578b\u901a\u5e38\u7528\u4e8e\u201c\u4eff\u5192\u201d\u7c7b\u578b\u3002\u6bd4\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4\u6570\u5b57\u6216\u5b57\u7b26\u4e32\uff08\u800c\u4e0d\u662f\u5355\u72ec\u7684\u6570\u636e\u7c7b\u578b\uff09\u6765\u6784\u6210\u67d0\u4e9b\u5b9e\u4f53\u7684\u5141\u8bb8\u503c\u5217\u8868\u3002\u7136\u540e\uff0c\u901a\u8fc7\u5e38\u91cf\u4e3a\u8fd9\u4e9b\u7279\u5b9a\u7684\u6570\u5b57\u548c\u5b57\u7b26\u4e32\u63d0\u4f9b\u6613\u4e8e\u7406\u89e3\u7684\u540d\u79f0\uff0c\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u5b83\u4eec\u88ab\u6ee5\u7528\u7684\u539f\u56e0\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53e6\u5916\u4e00\u4e2a\u4e0d\u6b63\u786e\u4f7f\u7528\u57fa\u7840\u7c7b\u578b\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u57fa\u7840\u7c7b\u578b\u201c\u4eff\u5192\u201d\u7c7b\u7684\u5b57\u6bb5\u3002\u6bd4\u5982\u7c7b\u4e2d\u5305\u542b\u4e86\u5927\u91cf\u4e0d\u540c\u7684\u6570\u636e\u6570\u7ec4\uff0c\u5728\u7c7b\u4e2d\u6307\u5b9a\u7684\u5b57\u7b26\u4e32\u5e38\u91cf\u7528\u4e8e\u83b7\u53d6\u8fd9\u4e9b\u6570\u636e\u6570\u7ec4\u7684\u7d22\u5f15\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u4ee3\u7801\u4e2d\u5b58\u5728\u5927\u91cf\u7684\u57fa\u7840\u7c7b\u578b\uff0c\u4e00\u822c\u53ef\u4ee5\u628a\u8fd9\u4e9b\u4ee3\u7801\u5199\u5728\u4e13\u95e8\u7684\u7c7b\u91cc\uff0c\u751a\u81f3\u4e0e\u8fd9\u4e9b\u4ee3\u7801\u76f8\u5173\u7684\u884c\u4e3a\u4e5f\u53ef\u4ee5\u8f6c\u79fb\u5230\u8fd9\u4e2a\u7c7b\u4e2d\u3002\u5173\u4e8e\u8fd9\u4e2a\u89e3\u51b3\u65b9\u6848\u53ef\u4ee5\u53c2\u89c1 <a href=\"https:\/\/refactoringguru.cn\/replace-data-value-with-object\">\u4f7f\u7528\u5bf9\u8c61\u66ff\u6362\u96f6\u6563\u6570\u636e<\/a>\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u51fd\u6570\u53c2\u6570\u4e2d\u4f7f\u7528\u4e86\u57fa\u7840\u7c7b\u578b\uff0c\u53ef\u4ee5\u8003\u8651 <a href=\"https:\/\/refactoringguru.cn\/introduce-parameter-object\">\u5f15\u5165\u5bf9\u8c61\u53c2\u6570<\/a> \u6216\u8005 <a href=\"https:\/\/refactoringguru.cn\/preserve-whole-object\">\u4fdd\u7559\u6574\u4e2a\u5bf9\u8c61<\/a>\u3002<\/li>\n\n\n\n<li>\u5f53\u53d1\u73b0\u53d8\u91cf\u4e2d\u5b58\u5728\u5f88\u590d\u6742\u7684\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u8003\u8651 <a href=\"https:\/\/refactoringguru.cn\/replace-type-code-with-class\">\u4f7f\u7528\u7c7b\u66ff\u6362\u7c7b\u578b\u7f16\u7801<\/a>\uff0c<a href=\"https:\/\/refactoringguru.cn\/replace-type-code-with-subclasses\">\u4f7f\u7528\u5b50\u7c7b\u66ff\u6362\u7c7b\u578b\u7f16\u7801<\/a>\uff0c<a href=\"https:\/\/refactoringguru.cn\/replace-type-code-with-state-strategy\">\u4f7f\u7528\u72b6\u6001\/\u7b56\u7565\u66ff\u6362\u7c7b\u578b\u7f16\u7801<\/a>\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u53d8\u91cf\u4e2d\u5b58\u5728\u6570\u7ec4\uff0c\u53ef\u4ee5\u8003\u8651 <a href=\"https:\/\/refactoringguru.cn\/replace-array-with-object\">\u4f7f\u7528\u5bf9\u8c61\u66ff\u6362\u6570\u7ec4<\/a>\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/IB5u.png\" alt=\"primitive-obsession-02\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u91cd\u6784\u4e86\u4e4b\u540e&#8230;<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528\u5bf9\u8c61\u66ff\u6362\u57fa\u7840\u7c7b\u578b\uff0c\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\u3002<\/li>\n\n\n\n<li>\u91cd\u6784\u4ee5\u540e\u4ee3\u7801\u66f4\u5bb9\u6613\u7406\u89e3\uff0c\u66f4\u52a0\u5177\u5907\u7ec4\u7ec7\u6027\u3002\u5bf9\u7279\u5b9a\u6570\u636e\u7684\u64cd\u4f5c\u90fd\u5728\u540c\u4e00\u4e2a\u5730\u65b9\u800c\u4e0d\u662f\u5206\u6563\u5728\u5404\u5904\u3002\u5728\u9605\u8bfb\u4ee3\u7801\u65f6\u4e0d\u4f1a\u51fa\u73b0\u96be\u4ee5\u731c\u6d4b\u7684\u5947\u602a\u5e38\u91cf\uff0c\u6216\u8005\u4e3a\u4ec0\u4e48\u6709\u5947\u602a\u7684\u5e38\u91cf\u51fa\u73b0\u5728\u6570\u7ec4\u4e2d\u3002<\/li>\n\n\n\n<li>\u66f4\u5bb9\u6613\u627e\u5230\u91cd\u590d\u7684\u4ee3\u7801\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u75c5\u75c7\uff1a\u5927\u4e32\u7684\u51fd\u6570\u5f62\u53c2<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">\u75c7\u72b6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u51fd\u6570\u7684\u53c2\u6570\u8d85\u8fc7\u4e09\u4e2a\u6216\u56db\u4e2a\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ea7\u751f\u539f\u56e0<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a\u51e0\u79cd\u7c7b\u578b\u7b97\u6cd5\u5408\u5e76\u5230\u4e00\u4e2a\u51fd\u6570\u4e2d\u540e\uff0c\u53ef\u80fd\u4f1a\u7ed9\u8fd9\u4e2a\u51fd\u6570\u5e26\u6765\u4e00\u957f\u4e32\u7684\u5f62\u53c2\u3002\u5927\u4e32\u7684\u5f62\u53c2\u53ef\u80fd\u662f\u4e3a\u4e86\u63a7\u5236\u51fd\u6570\u4e2d\u54ea\u4e9b\u903b\u8f91\u88ab\u6267\u884c\u3001\u88ab\u5982\u4f55\u6267\u884c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5927\u4e32\u7684\u5f62\u53c2\u4e5f\u53ef\u80fd\u662f\u62c6\u5206\u7c7b\u7684\u526f\u4ea7\u54c1\u3002\u4f8b\u5982\u539f\u59cb\u51fd\u6570\u4e2d\u521b\u5efa\u7279\u5b9a\u5bf9\u8c61\u7684\u4ee3\u7801\u8f6c\u79fb\u7ed9\u4e86\u8c03\u7528\u65b9\uff08\u8bd1\u8005\u6ce8\uff1a\u8fd9\u6837\u539f\u59cb\u51fd\u6570\u5c31\u4f1a\u66f4\u52a0\u7684\u7075\u6d3b\uff09\uff0c\u8c03\u7528\u65b9\u521b\u5efa\u5bf9\u8c61\u540e\u901a\u8fc7\u53c2\u6570\u4f20\u9012\uff0c\u8fd9\u6837\u8fd9\u4e2a\u7279\u5b9a\u5bf9\u8c61\u5c31\u548c\u539f\u59cb\u51fd\u6570\u89e3\u8026\u4e86\u3002\u4f46\u662f\u5982\u679c\u8c03\u7528\u65b9\u4f20\u9012\u4e86\u591a\u4e2a\u4e0d\u540c\u7c7b\u578b\u7684\u5bf9\u8c61\uff0c\u6bcf\u4e2a\u5bf9\u8c61\u90fd\u9700\u8981\u81ea\u5df1\u7279\u6709\u7684\u53c2\u6570\uff0c\u8fd9\u6837\u539f\u59cb\u51fd\u6570\u53ef\u80fd\u5c31\u9700\u8981\u5927\u4e32\u7684\u5f62\u53c2\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u51fd\u6570\u4e2d\u5927\u4e32\u7684\u5f62\u53c2\u4f1a\u5bfc\u81f4\u7406\u89e3\u56f0\u96be\uff0c\u5f53\u5f62\u53c2\u8d8a\u6765\u8d8a\u957f\uff0c\u51fd\u6570\u4e5f\u5c31\u8d8a\u6765\u8d8a\u96be\u4ee5\u4f7f\u7528\u3002\u901a\u5e38\u4e5f\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u5bf9\u8c61\u6765\u4ee3\u66ff\u5927\u4e32\u5f62\u53c2\uff0c\u5982\u679c\u8fd9\u4e2a\u5bf9\u8c61\u4e0d\u80fd\u5305\u542b\u6240\u6709\u9700\u8981\u7684\u4fe1\u606f\uff0c\u901a\u8fc7\u4f1a\u521b\u5efa\u989d\u5916\u7684\u5bf9\u8c61\u518d\u4f5c\u4e3a\u51fd\u6570\u53c2\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u68c0\u67e5\u4f20\u9012\u53c2\u6570\u7684\u503c\u3002\u5982\u679c\u6709\u4e9b\u53c2\u6570\u53ea\u662f\u53e6\u4e00\u4e2a\u5bf9\u8c61\u7684\u8c03\u7528\u7ed3\u679c\uff0c\u90a3\u4e48\u53ef\u4ee5 <a href=\"https:\/\/refactoringguru.cn\/replace-parameter-with-method-call\">\u4f7f\u7528\u51fd\u6570\u8c03\u7528\u66ff\u6362\u53c2\u6570<\/a>\u3002\u8fd9\u4e2a\u5bf9\u8c61\u53ef\u4ee5\u653e\u5728\u81ea\u5df1\u7684\u7c7b\u5b57\u6bb5\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u51fd\u6570\u53c2\u6570\u4f20\u9012\u3002<\/li>\n\n\n\n<li>\u4e0d\u8981\u5c06\u4ece\u53e6\u4e00\u4e2a\u5bf9\u8c61\u63a5\u53d7\u5230\u7684\u4e00\u7ec4\u6570\u636e\u76f4\u63a5\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\uff0c\u800c\u662f\u5c06\u5bf9\u8c61\u672c\u8eab\u4f20\u9012\u7ed9\u51fd\u6570\uff0c\u53c2\u89c1 <a href=\"https:\/\/refactoringguru.cn\/preserve-whole-object\">\u4fdd\u7559\u6574\u4e2a\u5bf9\u8c61<\/a>\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u6709\u51e0\u4e2a\u4e0d\u76f8\u5e72\u7684\u6570\u636e\u5143\u7d20\uff0c\u6709\u65f6\u53ef\u4ee5 <a href=\"https:\/\/refactoringguru.cn\/introduce-parameter-object\">\u5f15\u5165\u5bf9\u8c61\u53c2\u6570<\/a> \uff0c\u5c06\u4ed6\u4eec\u5408\u5e76\u4e3a\u4e00\u4e2a\u53c2\u6570\u5bf9\u8c61\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/IAs4.png\" alt=\"long-parameter-list-02\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u91cd\u6784\u4e86\u4e4b\u540e&#8230;<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7cbe\u7b80\u3001\u6613\u8bfb\u7684\u4ee3\u7801\u3002<\/li>\n\n\n\n<li>\u53ef\u80fd\u4f1a\u53d1\u73b0\u4ee5\u524d\u6ca1\u6ce8\u610f\u5230\u7684\u91cd\u590d\u4ee3\u7801\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u75c5\u75c7\uff1a\u91cd\u590d\u4ee3\u7801\u7c07<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u7279\u5f81<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u65f6\u76f8\u540c\u7684\u4ee3\u7801\u7c07\u51fa\u73b0\u5728\u7a0b\u5e8f\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u6bd4\u5982\u8fde\u63a5\u6570\u636e\u5e93\u7684\u53c2\u6570\u3002\u8fd9\u4e9b\u4ee3\u7801\u7c07\u5e94\u8be5\u88ab\u6574\u7406\u6210\u7c7b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/IsVT.png\" alt=\"data-clumps-01\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ea7\u751f\u539f\u56e0<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u8fd9\u4e9b\u91cd\u590d\u4ee3\u7801\u662f\u7531\u4e8e\u67b6\u6784\u4e0d\u5b8c\u5584\u6216\u8005\u201cCtrl-C + Ctrl-V\u7f16\u7a0b\u201d\u9020\u6210\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u8981\u786e\u8ba4\u4e00\u4e9b\u4ee3\u7801\u662f\u4e0d\u662f\u91cd\u590d\u4ee3\u7801\u7c07\uff0c\u53ea\u8981\u5220\u9664\u5176\u4e2d\u4e00\u4e2a\u6570\u636e\u503c\uff0c\u770b\u770b\u5176\u4ed6\u503c\u662f\u5426\u8fd8\u6709\u610f\u4e49\u3002\u5982\u679c\u4e0d\u662f\u8fd9\u79cd\u60c5\u51b5\uff0c\u5219\u8868\u660e\u8fd9\u7ec4\u53d8\u91cf\u5e94\u5408\u5e76\u5230\u4e00\u4e2a\u5bf9\u8c61\u4e2d\uff0c\u8fd9\u662f\u4e00\u4e2a\u597d\u5146\u5934\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u91cd\u590d\u7684\u6570\u636e\u7531\u4e00\u4e2a\u7c7b\u7684\u5b57\u6bb5\u7ec4\u6210\uff0c\u4f7f\u7528 <a href=\"https:\/\/refactoringguru.cn\/extract-class\">\u62c6\u5206\u7c7b<\/a> \u5c06\u5b57\u6bb5\u79fb\u5230\u5b83\u4eec\u81ea\u5df1\u7684\u7c7b\u4e2d\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u5728\u51fd\u6570\u7684\u53c2\u6570\u4e2d\u4f20\u9012\u4e86\u76f8\u540c\u7684\u6570\u636e\u5757\uff0c\u4f7f\u7528 <a href=\"https:\/\/refactoringguru.cn\/introduce-parameter-object\">\u5f15\u5165\u5bf9\u8c61\u53c2\u6570<\/a> \u5c06\u5b83\u4eec\u8bbe\u7f6e\u4e3a\u4e00\u4e2a\u7c7b\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u53ea\u662f\u90e8\u5206\u6570\u636e\u88ab\u4f20\u9012\u7ed9\u5176\u4ed6\u51fd\u6570\uff0c\u8bf7\u8003\u8651\u5c06\u6574\u4e2a\u6570\u636e\u5bf9\u8c61\u4f20\u9012\u7ed9\u51fd\u6570\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u5355\u4e2a\u5b57\u6bb5\u3002<a href=\"https:\/\/refactoringguru.cn\/preserve-whole-object\">\u4fdd\u7559\u6574\u4e2a\u5bf9\u8c61<\/a> \u5c06\u5e2e\u52a9\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/li>\n\n\n\n<li>\u68c0\u67e5\u4f7f\u7528\u8fd9\u4e9b\u4ee3\u7801\u7684\u5b57\u6bb5\uff0c\u6709\u65f6\u5c06\u8fd9\u4e9b\u4ee3\u7801\u8f6c\u79fb\u5230\u6570\u636e\u7c7b\u4e2d\u53ef\u80fd\u662f\u4e2a\u597d\u4e3b\u610f\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/Ixpj.png\" alt=\"data-clumps-02\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u91cd\u6784\u4e4b\u540e&#8230;<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4ee3\u7801\u66f4\u6709\u7ec4\u7ec7\u6027\u6613\u4e8e\u7406\u89e3\u3002\u5bf9\u7279\u5b9a\u6570\u636e\u7684\u64cd\u4f5c\u73b0\u5728\u88ab\u6536\u96c6\u5728\u4e00\u4e2a\u5730\u65b9\uff0c\u800c\u4e0d\u662f\u6742\u4e71\u65e0\u7ae0\u5730\u5206\u5e03\u5728\u6574\u4e2a\u9879\u76ee\u4e2d\u3002<\/li>\n\n\n\n<li>\u51cf\u5c11\u4ee3\u7801\u4f53\u79ef\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img.hjwzs.xyz\/images\/2024\/01\/02\/m4aA.png\" alt=\"data-clumps-03\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u7279\u4f8b\uff1a\u4ec0\u4e48\u65f6\u5019\u5ffd\u7565\u8fd9\u4e2a\u95ee\u9898\uff1f<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u51fd\u6570\u53c2\u6570\u4e2d\u4f20\u9012\u6574\u4e2a\u5bf9\u8c61\uff0c\u800c\u4e0d\u662f\u53ea\u4f20\u9012\u5b83\u7684\u503c\uff08\u57fa\u7840\u7c7b\u578b\uff09\uff0c\u53ef\u80fd\u4f1a\u5728\u4e24\u4e2a\u7c7b\u4e4b\u95f4\u4ea7\u751f\u610f\u6599\u4e4b\u5916\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u591a\u6570\u4ee3\u7801\uff0c\u90fd\u5177\u5907\u201c\u5c4e\u5c71\u201d\u7684\u7279\u5f81\u3002 \u8bca\u65ad\uff1a\u81c3\u80bf \u81c3\u80bf\u7684\u4ee3\u7801\uff0c\u5305\u62ec\u81c3\u80bf\u7684\u51fd\u6570\u548c\u7c7b\u7b49\u7b49\uff0c\u592a\u8fc7\u81c3\u80bf\u7684\u4ee3\u7801\u5bfc\u81f4\u7a0b\u5e8f\u51e0\u4e4e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[8],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-translated","tag-refactoring"],"_links":{"self":[{"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":17,"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hjwzs.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}