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

求助: 开发插件的技术思路 #51

Open
zjkal opened this issue Jul 19, 2023 · 4 comments
Open

求助: 开发插件的技术思路 #51

zjkal opened this issue Jul 19, 2023 · 4 comments

Comments

@zjkal
Copy link

zjkal commented Jul 19, 2023

walkor大佬, 我想给webman-admin开发一些工具类的插件, 比如上传文件到各大oss之类的, 但是我不知道如何通过我开发的插件拦截webman-admin的上传请求和读取请求, 能否给一些思路?

@walkor
Copy link
Contributor

walkor commented Jul 19, 2023

我这也没有太多业务开发经验,或许应该在webman-admin里开发一个提供统一的上传接口+底层驱动规范,底层驱动接口可以让开发者按照接口规范开发,这样可以随时切换底层驱动,可以选在上传到OSS或者本地或者其它CDN。

@zjkal
Copy link
Author

zjkal commented Jul 20, 2023

walkor大佬, 其实我的建议是webman-admin在架构上, 应该开放出一些东西, 比如钩子之类的, 可以让其他插件拦截或协同处理一些操作, 这样方便插件生态的发展. 要不然只有一些独立应用型的插件, 其他并不那么实用.

PS: 那我猜您可以是架构师, 那可以和webman-admin的具体开发者也一起讨论一下这个问题

@walkor
Copy link
Contributor

walkor commented Jul 20, 2023 via email

@zjkal
Copy link
Author

zjkal commented Jul 20, 2023

我明白了, 那我朝着这方面想一想, 想到好的解决办法再跟您沟通, 或者到时候我直接提交PR

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

No branches or pull requests

2 participants