Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor:依赖倒转优化——引入抽象接口 #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jerry765
Copy link

@jerry765 jerry765 commented Dec 7, 2023

内容

引入抽象 API 接口和路由权限接口,旨在提高代码可维护性和可拓展性,降低耦合度

影响范围

  • 组件不再依赖于具体的接口实现,而是依赖于抽象接口
  • 仅试运行检查正常,未经严谨测试。可能引入逻辑问题

附加信息

issue #141

定义抽象 API 接口和权限接口
@jerry765 jerry765 changed the title Refactor:依赖倒转优化 Refactor:依赖倒转优化——引入抽象接口 Dec 19, 2023
@pany-ang
Copy link
Member

我可以这样理解吗:你将一个个独立的 API 函数包裹进了一个统一的 Class 类里,使用时无需再单独引入某一个 API 函数,只需要引入一个 Class 即可访问所有 API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants