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

建议插件增加安装时执行插件__install__,卸载时执行__uninstall__函数,用于插件内部进行安装卸载的自定义操作 #161

Open
yeclimeric opened this issue Jan 31, 2024 · 2 comments

Comments

@yeclimeric
Copy link

当前插件的作用主要是用于逻辑的封装,期望插件可以拥有自己的数据表,以此,需要在安装插件时,执行插件的自定义安装逻辑,卸载时,执行插件的自定义卸载逻辑。

对于插件的期望,应该是可以实现一个完整的功能,包括对数据库甚至是路由的管理等操作;
作者可参考atlassia系列产品插件的处理逻辑;

@cool-team-official
Copy link
Owner

我们插件分为很多种,这种需求 就是我们的模块, 我们后续也会上架一些模块插件

@yeclimeric
Copy link
Author

我们插件分为很多种,这种需求 就是我们的模块, 我们后续也会上架一些模块插件

嗯嗯,才插件的属性中看到了type有module和plugin的区分。

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