refactor: 架构重构 — 从「社区隔离」改为「社区关联」模式#62
Merged
ZhengZhenyu merged 1 commit intoopensourceways:mainfrom Feb 23, 2026
Merged
Conversation
将活动、内容、运营活动、生态洞察四个模块从强社区隔离模式迁移到 社区关联模式:数据独立存在,community_id 改为可选关联属性。 核心变更: - 数据库迁移 010:events/event_templates/contents/campaigns 表 community_id 改为 nullable - 后端 API:移除 get_current_community 依赖,改为可选 Query 参数过滤 - 后端 Schema:community_id 字段改为 Optional[int] = None - 前端页面:移除 hasCommunity guard,创建表单新增「关联社区」可选下拉 - App.vue:CommunitySwitcher 改为白名单模式(仅社区工作台和社区治理显示) - App.vue:「社区总览」从「平台管理」移至「社区治理」submenu,全员可见 - 测试:更新 9 个测试以反映新的跨社区访问行为 委员会、会议、发布渠道保持原有的社区强绑定不变。
Contributor
Linking Issue Notice@ZhengZhenyu , the pull request must be linked to at least one issue. |
Contributor
CLA Signature Guide@ZhengZhenyu , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (CLA).
To sign CLA, click here. To check if your email is configured correctly, refer to the FAQs. Once you've signed the CLA or updating your email, please comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将活动、内容、运营活动、生态洞察四个模块从强社区隔离模式迁移到
社区关联模式:数据独立存在,community_id 改为可选关联属性。
核心变更:
委员会、会议、发布渠道保持原有的社区强绑定不变。
变更说明
关联 Issue:#
Checklist