<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>策略模式 on Tangc.pro&#39;s blog</title>
    <link>https://tangc.pro/blog/tags/%E7%AD%96%E7%95%A5%E6%A8%A1%E5%BC%8F/</link>
    <description>Recent content in 策略模式 on Tangc.pro&#39;s blog</description>
    <image>
      <title>Tangc.pro&#39;s blog</title>
      <url>https://tangc.pro/blog/cover.png</url>
      <link>https://tangc.pro/blog/cover.png</link>
    </image>
    <generator>Hugo -- 0.157.0</generator>
    <language>zh-cn</language>
    <managingEditor>onetick@live.cn (Hongyu)</managingEditor>
    <webMaster>onetick@live.cn (Hongyu)</webMaster>
    <lastBuildDate>Thu, 13 Nov 2025 15:30:00 +0800</lastBuildDate>
    <atom:link href="https://tangc.pro/blog/tags/%E7%AD%96%E7%95%A5%E6%A8%A1%E5%BC%8F/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>当 if-else 长成一棵树：用策略模式重构 OnlyOffice 回调处理</title>
      <link>https://tangc.pro/blog/posts/strategy-pattern-refactoring/</link>
      <pubDate>Thu, 13 Nov 2025 15:30:00 +0800</pubDate><author>onetick@live.cn (Hongyu)</author>
      <guid>https://tangc.pro/blog/posts/strategy-pattern-refactoring/</guid>
      <description>面对 OnlyOffice 多种回调类型的处理，从 Service 层堆积的 if-else 到策略模式的优雅重构，一次设计模式的实战应用。</description>
    </item>
  </channel>
</rss>
