feat: 企微应用租户下拉选择 + corp_id 自动填入
All checks were successful
continuous-integration/drone/push Build is passing

- 租户表增加 corp_id 字段(企业微信企业ID)
- 租户管理页面支持配置 corp_id
- 企微应用页面租户从下拉选择
- 选择租户后自动填入 corp_id 并禁用编辑
- 提示用户如租户未配置 corp_id 需先去配置
This commit is contained in:
111
2026-01-24 10:20:02 +08:00
parent 0a799ee276
commit ab84f6b87d
4 changed files with 75 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ class Tenant(Base):
id = Column(BigInteger, primary_key=True, autoincrement=True)
code = Column(String(50), unique=True, nullable=False)
name = Column(String(100), nullable=False)
corp_id = Column(String(100)) # 企业微信企业ID
contact_info = Column(JSON)
status = Column(Enum('active', 'expired', 'trial'), default='active')
expired_at = Column(Date)