25

重构 - 设计API的扩展机制

 5 years ago
source link: https://juejin.im/post/5a9d0224f265da23766ac550
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.前言上篇文章,主要介绍了重构的一些概念和一些简单的实例。这一次,详细的说下项目中的一个重构场景--给API设计扩展机制。目的就是为了方便以后能灵活应对需求的改变。当然了,是否需要设计扩展性这个要看API的需求。如果大家有什么建议,欢迎评论留言。2.扩展性表

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK