|
@@ -211,6 +211,25 @@ class MySQLUserManager(UserManager):
|
|
|
data = self.db.select(sql, pymysql.cursors.DictCursor)
|
|
|
return data
|
|
|
|
|
|
+class LocalUserRelationManager(UserRelationManager):
|
|
|
+ def __init__(self):
|
|
|
+ pass
|
|
|
+
|
|
|
+ def list_staffs(self):
|
|
|
+ return [
|
|
|
+ {"third_party_user_id": 0, "name": "x", "wxid": "x", "agent_name": "小芳"}
|
|
|
+ ]
|
|
|
+
|
|
|
+ def list_users(self, staff_id: str, page: int = 1, page_size: int = 100):
|
|
|
+ return []
|
|
|
+
|
|
|
+ def list_staff_users(self):
|
|
|
+ return [
|
|
|
+ {"staff_id": "1688854492669990", "user_id": "7881299670930896"}
|
|
|
+ ]
|
|
|
+
|
|
|
+ def get_user_tags(self, user_id: str):
|
|
|
+ return []
|
|
|
|
|
|
class MySQLUserRelationManager(UserRelationManager):
|
|
|
def __init__(self, agent_db_config, wecom_db_config,
|