Commit 3d3f6a2d by imwangxiaozhou Committed by 胡悦

feat(wecom-customer-group): 新增配置项与建群限流,重构客户扫描逻辑

新增企微同步配置项customer_contact_type和max_group_creates_per_bot_per_job,并同步到Pydantic设置模型
重构新客户扫描逻辑,新增全量对比与预览模式,废弃旧的增量扫描与checkpoint逻辑
为建群请求添加单机器人每任务建群数量限制,基于配置项控制
将硬编码的客户联系类型改为从配置读取,新增deleted群组状态到无效状态集合
支持自动清理远端已不存在的本地客户数据
调整list_new_customers接口默认开启dry_run模式,避免意外写入数据
1 parent 3218ac85
......@@ -33,6 +33,8 @@ class IMSettings(BaseModel):
class WeComSyncSettings(BaseModel):
base_url: str = "http://192.168.3.84:8600/webim"
api_key: str = ""
customer_contact_type: str = "ww_customer"
max_group_creates_per_bot_per_job: int = 2
class DownstreamChatSettings(BaseModel):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!