From 6f61287c706be9ce7d5efe6f09879b2e3a6d6ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Wed, 1 Apr 2026 11:03:40 +0800 Subject: [PATCH] 1 --- _docs/_gen_api_doc.js | 162 - _docs/sql/001_biz_schema.sql | 111 - _docs/sql/002_subscription_menu_seed.sql | 61 - _docs/sql/003_biz_audit.sql | 17 - _docs/sql/003_home_menu_seed.sql | 30 - .../sql/004_migrate_biz_users_to_biz_user.sql | 37 - .../sql/005_biz_timestamp_defaults_alter.sql | 28 - _docs/sql/README_migrate_order.txt | 6 - _docs/sql/alter_plan_api_permission.sql | 15 - _docs/sql/biz_api_call_log.sql | 17 - _docs/sql/biz_plans.sql | 99 + _docs/sql/seed_biz_plans.sql | 96 - _docs/swagger.json | 9028 ----------------- _docs、.md => _docs/文档.md | 0 _docs/订阅模块实施计划.md | 2 +- api/model/biz_plan.js | 1 - scripts/migrate_biz_plan_api_columns.js | 73 - 17 files changed, 100 insertions(+), 9683 deletions(-) delete mode 100644 _docs/_gen_api_doc.js delete mode 100644 _docs/sql/001_biz_schema.sql delete mode 100644 _docs/sql/002_subscription_menu_seed.sql delete mode 100644 _docs/sql/003_biz_audit.sql delete mode 100644 _docs/sql/003_home_menu_seed.sql delete mode 100644 _docs/sql/004_migrate_biz_users_to_biz_user.sql delete mode 100644 _docs/sql/005_biz_timestamp_defaults_alter.sql delete mode 100644 _docs/sql/README_migrate_order.txt delete mode 100644 _docs/sql/alter_plan_api_permission.sql delete mode 100644 _docs/sql/biz_api_call_log.sql create mode 100644 _docs/sql/biz_plans.sql delete mode 100644 _docs/sql/seed_biz_plans.sql delete mode 100644 _docs/swagger.json rename _docs、.md => _docs/文档.md (100%) delete mode 100644 scripts/migrate_biz_plan_api_columns.js diff --git a/_docs/_gen_api_doc.js b/_docs/_gen_api_doc.js deleted file mode 100644 index c3abb6c..0000000 --- a/_docs/_gen_api_doc.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * 从 swagger.json 生成带参数的 API 接口清单 MD 文档 - * 用法: node _docs/_gen_api_doc.js - */ -const fs = require("fs"); -const path = require("path"); - -const swagger = require("./swagger.json"); -const mdRaw = fs.readFileSync(path.join(__dirname, "接口说明文档-完整版-含营销等级.md"), "utf8"); - -// ========== 1. 解析套餐映射 ========== -const planMap = {}; -let curPath = ""; -for (const line of mdRaw.split("\n")) { - const m = line.match(/####.*`(POST|GET)\s+(.+?)`/); - if (m) { curPath = m[2].trim(); continue; } - const p = line.match(/对应套餐:\*\*(.+?)\*\*/); - if (p && curPath) { planMap[curPath] = p[1]; curPath = ""; } -} - -// ========== 2. 解析 definitions ========== -function resolveRef(ref) { - if (!ref) return null; - const name = ref.replace("#/definitions/", ""); - return swagger.definitions[name] || null; -} - -function resolveType(prop) { - if (!prop) return "any"; - if (prop.$ref) { - const name = prop.$ref.replace("#/definitions/", ""); - return name; - } - if (prop.type === "array") { - if (prop.items) { - if (prop.items.$ref) return resolveType(prop.items) + "[]"; - return (prop.items.type || "any") + "[]"; - } - return "array"; - } - let t = prop.type || "any"; - if (prop.format) t += `(${prop.format})`; - return t; -} - -function getModelFields(def) { - if (!def || !def.properties) return []; - const fields = []; - for (const [name, prop] of Object.entries(def.properties)) { - fields.push({ - name, - type: resolveType(prop), - desc: (prop.description || "").trim() || "-", - }); - } - return fields; -} - -// ========== 3. 按 tag 分组 ========== -const tagNameMap = { "朋友": "好友", "/shop": "微信小店", "管理": "管理/授权" }; -function normTag(t) { return tagNameMap[t] || t; } - -const tagOrder = [ - "登录", "用户", "好友", "标签", "消息", "消息回调", - "群管理", "朋友圈", "收藏", "支付", "公众号/小程序", - "企业微信", "视频号", "设备", "微信小店", "其他", "同步消息", "管理/授权", -]; - -const groups = {}; -for (const [apiPath, methods] of Object.entries(swagger.paths)) { - for (const [method, spec] of Object.entries(methods)) { - const tag = (spec.tags && spec.tags[0]) || "未分类"; - if (!groups[tag]) groups[tag] = []; - - const params = spec.parameters || []; - const queryParams = params.filter((p) => p.in === "query"); - const bodyParam = params.find((p) => p.in === "body"); - - let bodyModelName = ""; - let bodyFields = []; - if (bodyParam && bodyParam.schema && bodyParam.schema.$ref) { - bodyModelName = bodyParam.schema.$ref.replace("#/definitions/", ""); - const def = resolveRef(bodyParam.schema.$ref); - bodyFields = getModelFields(def); - } - - groups[tag].push({ - method: method.toUpperCase(), - path: apiPath, - summary: spec.summary || "", - plan: planMap[apiPath] || "-", - queryParams, - bodyModelName, - bodyFields, - }); - } -} - -const sortedTags = Object.keys(groups).sort((a, b) => { - const ia = tagOrder.indexOf(normTag(a)); - const ib = tagOrder.indexOf(normTag(b)); - return (ia === -1 ? 99 : ia) - (ib === -1 ? 99 : ib); -}); - -// ========== 4. 生成 MD ========== -const totalApis = Object.values(groups).reduce((s, a) => s + a.length, 0); -const planCount = {}; -for (const apis of Object.values(groups)) { - for (const a of apis) { - planCount[a.plan] = (planCount[a.plan] || 0) + 1; - } -} - -let out = "# API 接口清单(按模块)\n\n"; -out += `> 接口总数:**${totalApis}**\n\n`; - -out += "## 套餐统计\n\n"; -out += "| 套餐 | 接口数 |\n|---|---:|\n"; -for (const p of ["初级版", "高级版", "定制版", "白标/OEM"]) { - if (planCount[p]) out += `| ${p} | ${planCount[p]} |\n`; -} -out += "\n---\n\n"; - -let secIdx = 0; -for (const tag of sortedTags) { - const apis = groups[tag]; - secIdx++; - const displayTag = normTag(tag); - out += `## ${secIdx}. ${displayTag}(${apis.length} 个接口)\n\n`; - - apis.forEach((a, i) => { - const num = `${secIdx}.${i + 1}`; - out += `### ${num} \`${a.method} ${a.path}\` - ${a.summary}\n\n`; - out += `- 套餐:**${a.plan}**\n\n`; - - // Query 参数 - if (a.queryParams.length > 0) { - out += "**Query 参数**\n\n"; - out += "| 参数名 | 类型 | 说明 |\n|---|---|---|\n"; - for (const q of a.queryParams) { - out += `| \`${q.name}\` | ${q.type || "string"} | ${q.description || "-"} |\n`; - } - out += "\n"; - } - - // Body 请求体 - if (a.bodyFields.length > 0) { - out += `**请求体 (${a.bodyModelName})**\n\n`; - out += "| 字段名 | 类型 | 说明 |\n|---|---|---|\n"; - for (const f of a.bodyFields) { - out += `| \`${f.name}\` | \`${f.type}\` | ${f.desc} |\n`; - } - out += "\n"; - } - - out += "---\n\n"; - }); -} - -const outPath = path.join(__dirname, "API接口清单-按模块.md"); -fs.writeFileSync(outPath, out, "utf8"); -console.log(`done: ${outPath}, ${out.split("\n").length} lines`); diff --git a/_docs/sql/001_biz_schema.sql b/_docs/sql/001_biz_schema.sql deleted file mode 100644 index 8856911..0000000 --- a/_docs/sql/001_biz_schema.sql +++ /dev/null @@ -1,111 +0,0 @@ --- WechatAdminWeb 订阅模块业务表(MySQL 8+) --- 执行前请确认库名;字段与 api/model/biz_*.js 中 tableName 完全一致: --- --- Sequelize 模型名 物理表名(本文件与其它 _docs/sql) --- ---------------- ---------------- --- biz_user biz_user --- biz_plan biz_plans --- biz_subscription biz_subscriptions --- biz_api_token biz_api_token --- biz_usage_monthly biz_usage_monthly --- --- 另见:biz_audit_log(003_biz_audit.sql)、biz_api_call_log(biz_api_call_log.sql) - -SET NAMES utf8mb4; - --- 业务用户(与 sys_user 后台账号区分) -CREATE TABLE IF NOT EXISTS `biz_user` ( - `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, - `name` VARCHAR(100) NOT NULL DEFAULT '', - `mobile` VARCHAR(20) NULL DEFAULT NULL, - `email` VARCHAR(120) NULL DEFAULT NULL, - `company_name` VARCHAR(200) NULL DEFAULT NULL, - `status` ENUM('active', 'disabled') NOT NULL DEFAULT 'active', - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `idx_biz_user_mobile` (`mobile`), - KEY `idx_biz_user_status` (`status`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='业务用户'; - --- 套餐 -CREATE TABLE IF NOT EXISTS `biz_plans` ( - `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, - `plan_code` VARCHAR(64) NOT NULL DEFAULT '', - `plan_name` VARCHAR(128) NOT NULL DEFAULT '', - `monthly_price` DECIMAL(12, 2) NOT NULL DEFAULT 0, - `auth_fee` DECIMAL(12, 2) NOT NULL DEFAULT 0, - `account_limit` INT NOT NULL DEFAULT 0, - `active_user_limit` INT NOT NULL DEFAULT 0, - `msg_quota` INT NOT NULL DEFAULT 0, - `mass_quota` INT NOT NULL DEFAULT 0, - `friend_quota` INT NOT NULL DEFAULT 0, - `sns_quota` INT NOT NULL DEFAULT 0, - `enabled_features` JSON NULL, - `status` ENUM('active', 'inactive') NOT NULL DEFAULT 'active', - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `uk_biz_plans_code` (`plan_code`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='套餐'; - --- 订阅实例 -CREATE TABLE IF NOT EXISTS `biz_subscriptions` ( - `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, - `user_id` BIGINT UNSIGNED NOT NULL, - `plan_id` BIGINT UNSIGNED NOT NULL, - `status` ENUM('pending', 'active', 'expired', 'cancelled') NOT NULL DEFAULT 'pending', - `start_time` DATETIME NOT NULL, - `end_time` DATETIME NOT NULL, - `renew_mode` ENUM('manual', 'auto') NOT NULL DEFAULT 'manual', - `payment_channel` ENUM('offline', 'pay_link') NULL DEFAULT NULL, - `payment_ref` VARCHAR(200) NULL DEFAULT NULL, - `created_at` DATETIME NOT NULL, - `updated_at` DATETIME NOT NULL, - PRIMARY KEY (`id`), - KEY `idx_biz_sub_user` (`user_id`), - KEY `idx_biz_sub_plan` (`plan_id`), - KEY `idx_biz_sub_status_end` (`status`, `end_time`), - CONSTRAINT `fk_biz_sub_user` FOREIGN KEY (`user_id`) REFERENCES `biz_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `fk_biz_sub_plan` FOREIGN KEY (`plan_id`) REFERENCES `biz_plans` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订阅'; - --- API Token(库内仅存 hash;plan_id 冗余便于鉴权少联表) -CREATE TABLE IF NOT EXISTS `biz_api_token` ( - `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, - `user_id` BIGINT UNSIGNED NOT NULL, - `plan_id` BIGINT UNSIGNED NULL DEFAULT NULL, - `token_name` VARCHAR(100) NOT NULL DEFAULT '', - `token_hash` VARCHAR(64) NOT NULL, - `status` ENUM('active', 'revoked', 'expired') NOT NULL DEFAULT 'active', - `expire_at` DATETIME NOT NULL, - `last_used_at` DATETIME NULL DEFAULT NULL, - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `uk_biz_token_hash` (`token_hash`), - KEY `idx_biz_token_user` (`user_id`), - KEY `idx_biz_token_plan` (`plan_id`), - CONSTRAINT `fk_biz_token_user` FOREIGN KEY (`user_id`) REFERENCES `biz_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `fk_biz_token_plan` FOREIGN KEY (`plan_id`) REFERENCES `biz_plans` (`id`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='API Token'; - --- 月用量 -CREATE TABLE IF NOT EXISTS `biz_usage_monthly` ( - `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, - `user_id` BIGINT UNSIGNED NOT NULL, - `plan_id` BIGINT UNSIGNED NOT NULL, - `stat_month` CHAR(7) NOT NULL COMMENT 'YYYY-MM', - `msg_count` INT NOT NULL DEFAULT 0, - `mass_count` INT NOT NULL DEFAULT 0, - `friend_count` INT NOT NULL DEFAULT 0, - `sns_count` INT NOT NULL DEFAULT 0, - `active_user_count` INT NOT NULL DEFAULT 0, - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `uk_biz_usage_user_month` (`user_id`, `stat_month`), - KEY `idx_biz_usage_plan` (`plan_id`), - CONSTRAINT `fk_biz_usage_user` FOREIGN KEY (`user_id`) REFERENCES `biz_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `fk_biz_usage_plan` FOREIGN KEY (`plan_id`) REFERENCES `biz_plans` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='月用量'; diff --git a/_docs/sql/002_subscription_menu_seed.sql b/_docs/sql/002_subscription_menu_seed.sql deleted file mode 100644 index 19aafe9..0000000 --- a/_docs/sql/002_subscription_menu_seed.sql +++ /dev/null @@ -1,61 +0,0 @@ --- ============================================================================= --- 表 sys_menu(与 api/model/sys_menu.js 模型同名;执行前以 information_schema 确认实际表名) --- 订阅模块菜单插入脚本(字段与模型一致) --- path:不含斜杠(与首页 path=home 等约定一致);component 仍为 subscription/xxx 供前端映射 --- 执行前请备份。若已存在同名「订阅管理」父菜单,请先删除子菜单再删父级,或改下面名称。 --- 若数据库表另有 created_at / updated_at 等列,请在 INSERT 中补全或给默认值。 --- ============================================================================= - --- ----------------------------------------------------------------------------- --- 方案一(推荐):一级目录「订阅管理」+ 子菜单,parent_id 指向父记录 id --- ----------------------------------------------------------------------------- - -INSERT INTO sys_menu - (name, parent_id, icon, path, type, model_id, form_id, component, api_path, is_show_menu, is_show, sort) -VALUES - ( - '订阅管理', - 0, - 'ios-apps', - 'subscription', - '菜单', - 0, - 0, - '', - '', - 1, - 1, - 900 - ); - -SET @sub_parent_id = LAST_INSERT_ID(); - -INSERT INTO sys_menu - (name, parent_id, icon, path, type, model_id, form_id, component, api_path, is_show_menu, is_show, sort) -VALUES - ('运营看板', @sub_parent_id, 'ios-speedometer', 'subscription_dashboard', '页面', 0, 0, 'subscription/dashboard', '', 1, 1, 10), - ('业务用户', @sub_parent_id, 'ios-people', 'subscription_user', '页面', 0, 0, 'subscription/user', '', 1, 1, 20), - ('套餐管理', @sub_parent_id, 'ios-pricetags', 'subscription_plan', '页面', 0, 0, 'subscription/plan', '', 1, 1, 30), - ('订阅列表', @sub_parent_id, 'ios-list', 'subscription_subscription', '页面', 0, 0, 'subscription/subscription', '', 1, 1, 40), - ('API Token', @sub_parent_id, 'ios-key', 'subscription_token', '页面', 0, 0, 'subscription/token', '', 1, 1, 50), - ('支付确认', @sub_parent_id, 'ios-cash', 'subscription_payment', '页面', 0, 0, 'subscription/payment', '', 1, 1, 60), - ('月用量', @sub_parent_id, 'ios-analytics', 'subscription_usage', '页面', 0, 0, 'subscription/usage', '', 1, 1, 70), - ('审计日志', @sub_parent_id, 'ios-paper', 'subscription_audit', '页面', 0, 0, 'subscription/audit', '', 1, 1, 80); - --- ----------------------------------------------------------------------------- --- 方案二(可选):全部挂在根节点 parent_id=0,无父级目录(与 component-map 仍一致) --- 若已执行方案一,请勿再执行下面语句,避免重复菜单。 --- ----------------------------------------------------------------------------- -/* -INSERT INTO sys_menu - (name, parent_id, icon, path, type, model_id, form_id, component, api_path, is_show_menu, is_show, sort) -VALUES - ('运营看板', 0, 'ios-speedometer', 'subscription_dashboard', '页面', 0, 0, 'subscription/dashboard', '', 1, 1, 910), - ('业务用户', 0, 'ios-people', 'subscription_user', '页面', 0, 0, 'subscription/user', '', 1, 1, 920), - ('套餐管理', 0, 'ios-pricetags', 'subscription_plan', '页面', 0, 0, 'subscription/plan', '', 1, 1, 930), - ('订阅列表', 0, 'ios-list', 'subscription_subscription', '页面', 0, 0, 'subscription/subscription', '', 1, 1, 940), - ('API Token', 0, 'ios-key', 'subscription_token', '页面', 0, 0, 'subscription/token', '', 1, 1, 950), - ('支付确认', 0, 'ios-cash', 'subscription_payment', '页面', 0, 0, 'subscription/payment', '', 1, 1, 960), - ('月用量', 0, 'ios-analytics', 'subscription_usage', '页面', 0, 0, 'subscription/usage', '', 1, 1, 970), - ('审计日志', 0, 'ios-paper', 'subscription_audit', '页面', 0, 0, 'subscription/audit', '', 1, 1, 980); -*/ diff --git a/_docs/sql/003_biz_audit.sql b/_docs/sql/003_biz_audit.sql deleted file mode 100644 index 0fdd123..0000000 --- a/_docs/sql/003_biz_audit.sql +++ /dev/null @@ -1,17 +0,0 @@ --- 审计日志(关键操作留痕) --- 模型:api/model/biz_audit_log.js → tableName: biz_audit_log -SET NAMES utf8mb4; - -CREATE TABLE IF NOT EXISTS `biz_audit_log` ( - `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, - `admin_user_id` BIGINT UNSIGNED NULL DEFAULT NULL COMMENT '后台操作者 sys_user.id,可空', - `biz_user_id` BIGINT UNSIGNED NULL DEFAULT NULL COMMENT '相关业务用户', - `action` VARCHAR(64) NOT NULL COMMENT '动作标识', - `resource_type` VARCHAR(64) NOT NULL DEFAULT '', - `resource_id` BIGINT UNSIGNED NULL DEFAULT NULL, - `detail` JSON NULL, - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `idx_biz_audit_action` (`action`), - KEY `idx_biz_audit_created` (`created_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订阅模块审计'; diff --git a/_docs/sql/003_home_menu_seed.sql b/_docs/sql/003_home_menu_seed.sql deleted file mode 100644 index f1e7a36..0000000 --- a/_docs/sql/003_home_menu_seed.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================= --- 表 sys_menu(与 api/model/sys_menu.js 模型同名;执行前以 information_schema 确认实际表名) --- 首页菜单(字段与模型、现有库中菜单数据格式一致) --- --- 参考库中同类数据示例: --- path:首页为 home(无前导 /);订阅子页为 /subscription/xxx --- component:与 admin/src/router/component-map.js 的 key 一致,可为 home/index 或 home/index.vue --- icon:Material 图标名如 md-home(与系统页 system/sys_user.vue 等同风格) --- ============================================================================= - -INSERT INTO sys_menu - (name, parent_id, icon, path, type, model_id, form_id, component, api_path, is_show_menu, is_show, sort) -VALUES - ( - '首页', - 0, - 'md-home', - 'home', - '页面', - 0, - 0, - 'home/index.vue', - '', - 1, - 1, - 0 - ); - --- 若已存在 name=首页 或 path=home 的记录,请先删除或改值后再执行,避免重复。 --- 若你希望 component 不带后缀,可将上面 'home/index.vue' 改为 'home/index'(component-map 两种 key 均已注册)。 diff --git a/_docs/sql/004_migrate_biz_users_to_biz_user.sql b/_docs/sql/004_migrate_biz_users_to_biz_user.sql deleted file mode 100644 index fac1ad7..0000000 --- a/_docs/sql/004_migrate_biz_users_to_biz_user.sql +++ /dev/null @@ -1,37 +0,0 @@ --- ============================================================================= --- 目标物理表名:biz_user(与模型 api/model/biz_user.js 的 tableName 一致;旧名 biz_users 仅为历史迁移说明)。 --- 若早期已按旧版 001 建表 biz_users,而运行时报错查 biz_user,可执行本脚本迁移表名。 --- 执行前备份数据库。若子表尚未创建,可跳过本脚本,直接 DROP biz_users 后重跑新版 001_biz_schema.sql。 --- ============================================================================= - --- 若不存在 biz_users 则无需执行 --- 步骤:去外键引用 -> 重命名父表 ->(子表 FK 仍指向旧名时需重建,MySQL 8 重命名父表后约束名可能需检查) - --- 1) 删除引用 biz_users 的外键(子表若已存在) -SET @db = DATABASE(); - -SET @sql = ( - SELECT GROUP_CONCAT(CONCAT('ALTER TABLE `', TABLE_NAME, '` DROP FOREIGN KEY `', CONSTRAINT_NAME, '`') SEPARATOR '; ') - FROM information_schema.KEY_COLUMN_USAGE - WHERE TABLE_SCHEMA = @db - AND REFERENCED_TABLE_NAME = 'biz_users' -); --- 若上面为空则无子表 FK,可手动执行下面 RENAME - --- 手工示例(按实际约束名调整): --- ALTER TABLE `biz_subscriptions` DROP FOREIGN KEY `fk_biz_sub_user`; --- ALTER TABLE `biz_api_token` DROP FOREIGN KEY `fk_biz_token_user`; --- ALTER TABLE `biz_usage_monthly` DROP FOREIGN KEY `fk_biz_usage_user`; - --- 2) 重命名业务用户表 --- RENAME TABLE `biz_users` TO `biz_user`; - --- 3) 重新添加外键(与 001_biz_schema.sql 一致) --- ALTER TABLE `biz_subscriptions` --- ADD CONSTRAINT `fk_biz_sub_user` FOREIGN KEY (`user_id`) REFERENCES `biz_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; --- ALTER TABLE `biz_api_token` --- ADD CONSTRAINT `fk_biz_token_user` FOREIGN KEY (`user_id`) REFERENCES `biz_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; --- ALTER TABLE `biz_usage_monthly` --- ADD CONSTRAINT `fk_biz_usage_user` FOREIGN KEY (`user_id`) REFERENCES `biz_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; - --- 更简单做法(无重要数据):DROP 子表与 biz_users,再执行新版 001_biz_schema.sql 全量重建。 diff --git a/_docs/sql/005_biz_timestamp_defaults_alter.sql b/_docs/sql/005_biz_timestamp_defaults_alter.sql deleted file mode 100644 index b4e6a2f..0000000 --- a/_docs/sql/005_biz_timestamp_defaults_alter.sql +++ /dev/null @@ -1,28 +0,0 @@ --- 表名与 api/model 中 tableName 一致:biz_user、biz_plans、biz_subscriptions、biz_api_token、biz_usage_monthly、biz_audit_log --- 已有库若 `created_at` / `updated_at` 无默认值,插入会失败(模型已关闭 Sequelize timestamps 且未声明时间字段时依赖库默认值)。 --- 按需对已有表执行(新库直接执行 001/003 即可,无需本文件)。 - -SET NAMES utf8mb4; - -ALTER TABLE `biz_user` - MODIFY `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - MODIFY `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; - -ALTER TABLE `biz_plans` - MODIFY `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - MODIFY `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; - -ALTER TABLE `biz_subscriptions` - MODIFY `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - MODIFY `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; - -ALTER TABLE `biz_api_token` - MODIFY `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - MODIFY `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; - -ALTER TABLE `biz_usage_monthly` - MODIFY `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - MODIFY `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; - -ALTER TABLE `biz_audit_log` - MODIFY `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP; diff --git a/_docs/sql/README_migrate_order.txt b/_docs/sql/README_migrate_order.txt deleted file mode 100644 index 2c51043..0000000 --- a/_docs/sql/README_migrate_order.txt +++ /dev/null @@ -1,6 +0,0 @@ -订阅模块数据库脚本建议执行顺序: -1. 001_biz_schema.sql — 业务表(用户/套餐/订阅/Token/月用量) -2. 003_biz_audit.sql — 审计表 biz_audit_log -3. 002_biz_menu_seed.sql — 管理端菜单(按实际 sys_menu 表结构调整列后执行) - -说明:若 002 与现有 sys_menu 字段不一致,请在库中对照 sys_menu 结构增删列后再插入。 diff --git a/_docs/sql/alter_plan_api_permission.sql b/_docs/sql/alter_plan_api_permission.sql deleted file mode 100644 index e1a4f94..0000000 --- a/_docs/sql/alter_plan_api_permission.sql +++ /dev/null @@ -1,15 +0,0 @@ --- 模型 biz_plan → 表 biz_plans;模型 biz_usage_monthly → 表 biz_usage_monthly(与 api/model 中 tableName 一致) --- 在「与后端 app 相同」的 MySQL 库中执行(否则会一直报 Unknown column)。 --- 可重复执行:若列已存在会报错,可忽略对应语句或改用 scripts/migrate_biz_plan_api_columns.js - -SET NAMES utf8mb4; - --- biz_plans(分两条,方便只缺其中一列时单独执行) -ALTER TABLE `biz_plans` - ADD COLUMN `allowed_apis` JSON DEFAULT NULL COMMENT '可访问的接口路径列表,null=不限制'; -ALTER TABLE `biz_plans` - ADD COLUMN `api_call_quota` INT NOT NULL DEFAULT 0 COMMENT '每月API总调用次数上限,0=不限制'; - --- biz_usage_monthly -ALTER TABLE `biz_usage_monthly` - ADD COLUMN `api_call_count` INT NOT NULL DEFAULT 0 COMMENT '当月API转发总调用次数'; diff --git a/_docs/sql/biz_api_call_log.sql b/_docs/sql/biz_api_call_log.sql deleted file mode 100644 index 91a3989..0000000 --- a/_docs/sql/biz_api_call_log.sql +++ /dev/null @@ -1,17 +0,0 @@ --- 模型:api/model/biz_api_call_log.js → tableName: biz_api_call_log -SET NAMES utf8mb4; - -CREATE TABLE IF NOT EXISTS `biz_api_call_log` ( - `id` BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, - `user_id` BIGINT UNSIGNED NOT NULL COMMENT '业务用户ID', - `token_id` BIGINT UNSIGNED NOT NULL COMMENT '使用的Token ID', - `api_path` VARCHAR(200) NOT NULL COMMENT '接口路径', - `http_method` VARCHAR(10) NOT NULL DEFAULT 'POST', - `status_code` INT NOT NULL DEFAULT 0 COMMENT '上游返回的HTTP状态码', - `response_time` INT NOT NULL DEFAULT 0 COMMENT '上游响应耗时ms', - `call_date` DATE NOT NULL COMMENT '调用日期', - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - INDEX `idx_user_date` (`user_id`, `call_date`), - INDEX `idx_api_date` (`api_path`, `call_date`), - INDEX `idx_user_api` (`user_id`, `api_path`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='API调用日志'; diff --git a/_docs/sql/biz_plans.sql b/_docs/sql/biz_plans.sql new file mode 100644 index 0000000..fea183f --- /dev/null +++ b/_docs/sql/biz_plans.sql @@ -0,0 +1,99 @@ +-- 套餐表 biz_plan(与 api/model/biz_plan.js 一致,tableName: biz_plan) +-- MySQL 8+,字符集 utf8mb4 + +SET NAMES utf8mb4; + +CREATE TABLE IF NOT EXISTS `biz_plan` ( + `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + `plan_code` VARCHAR(64) NOT NULL COMMENT '唯一编码', + `plan_name` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '展示名称', + `monthly_price` DECIMAL(12, 2) NOT NULL DEFAULT 0.00 COMMENT '月价', + `auth_fee` DECIMAL(12, 2) NOT NULL DEFAULT 0.00 COMMENT '授权费', + `account_limit` INT NOT NULL DEFAULT 0 COMMENT '账号上限,0 表示由业务解释', + `active_user_limit` INT NOT NULL DEFAULT 0 COMMENT '活跃用户数上限', + `msg_quota` INT NOT NULL DEFAULT 0 COMMENT '消息额度', + `mass_quota` INT NOT NULL DEFAULT 0 COMMENT '群发额度', + `friend_quota` INT NOT NULL DEFAULT 0 COMMENT '加好友额度', + `sns_quota` INT NOT NULL DEFAULT 0 COMMENT '朋友圈额度', + `enabled_features` JSON NULL COMMENT '功能点(JSON),null 表示不限制', + `allowed_apis` JSON NULL COMMENT '可访问接口路径 JSON 数组,null 表示不限制', + `api_call_quota` INT NOT NULL DEFAULT 0 COMMENT '每月 API 转发总次数上限,0 表示不限制', + `status` ENUM('active', 'inactive') NOT NULL DEFAULT 'active', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_biz_plan_plan_code` (`plan_code`), + KEY `idx_biz_plan_status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- ---------- 若已有旧表缺列,可单独执行(列已存在会报错,可忽略)---------- +-- ALTER TABLE `biz_plan` ADD COLUMN `enabled_features` JSON NULL COMMENT '功能点(JSON),null 表示不限制'; +-- ALTER TABLE `biz_plan` ADD COLUMN `allowed_apis` JSON NULL COMMENT '可访问接口路径 JSON 数组,null 表示不限制'; +-- ALTER TABLE `biz_plan` ADD COLUMN `api_call_quota` INT NOT NULL DEFAULT 0 COMMENT '每月 API 转发总次数上限,0 表示不限制'; + +-- ---------- 示例数据(可选;plan_code 冲突则先删或改编码)---------- +INSERT INTO `biz_plan` ( + `plan_code`, + `plan_name`, + `monthly_price`, + `auth_fee`, + `account_limit`, + `active_user_limit`, + `msg_quota`, + `mass_quota`, + `friend_quota`, + `sns_quota`, + `enabled_features`, + `allowed_apis`, + `api_call_quota`, + `status` +) VALUES +( + 'plan_junior', + '初级版', + 299.00, + 0.00, + 3, + 50, + 3000, + 100, + 200, + 100, + JSON_ARRAY('登录', '好友', '消息', '管理'), + JSON_ARRAY('/login/GetLoginStatus', '/login/DeviceLogin', '/message/SendText', '/friend/GetContactList'), + 50000, + 'active' +), +( + 'plan_senior', + '高级版', + 899.00, + 0.00, + 20, + 500, + 50000, + 2000, + 5000, + 2000, + JSON_ARRAY( + '登录', '好友', '消息', '群聊', '朋友圈', '小程序', '管理', + '设备', '收藏', '视频号', '标签', '支付', '企业微信', '商店', '其他', 'Ws' + ), + NULL, + 500000, + 'active' +), +( + 'plan_custom', + '定制版', + 0.00, + 0.00, + 9999, + 9999, + 0, + 0, + 0, + 0, + NULL, + NULL, + 0, + 'active' +); diff --git a/_docs/sql/seed_biz_plans.sql b/_docs/sql/seed_biz_plans.sql deleted file mode 100644 index 67a7d01..0000000 --- a/_docs/sql/seed_biz_plans.sql +++ /dev/null @@ -1,96 +0,0 @@ --- 套餐示例数据(表 biz_plans,模型 biz_plan / api/model/biz_plan.js) --- 执行库须与项目 NODE_ENV 对应库一致;若表无 allowed_apis / api_call_quota 请先执行 alter_plan_api_permission.sql --- plan_code 唯一:重复执行会主键/唯一冲突,可先 DELETE WHERE plan_code IN (...) 或改用下面「按编码更新」段落 - -SET NAMES utf8mb4; - --- ========== 1)插入三条示例套餐 ========== -INSERT INTO `biz_plans` ( - `plan_code`, - `plan_name`, - `monthly_price`, - `auth_fee`, - `account_limit`, - `active_user_limit`, - `msg_quota`, - `mass_quota`, - `friend_quota`, - `sns_quota`, - `enabled_features`, - `allowed_apis`, - `api_call_quota`, - `status` -) VALUES -( - 'plan_junior', - '初级版', - 299.00, - 0.00, - 3, - 50, - 3000, - 100, - 200, - 100, - JSON_ARRAY('登录', '好友', '消息', '管理'), - JSON_ARRAY('/login/GetLoginStatus', '/login/DeviceLogin', '/message/SendText', '/friend/GetContactList'), - 50000, - 'active' -), -( - 'plan_senior', - '高级版', - 899.00, - 0.00, - 20, - 500, - 50000, - 2000, - 5000, - 2000, - JSON_ARRAY( - '登录', '好友', '消息', '群聊', '朋友圈', '小程序', '管理', - '设备', '收藏', '视频号', '标签', '支付', '企业微信', '商店', '其他', 'Ws' - ), - NULL, - 500000, - 'active' -), -( - 'plan_custom', - '定制版', - 0.00, - 0.00, - 9999, - 9999, - 0, - 0, - 0, - 0, - NULL, - NULL, - 0, - 'active' -); - --- ========== 2)仅当列已存在时:按 plan_code 幂等覆盖(无则 INSERT 需自行补全列)========== --- 若你已手工删过上面 INSERT,可用下面语句改已有编码的数据: - --- UPDATE `biz_plans` SET --- `plan_name` = '初级版', --- `monthly_price` = 299.00, --- `msg_quota` = 3000, --- `api_call_quota` = 50000, --- `allowed_apis` = JSON_ARRAY('/login/GetLoginStatus', '/message/SendText'), --- `status` = 'active' --- WHERE `plan_code` = 'plan_junior'; - --- ========== 3)常用维护语句 ========== --- 下架套餐 --- UPDATE `biz_plans` SET `status` = 'inactive' WHERE `plan_code` = 'plan_junior'; - --- 某套餐改为「全接口 + 不限次数」(接口层 allowed_apis=null、api_call_quota=0 表示不限制) --- UPDATE `biz_plans` SET `allowed_apis` = NULL, `api_call_quota` = 0 WHERE `plan_code` = 'plan_senior'; - --- 清空测试套餐(谨慎:有外键订阅时可能拦截) --- DELETE FROM `biz_plans` WHERE `plan_code` IN ('plan_junior', 'plan_senior', 'plan_custom'); diff --git a/_docs/swagger.json b/_docs/swagger.json deleted file mode 100644 index 00ec88a..0000000 --- a/_docs/swagger.json +++ /dev/null @@ -1,9028 +0,0 @@ -{ - "basePath": "", - "definitions": { - "ActionInfo": { - "properties": { - "AppMsg": { - "$ref": "#/definitions/AppMsg" - } - }, - "title": "ActionInfo", - "type": "object" - }, - "AlisaModel": { - "properties": { - "Alisa": { - "example": "", - "type": "string" - } - }, - "title": "AlisaModel", - "type": "object" - }, - "AppInfo": { - "properties": { - "AppName": { - "example": "", - "type": "string" - }, - "FromURL": { - "example": "", - "type": "string" - }, - "ID": { - "example": "", - "type": "string" - }, - "InstallURL": { - "example": "", - "type": "string" - }, - "IsForceUpdate": { - "format": "uint32", - "type": "integer" - }, - "Version": { - "example": "", - "type": "string" - } - }, - "title": "AppInfo", - "type": "object" - }, - "AppMessageItem": { - "properties": { - "ContentType": { - "description": " 2001:(红包消息)", - "format": "uint32", - "type": "integer" - }, - "ContentXML": { - "example": "", - "type": "string" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "AppMessageItem", - "type": "object" - }, - "AppMessageModel": { - "properties": { - "AppList": { - "items": { - "$ref": "#/definitions/AppMessageItem" - }, - "type": "array" - } - }, - "title": "AppMessageModel", - "type": "object" - }, - "AppMsg": { - "properties": { - "MessageAction": { - "example": "", - "type": "string" - } - }, - "title": "AppMsg", - "type": "object" - }, - "AppletModel": { - "properties": { - "AppId": { - "description": " 应用ID", - "example": "", - "type": "string" - }, - "Data": { - "description": " 小程序云函数操作的 Data; json字符串, 注意必须是 json 字符串; 传空时默认值为: '{\"with_credentials\":true,\"from_component\":true,\"data\":{\"lang\":\"zh_CN\"},\"api_name\":\"webapi_getuserinfo\"}'", - "example": "", - "type": "string" - }, - "Opt": { - "description": " 小程序云函数操作的 Opt; 默认为1", - "example": "1", - "format": "int32", - "type": "integer" - }, - "PackageName": { - "example": "", - "type": "string" - }, - "SdkName": { - "example": "", - "type": "string" - } - }, - "title": "AppletModel", - "type": "object" - }, - "AutoApproveRequestModel": { - "properties": { - "AutoReply": { - "description": " 是否通过验证后自动回复", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Enable": { - "description": " 是否开启自动通过验证", - "example": "1", - "format": "int32", - "type": "integer" - }, - "ReplyMessage": { - "description": " 回复内容(仅一条)", - "example": "", - "type": "string" - } - }, - "title": "AutoApproveRequestModel", - "type": "object" - }, - "AutoCommentRequestModel": { - "properties": { - "CommentMessages": { - "description": " 评论内容(多条用逗号隔开)", - "example": "", - "type": "string" - }, - "Enable": { - "description": " 是否开启自动评论", - "example": "1", - "format": "int32", - "type": "integer" - }, - "EndTime": { - "description": " 评论时间段,结束时间", - "example": "", - "type": "string" - }, - "Groups": { - "description": " 设置分组,多个用逗号隔开", - "example": "", - "type": "string" - }, - "Mode": { - "description": " 模式,1-仅评论分组,0-不评论分组", - "example": "1", - "format": "int32", - "type": "integer" - }, - "StartTime": { - "description": " 评论时间段,开始时间", - "example": "", - "type": "string" - }, - "TimeInSeconds": { - "description": " 延迟评论的时间,单位为秒", - "example": "0", - "format": "int32", - "type": "integer" - } - }, - "title": "AutoCommentRequestModel", - "type": "object" - }, - "AutoForwardRequestModel": { - "properties": { - "EnableAutoForward": { - "description": " 是否开启跟随转发", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Groups": { - "description": " 设置分组,多个用逗号隔开", - "example": "", - "type": "string" - }, - "IsBlockAuthor": { - "description": " 是否屏蔽作者", - "example": "1", - "format": "int32", - "type": "integer" - }, - "IsBlockGroup": { - "description": " 是否屏蔽组", - "example": "1", - "format": "int32", - "type": "integer" - } - }, - "title": "AutoForwardRequestModel", - "type": "object" - }, - "AutoLikeRequestModel": { - "properties": { - "Enable": { - "description": " 是否开启自动点赞", - "example": "1", - "format": "int32", - "type": "integer" - }, - "EndTime": { - "description": " 结束时间// 点赞时间段", - "example": "", - "type": "string" - }, - "Groups": { - "description": " 设置分组,多个用逗号隔开", - "example": "", - "type": "string" - }, - "Mode": { - "description": " 模式,1-仅点赞分组,0-不点赞分组", - "example": "1", - "format": "int32", - "type": "integer" - }, - "StartTime": { - "description": " 开始时间 // 点赞时间段", - "example": "", - "type": "string" - }, - "TimeInSeconds": { - "description": " 延迟点赞的时间,单位为秒", - "example": "0", - "format": "int32", - "type": "integer" - } - }, - "title": "AutoLikeRequestModel", - "type": "object" - }, - "AutoRedRequestModel": { - "properties": { - "AutoReply": { - "description": " 是否自动回复感谢", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Enable": { - "description": " 是否开启领取红包机制", - "example": "1", - "format": "int32", - "type": "integer" - }, - "ReplyMessages": { - "description": " 回复内容(多个消息用逗号隔开)", - "example": "", - "type": "string" - }, - "Single": { - "description": " 是否仅抢单个红包(不同时抢多个)", - "example": "1", - "format": "int32", - "type": "integer" - }, - "TimeInSeconds": { - "description": " 延迟回复的时间,单位为秒", - "example": "0", - "format": "int32", - "type": "integer" - } - }, - "title": "AutoRedRequestModel", - "type": "object" - }, - "AutoTransferRequestModel": { - "properties": { - "AutoReply": { - "description": " 是否开启自动回复", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Enable": { - "description": " 是否开启接收转账功能", - "example": "1", - "format": "int32", - "type": "integer" - }, - "ReplyMessage": { - "description": " 回复内容(仅一条)", - "example": "", - "type": "string" - }, - "TimeInSeconds": { - "description": " 延迟回复的时间,单位为秒", - "example": "0", - "format": "int32", - "type": "integer" - } - }, - "title": "AutoTransferRequestModel", - "type": "object" - }, - "BannedAuthKeyModel": { - "properties": { - "IsBanned": { - "description": " isBanned 1 禁用 默认设置为0", - "example": "0", - "format": "int", - "type": "integer" - }, - "Key": { - "description": " 要禁用的 AuthKey", - "example": "", - "type": "string" - } - }, - "title": "BannedAuthKeyModel", - "type": "object" - }, - "BatchGetContactModel": { - "properties": { - "RoomWxIDList": { - "items": { - "type": "string" - }, - "type": "array" - }, - "UserNames": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "BatchGetContactModel", - "type": "object" - }, - "CdnSnsVideoUploadModel": { - "properties": { - "ThumbData": { - "description": " 缩略图数据的base64编码", - "example": "", - "type": "string" - }, - "VideoData": { - "description": " 视频数据的base64编码", - "example": "", - "type": "string" - } - }, - "title": "CdnSnsVideoUploadModel", - "type": "object" - }, - "CdnUploadVideoRequest": { - "properties": { - "ThumbData": { - "description": " ThumbData", - "items": { - "format": "int", - "type": "integer" - }, - "type": "array" - }, - "ToUserName": { - "example": "", - "type": "string" - }, - "VideoData": { - "description": " 视频数据", - "items": { - "format": "int", - "type": "integer" - }, - "type": "array" - } - }, - "title": "CdnUploadVideoRequest", - "type": "object" - }, - "ChannelsLoginModel": { - "properties": { - "finderUsername": { - "description": " 指定要登录的视频号用户名,为空则选择第一个", - "example": "", - "type": "string" - }, - "url": { - "description": " 视频号助手扫码登录确认链接", - "example": "", - "type": "string" - } - }, - "title": "ChannelsLoginModel", - "type": "object" - }, - "ChatRoomWxIdListModel": { - "properties": { - "ChatRoomWxIdList": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "ChatRoomWxIdListModel", - "type": "object" - }, - "ChatroomMemberModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "UserList": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "ChatroomMemberModel", - "type": "object" - }, - "ChatroomNameModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "Nickname": { - "example": "", - "type": "string" - } - }, - "title": "ChatroomNameModel", - "type": "object" - }, - "CollectmoneyModel": { - "properties": { - "InvalidTime": { - "example": "", - "type": "string" - }, - "ToUserName": { - "example": "", - "type": "string" - }, - "TransFerId": { - "example": "", - "type": "string" - }, - "TransactionId": { - "example": "", - "type": "string" - } - }, - "title": "CollectmoneyModel", - "type": "object" - }, - "ConfirmPreTransfer": { - "properties": { - "BankSerial": { - "description": " 付款方式 Serial序列号", - "example": "", - "type": "string" - }, - "BankType": { - "description": " 付款方式 类型", - "example": "", - "type": "string" - }, - "PayPassword": { - "description": " 支付密码", - "example": "", - "type": "string" - }, - "ReqKey": { - "description": " 创建转账返回的ReqKey", - "example": "", - "type": "string" - } - }, - "title": "ConfirmPreTransfer", - "type": "object" - }, - "ConsentToJoinGroupModel": { - "properties": { - "Url": { - "example": "", - "type": "string" - } - }, - "title": "ConsentToJoinGroupModel", - "type": "object" - }, - "ContentObject": { - "properties": { - "ContentStyle": { - "format": "uint32", - "type": "integer" - }, - "ContentURL": { - "example": "", - "type": "string" - }, - "Description": { - "example": "", - "type": "string" - }, - "MediaList": { - "$ref": "#/definitions/MediaList" - }, - "Title": { - "example": "", - "type": "string" - } - }, - "title": "ContentObject", - "type": "object" - }, - "CreateChatRoomModel": { - "properties": { - "TopIc": { - "example": "", - "type": "string" - }, - "UserList": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "CreateChatRoomModel", - "type": "object" - }, - "CreatePreTransfer": { - "properties": { - "Description": { - "description": " 转账备注", - "example": "", - "type": "string" - }, - "Fee": { - "description": " 转账金额(单位为分)", - "format": "uint32", - "type": "integer" - }, - "ToUserName": { - "description": " 要转账用户的wxid", - "example": "", - "type": "string" - } - }, - "title": "CreatePreTransfer", - "type": "object" - }, - "DataSection": { - "properties": { - "DataLen": { - "description": " 数据分包长度(不要超过 65535)", - "example": "61440", - "format": "uint32", - "type": "integer" - }, - "StartPos": { - "description": " 数据分包开始位置", - "format": "uint32", - "type": "integer" - } - }, - "title": "DataSection", - "type": "object" - }, - "DelContactModel": { - "properties": { - "DelUserName": { - "example": "", - "type": "string" - } - }, - "title": "DelContactModel", - "type": "object" - }, - "DelSafeDeviceModel": { - "properties": { - "DeviceUUID": { - "example": "", - "type": "string" - } - }, - "title": "DelSafeDeviceModel", - "type": "object" - }, - "DelayAuthKeyModel": { - "properties": { - "Days": { - "description": " AuthKey 的延期天数; Days 小于1默认设置为30", - "example": "30", - "format": "int", - "type": "integer" - }, - "ExpiryDate": { - "description": " AuthKey 的到期日期(例如: 2024-01-01); 与 Days 参数只能选其一(优先使用 ExpiryDate 参数)", - "example": "", - "type": "string" - }, - "Key": { - "description": " 要延期的 AuthKey", - "example": "", - "type": "string" - } - }, - "title": "DelayAuthKeyModel", - "type": "object" - }, - "DelayAuthKeyModelNew": { - "properties": { - "KeyUse": { - "description": " 被使用的key", - "example": "", - "type": "string" - } - }, - "title": "DelayAuthKeyModelNew", - "type": "object" - }, - "DelayAutoTransferRequestModel": { - "properties": { - "TimeInSeconds": { - "description": " 延迟接收转账的时间,单位为秒", - "example": "0", - "format": "int32", - "type": "integer" - } - }, - "title": "DelayAutoTransferRequestModel", - "type": "object" - }, - "DelayRedRequestModel": { - "properties": { - "TimeInSeconds": { - "description": " 延迟领取红包的时间,单位为秒", - "example": "0", - "format": "int32", - "type": "integer" - } - }, - "title": "DelayRedRequestModel", - "type": "object" - }, - "DeleteAuthKeyModel": { - "properties": { - "Key": { - "description": " 要删除的 AuthKey", - "example": "", - "type": "string" - }, - "Opt": { - "description": " 删除操作 0:仅删除授权码 1:删除授权码相关的所有数据", - "format": "int", - "type": "integer" - } - }, - "title": "DeleteAuthKeyModel", - "type": "object" - }, - "DeviceIdLoginModel": { - "properties": { - "DeviceInfo": { - "$ref": "#/definitions/DeviceInfo", - "description": " 设备信息" - }, - "LoginData": { - "description": " 62 数据/A16 数据", - "example": "", - "type": "string" - }, - "Password": { - "description": " 微信密码", - "example": "", - "type": "string" - }, - "Proxy": { - "description": " socks代理,例如:socks5://username:password@ipv4:port", - "example": "", - "type": "string" - }, - "Ticket": { - "description": " SMS短信验证码", - "example": "", - "type": "string" - }, - "Type": { - "format": "int", - "type": "integer" - }, - "UserName": { - "description": " 手机号", - "example": "", - "type": "string" - } - }, - "title": "DeviceIdLoginModel", - "type": "object" - }, - "DeviceInfo": { - "properties": { - "AndroidId": { - "example": "", - "type": "string" - }, - "ImeI": { - "example": "", - "type": "string" - }, - "Manufacturer": { - "example": "", - "type": "string" - }, - "Model": { - "example": "", - "type": "string" - } - }, - "title": "DeviceInfo", - "type": "object" - }, - "DownMediaModel": { - "properties": { - "AesKey": { - "example": "", - "type": "string" - }, - "FileType": { - "format": "uint32", - "type": "integer" - }, - "FileURL": { - "example": "", - "type": "string" - } - }, - "title": "DownMediaModel", - "type": "object" - }, - "DownloadEmojiModel": { - "properties": { - "xml_content": { - "description": " msg_type=47的消息xml内容", - "example": "", - "type": "string" - } - }, - "title": "DownloadEmojiModel", - "type": "object" - }, - "DownloadMediaModel": { - "properties": { - "Key": { - "example": "", - "type": "string" - }, - "URL": { - "example": "", - "type": "string" - } - }, - "title": "DownloadMediaModel", - "type": "object" - }, - "DownloadParam": { - "properties": { - "CompressType": { - "description": " 下载图片时,数据压缩类型(默认为0即可)", - "format": "int", - "type": "integer" - }, - "FromUserName": { - "description": " 下载图片时,图片消息的发送者", - "example": "", - "type": "string" - }, - "MsgId": { - "description": " 消息ID(注意是msg_id 不是new_msg_id)", - "format": "uint32", - "type": "integer" - }, - "Section": { - "$ref": "#/definitions/DataSection", - "description": " 当前要获取的数据分包" - }, - "ToUserName": { - "description": " 下载图片时,图片消息的接收者", - "example": "", - "type": "string" - }, - "TotalLen": { - "description": " 下载数据的总长度", - "format": "int", - "type": "integer" - } - }, - "title": "DownloadParam", - "type": "object" - }, - "DownloadQWImageModel": { - "properties": { - "xml": { - "example": "", - "type": "string" - } - }, - "title": "DownloadQWImageModel", - "type": "object" - }, - "DownloadVoiceModel": { - "properties": { - "Bufid": { - "example": "", - "type": "string" - }, - "Length": { - "format": "int", - "type": "integer" - }, - "NewMsgId": { - "example": "", - "type": "string" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "DownloadVoiceModel", - "type": "object" - }, - "Enc": { - "properties": { - "Key": { - "example": "", - "type": "string" - }, - "Value": { - "format": "uint32", - "type": "integer" - } - }, - "title": "Enc", - "type": "object" - }, - "ExtDeviceLoginModel": { - "properties": { - "QrConnect": { - "example": "", - "type": "string" - } - }, - "title": "ExtDeviceLoginModel", - "type": "object" - }, - "FavInfoModel": { - "properties": { - "FavId": { - "format": "uint32", - "type": "integer" - }, - "KeyBuf": { - "example": "", - "type": "string" - } - }, - "title": "FavInfoModel", - "type": "object" - }, - "FavoriteForwardRequestModel": { - "properties": { - "EnableFavoriteForward": { - "description": " 是否开启收藏转发", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Groups": { - "description": " 设置分组,多个用逗号隔开", - "example": "", - "type": "string" - }, - "IsBlockAuthor": { - "description": " 是否屏蔽作者", - "example": "1", - "format": "int32", - "type": "integer" - }, - "IsBlockGroup": { - "description": " 是否屏蔽组", - "example": "1", - "format": "int32", - "type": "integer" - } - }, - "title": "FavoriteForwardRequestModel", - "type": "object" - }, - "FinderFollowModel": { - "properties": { - "Cook": { - "example": "", - "type": "string" - }, - "FinderUserName": { - "example": "", - "type": "string" - }, - "OpType": { - "format": "int32", - "type": "integer" - }, - "PosterUsername": { - "example": "", - "type": "string" - }, - "RefObjectId": { - "example": "", - "type": "string" - }, - "Userver": { - "format": "int32", - "type": "integer" - } - }, - "title": "FinderFollowModel", - "type": "object" - }, - "FinderSearchModel": { - "properties": { - "Index": { - "format": "uint32", - "type": "integer" - }, - "UserKey": { - "example": "", - "type": "string" - }, - "Userver": { - "format": "int32", - "type": "integer" - }, - "Uuid": { - "example": "", - "type": "string" - } - }, - "title": "FinderSearchModel", - "type": "object" - }, - "FinderUserPrepareModel": { - "properties": { - "Userver": { - "format": "int32", - "type": "integer" - } - }, - "title": "FinderUserPrepareModel", - "type": "object" - }, - "FollowGHModel": { - "properties": { - "GHList": { - "items": { - "$ref": "#/definitions/VerifyUserItem" - }, - "type": "array" - } - }, - "title": "FollowGHModel", - "type": "object" - }, - "ForwardImageItem": { - "properties": { - "AesKey": { - "example": "", - "type": "string" - }, - "CdnMidImgSize": { - "format": "int32", - "type": "integer" - }, - "CdnMidImgUrl": { - "example": "", - "type": "string" - }, - "CdnThumbImgSize": { - "format": "int32", - "type": "integer" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "ForwardImageItem", - "type": "object" - }, - "ForwardMessageModel": { - "properties": { - "ForwardImageList": { - "items": { - "$ref": "#/definitions/ForwardImageItem" - }, - "type": "array" - }, - "ForwardVideoList": { - "items": { - "$ref": "#/definitions/ForwardVideoItem" - }, - "type": "array" - } - }, - "title": "ForwardMessageModel", - "type": "object" - }, - "ForwardVideoItem": { - "properties": { - "AesKey": { - "example": "", - "type": "string" - }, - "CdnThumbLength": { - "format": "int", - "type": "integer" - }, - "CdnVideoUrl": { - "example": "", - "type": "string" - }, - "Length": { - "format": "int", - "type": "integer" - }, - "PlayLength": { - "format": "int", - "type": "integer" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "ForwardVideoItem", - "type": "object" - }, - "GenAuthKeyModel": { - "properties": { - "Count": { - "description": " 要生成 AuthKey 的个数; Count小于1默认设置为1", - "example": "1", - "format": "int", - "type": "integer" - }, - "Days": { - "description": " AuthKey 的过期天数; Days小于1默认设置为30", - "example": "30", - "format": "int", - "type": "integer" - } - }, - "title": "GenAuthKeyModel", - "type": "object" - }, - "GenAuthKeyTypeModel": { - "properties": { - "Count": { - "description": " 要生成 AuthKey 的个数; Count小于1默认设置为1", - "example": "1", - "format": "int", - "type": "integer" - }, - "Type": { - "description": " 类型 1日 7 周 30月 90季 180 半年 365年 30000永久(数字为标识,非准确天数)", - "example": "1", - "format": "int", - "type": "integer" - } - }, - "title": "GenAuthKeyTypeModel", - "type": "object" - }, - "GeneratePayQCodeModel": { - "properties": { - "Money": { - "description": " 金额(单位为分), 999 即为 9.99 元", - "example": "", - "type": "string" - }, - "Name": { - "description": " 收款备注", - "example": "", - "type": "string" - } - }, - "title": "GeneratePayQCodeModel", - "type": "object" - }, - "GetA8KeyRequestModel": { - "properties": { - "OpCode": { - "format": "uint32", - "type": "integer" - }, - "ReqUrl": { - "example": "", - "type": "string" - }, - "Scene": { - "format": "uint32", - "type": "integer" - } - }, - "title": "GetA8KeyRequestModel", - "type": "object" - }, - "GetChatroomMemberDetailModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - } - }, - "title": "GetChatroomMemberDetailModel", - "type": "object" - }, - "GetChatroomQrCodeModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - } - }, - "title": "GetChatroomQrCodeModel", - "type": "object" - }, - "GetContactListModel": { - "properties": { - "CurrentChatRoomContactSeq": { - "format": "uint32", - "type": "integer" - }, - "CurrentWxcontactSeq": { - "format": "uint32", - "type": "integer" - } - }, - "title": "GetContactListModel", - "type": "object" - }, - "GetFriendRelationModel": { - "properties": { - "UserName": { - "example": "", - "type": "string" - } - }, - "title": "GetFriendRelationModel", - "type": "object" - }, - "GetIdDetailModel": { - "properties": { - "BlackList": { - "items": { - "type": "string" - }, - "type": "array" - }, - "Id": { - "example": "", - "type": "string" - }, - "Location": { - "$ref": "#/definitions/baseinfo.Location" - }, - "LocationVal": { - "format": "int64", - "type": "integer" - } - }, - "title": "GetIdDetailModel", - "type": "object" - }, - "GetLoginQrCodeModel": { - "properties": { - "Check": { - "description": " 修改代理时(SetProxy接口) 是否发送检测代理请求(可能导致请求超时)", - "example": "false", - "type": "boolean" - }, - "IpadOrmac": { - "example": "", - "type": "string" - }, - "Proxy": { - "description": " socks代理,例如:socks5://username:password@ipv4:port", - "example": "", - "type": "string" - } - }, - "title": "GetLoginQrCodeModel", - "type": "object" - }, - "GetMpA8KeyModel": { - "properties": { - "Opcode": { - "format": "uint32", - "type": "integer" - }, - "Scene": { - "format": "int64", - "type": "integer" - }, - "Url": { - "example": "", - "type": "string" - } - }, - "title": "GetMpA8KeyModel", - "type": "object" - }, - "GetMpHistoryMsgModel": { - "properties": { - "Url": { - "example": "", - "type": "string" - } - }, - "title": "GetMpHistoryMsgModel", - "type": "object" - }, - "GetQrCodeModel": { - "properties": { - "Recover": { - "description": " 保持默认值, 无需修改", - "type": "boolean" - }, - "Style": { - "description": " 个人二维码样式: 可设置为8, 其余自行探索", - "example": "8", - "format": "uint32", - "type": "integer" - } - }, - "title": "GetQrCodeModel", - "type": "object" - }, - "GetRedPacketList": { - "properties": { - "HongBaoItem": { - "$ref": "#/definitions/HongBaoURLItem" - }, - "Limit": { - "format": "int64", - "type": "integer" - }, - "NativeURL": { - "example": "", - "type": "string" - }, - "Offset": { - "format": "int64", - "type": "integer" - } - }, - "title": "GetRedPacketList", - "type": "object" - }, - "GetSnsInfoModel": { - "properties": { - "FirstPageMD5": { - "example": "", - "type": "string" - }, - "MaxID": { - "format": "uint64", - "type": "integer" - }, - "UserName": { - "example": "", - "type": "string" - } - }, - "title": "GetSnsInfoModel", - "type": "object" - }, - "GetSyncMsgModel": { - "properties": { - "Key": { - "example": "", - "type": "string" - } - }, - "title": "GetSyncMsgModel", - "type": "object" - }, - "GroupListModel": { - "properties": { - "Key": { - "example": "", - "type": "string" - } - }, - "title": "GroupListModel", - "type": "object" - }, - "GroupMassMsgImageModel": { - "properties": { - "ImageBase64": { - "example": "", - "type": "string" - }, - "ToUserName": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "GroupMassMsgImageModel", - "type": "object" - }, - "GroupMassMsgTextModel": { - "properties": { - "Content": { - "example": "", - "type": "string" - }, - "ToUserName": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "GroupMassMsgTextModel", - "type": "object" - }, - "HongBaoItem": { - "properties": { - "DequeueAtMs": { - "format": "int64", - "type": "integer" - }, - "EnqueueAtMs": { - "format": "int64", - "type": "integer" - }, - "FromUserName": { - "example": "", - "type": "string" - }, - "IsGroup": { - "description": " 默认 1", - "format": "uint32", - "type": "integer" - }, - "Limit": { - "format": "int64", - "type": "integer" - }, - "NativeURL": { - "example": "", - "type": "string" - }, - "RecvAtMs": { - "format": "int64", - "type": "integer" - }, - "SceneID": { - "format": "uint32", - "type": "integer" - }, - "SessionUserName": { - "description": " 群ID或个人ID", - "example": "", - "type": "string" - }, - "URLItem": { - "$ref": "#/definitions/HongBaoURLItem" - } - }, - "title": "HongBaoItem", - "type": "object" - }, - "HongBaoURLItem": { - "properties": { - "ChannelID": { - "example": "", - "type": "string" - }, - "MsgType": { - "example": "", - "type": "string" - }, - "SceneID": { - "format": "uint32", - "type": "integer" - }, - "SendID": { - "example": "", - "type": "string" - }, - "SendUserName": { - "example": "", - "type": "string" - }, - "ShowSourceMac": { - "example": "", - "type": "string" - }, - "ShowWxPayTitle": { - "example": "", - "type": "string" - }, - "Sign": { - "example": "", - "type": "string" - }, - "Ver": { - "example": "", - "type": "string" - } - }, - "title": "HongBaoURLItem", - "type": "object" - }, - "InviteChatroomMembersModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "UserList": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "InviteChatroomMembersModel", - "type": "object" - }, - "KeywordAutoReplyRequestModel": { - "properties": { - "Enable": { - "description": " 是否开启关键词自动回复", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Keywords": { - "description": " 关键词设置", - "items": { - "$ref": "#/definitions/ReplyKeywordsItem" - }, - "type": "array" - }, - "Mode": { - "description": " 模式,1-仅回复设置群,0-不回复设置群", - "example": "1", - "format": "int32", - "type": "integer" - }, - "PrivateReply": { - "description": " 是否回复私聊", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Rooms": { - "description": " 设置的群", - "example": "", - "type": "string" - } - }, - "title": "KeywordAutoReplyRequestModel", - "type": "object" - }, - "KeywordAvoidanceRequestModel": { - "properties": { - "Enable": { - "description": " 是否开启关键字包不抢", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Keywords": { - "description": " 设置关键字(多个用逗号隔开)", - "example": "", - "type": "string" - } - }, - "title": "KeywordAvoidanceRequestModel", - "type": "object" - }, - "KeywordKickRequestModel": { - "properties": { - "Enable": { - "description": " 是否开启关键词踢人", - "example": "1", - "format": "int32", - "type": "integer" - }, - "IsCardKick": { - "description": " 是否踢发名片的人", - "example": "1", - "format": "int32", - "type": "integer" - }, - "IsImageQRCodeKick": { - "description": " 是否踢发图片二维码的人", - "example": "1", - "format": "int32", - "type": "integer" - }, - "IsLinkKick": { - "description": " 是否踢发链接的人", - "example": "1", - "format": "int32", - "type": "integer" - }, - "IsMiniProgramKick": { - "description": " 是否踢发小程序的人", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Keywords": { - "description": " 触发的关键词(多条用逗号分隔)", - "example": "", - "type": "string" - }, - "Mode": { - "description": " 模式,1-仅踢设置群,0-不踢设置群", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Rooms": { - "description": " 设置的群", - "example": "", - "type": "string" - } - }, - "title": "KeywordKickRequestModel", - "type": "object" - }, - "LabelModel": { - "properties": { - "LabelId": { - "example": "", - "type": "string" - }, - "LabelNameList": { - "items": { - "type": "string" - }, - "type": "array" - }, - "UserLabelList": { - "items": { - "$ref": "#/definitions/baseinfo.UserLabelInfoItem" - }, - "type": "array" - } - }, - "title": "LabelModel", - "type": "object" - }, - "Location": { - "properties": { - "City": { - "example": "", - "type": "string" - }, - "Latitude": { - "example": "", - "type": "string" - }, - "Longitude": { - "example": "", - "type": "string" - }, - "PoiAddress": { - "example": "", - "type": "string" - }, - "PoiClassifyID": { - "example": "", - "type": "string" - }, - "PoiClassifyType": { - "format": "uint32", - "type": "integer" - }, - "PoiName": { - "example": "", - "type": "string" - } - }, - "title": "Location", - "type": "object" - }, - "Media": { - "properties": { - "Description": { - "example": "", - "type": "string" - }, - "Enc": { - "$ref": "#/definitions/Enc" - }, - "ID": { - "format": "uint64", - "type": "integer" - }, - "Private": { - "format": "uint32", - "type": "integer" - }, - "Size": { - "$ref": "#/definitions/Size" - }, - "SubType": { - "format": "uint32", - "type": "integer" - }, - "Thumb": { - "$ref": "#/definitions/Thumb" - }, - "Title": { - "example": "", - "type": "string" - }, - "Type": { - "format": "uint32", - "type": "integer" - }, - "URL": { - "$ref": "#/definitions/URL" - }, - "UserData": { - "example": "", - "type": "string" - }, - "VideoDuration": { - "format": "double", - "type": "number" - }, - "VideoSize": { - "$ref": "#/definitions/VideoSize" - } - }, - "title": "Media", - "type": "object" - }, - "MediaList": { - "properties": { - "Media": { - "items": { - "$ref": "#/definitions/Media" - }, - "type": "array" - } - }, - "title": "MediaList", - "type": "object" - }, - "MessageCallbackConfigModel": { - "properties": { - "CallbackURL": { - "description": " 回调URL", - "example": "", - "type": "string" - }, - "Enabled": { - "description": " 是否启用回调", - "type": "boolean" - } - }, - "title": "MessageCallbackConfigModel", - "type": "object" - }, - "MessageCallbackPayload": { - "properties": { - "content": { - "description": " 消息内容", - "example": "", - "type": "string" - }, - "create_time": { - "description": " 消息创建时间", - "format": "int64", - "type": "integer" - }, - "from_user": { - "description": " 发送者", - "example": "", - "type": "string" - }, - "is_group": { - "description": " 是否群消息", - "type": "boolean" - }, - "message_data": { - "$ref": "#/definitions/interface{}", - "description": " 消息数据" - }, - "message_id": { - "description": " 消息ID", - "example": "", - "type": "string" - }, - "message_type": { - "description": " 消息类型", - "format": "int", - "type": "integer" - }, - "to_user": { - "description": " 接收者", - "example": "", - "type": "string" - } - }, - "title": "MessageCallbackPayload", - "type": "object" - }, - "MessageForwardingRequestModel": { - "properties": { - "Enable": { - "description": " 是否开启消息转发", - "example": "1", - "format": "int32", - "type": "integer" - }, - "EndTime": { - "description": " 转发时间段,结束时间", - "example": "", - "type": "string" - }, - "ForwardRooms": { - "description": " 设置的转发群", - "example": "", - "type": "string" - }, - "Lecturers": { - "description": " 添加的讲师", - "example": "", - "type": "string" - }, - "MainRoom": { - "description": " 设置的主讲群", - "example": "", - "type": "string" - }, - "StartTime": { - "description": " 转发时间段,开始时间", - "example": "", - "type": "string" - } - }, - "title": "MessageForwardingRequestModel", - "type": "object" - }, - "MessageItem": { - "properties": { - "AtWxIDList": { - "description": " 发送艾特消息时的 wxid 列表", - "items": { - "type": "string" - }, - "type": "array" - }, - "ImageContent": { - "description": " 图片类型消息时图片的 base64 编码", - "example": "", - "type": "string" - }, - "MsgType": { - "description": "1 Text 2 Image", - "format": "int", - "type": "integer" - }, - "TextContent": { - "description": " 文本类型消息时内容", - "example": "", - "type": "string" - }, - "ToUserName": { - "description": " 接收者 wxid", - "example": "", - "type": "string" - } - }, - "title": "MessageItem", - "type": "object" - }, - "MessageNoShowParam": { - "properties": { - "ToUserName": { - "description": " 消息接收者", - "example": "", - "type": "string" - } - }, - "title": "MessageNoShowParam", - "type": "object" - }, - "ModifyCmdStatusModel": { - "properties": { - "Key": { - "example": "101", - "type": "string" - }, - "Params1": { - "example": "", - "type": "string" - }, - "Params2": { - "example": "", - "type": "string" - }, - "Params3": { - "example": "", - "type": "string" - }, - "Params4": { - "example": "", - "type": "string" - }, - "Value": { - "example": "1", - "format": "int", - "type": "integer" - }, - "ValueStr": { - "example": "", - "type": "string" - } - }, - "title": "ModifyCmdStatusModel", - "type": "object" - }, - "ModifyCmdStatusModelNew": { - "properties": { - "Key": { - "example": "101", - "type": "string" - }, - "Value": { - "example": "1", - "format": "int", - "type": "integer" - }, - "ValueStr": { - "example": "", - "type": "string" - } - }, - "title": "ModifyCmdStatusModelNew", - "type": "object" - }, - "ModifyUserInfo": { - "properties": { - "City": { - "example": "", - "type": "string" - }, - "Country": { - "example": "", - "type": "string" - }, - "InitFlag": { - "format": "uint32", - "type": "integer" - }, - "NickName": { - "example": "", - "type": "string" - }, - "Province": { - "example": "", - "type": "string" - }, - "Sex": { - "format": "uint32", - "type": "integer" - }, - "Signature": { - "example": "", - "type": "string" - } - }, - "title": "ModifyUserInfo", - "type": "object" - }, - "MomentsPostRequestModel": { - "properties": { - "Content": { - "description": " 朋友圈内容", - "example": "", - "type": "string" - }, - "Groups": { - "description": " 设置分组,多个用逗号隔开", - "example": "", - "type": "string" - }, - "IsBlock": { - "description": " 发圈时屏蔽组", - "example": "1", - "format": "int32", - "type": "integer" - }, - "VideoURL": { - "description": " 视频,最大500M(最多上传1个)", - "example": "", - "type": "string" - } - }, - "title": "MomentsPostRequestModel", - "type": "object" - }, - "MomentsRequestModel": { - "properties": { - "Groups": { - "description": " 设置分组,多个用逗号隔开", - "example": "", - "type": "string" - }, - "IsBlock": { - "description": " 发圈时屏蔽组", - "example": "1", - "format": "int32", - "type": "integer" - }, - "MomentContent": { - "description": " 朋友圈内容", - "example": "", - "type": "string" - }, - "MomentImages": { - "description": " 朋友圈图片(最多上传9张,图片路径或链接用逗号隔开)", - "example": "", - "type": "string" - }, - "MomentType": { - "description": " 发圈类型,1-文字,3-图片", - "example": "1", - "format": "int32", - "type": "integer" - }, - "ScheduledTime": { - "description": " 预约发圈时间", - "example": "", - "type": "string" - }, - "Status": { - "description": " 状态,0-未发布,1-已发布,-1-发布失败", - "example": "0", - "format": "int32", - "type": "integer" - } - }, - "title": "MomentsRequestModel", - "type": "object" - }, - "MoveContractModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "Val": { - "format": "uint32", - "type": "integer" - } - }, - "title": "MoveContractModel", - "type": "object" - }, - "OpenRedEnvelopesModel": { - "properties": { - "NativeUrl": { - "example": "", - "type": "string" - } - }, - "title": "OpenRedEnvelopesModel", - "type": "object" - }, - "PeopleNearbyModel": { - "properties": { - "Latitude": { - "format": "double", - "type": "number" - }, - "Longitude": { - "format": "double", - "type": "number" - } - }, - "title": "PeopleNearbyModel", - "type": "object" - }, - "PhoneLoginModel": { - "properties": { - "Url": { - "example": "", - "type": "string" - } - }, - "title": "PhoneLoginModel", - "type": "object" - }, - "QRConnectAuthorizeModel": { - "properties": { - "QrUrl": { - "example": "", - "type": "string" - } - }, - "title": "QRConnectAuthorizeModel", - "type": "object" - }, - "QWAcceptChatRoomModel": { - "properties": { - "Link": { - "example": "", - "type": "string" - }, - "Opcode": { - "format": "uint32", - "type": "integer" - } - }, - "title": "QWAcceptChatRoomModel", - "type": "object" - }, - "QWAddChatRoomMemberModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "ToUserName": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "QWAddChatRoomMemberModel", - "type": "object" - }, - "QWAdminAcceptJoinChatRoomSetModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "P": { - "format": "int64", - "type": "integer" - } - }, - "title": "QWAdminAcceptJoinChatRoomSetModel", - "type": "object" - }, - "QWApplyAddContactModel": { - "properties": { - "Content": { - "example": "", - "type": "string" - }, - "UserName": { - "example": "", - "type": "string" - }, - "V1": { - "example": "", - "type": "string" - } - }, - "title": "QWApplyAddContactModel", - "type": "object" - }, - "QWChatRoomTransferOwnerModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "QWChatRoomTransferOwnerModel", - "type": "object" - }, - "QWContactModel": { - "properties": { - "ChatRoom": { - "example": "", - "type": "string" - }, - "T": { - "example": "", - "type": "string" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "QWContactModel", - "type": "object" - }, - "QWCreateModel": { - "properties": { - "ToUserName": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "QWCreateModel", - "type": "object" - }, - "QWModChatRoomNameModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "Name": { - "example": "", - "type": "string" - } - }, - "title": "QWModChatRoomNameModel", - "type": "object" - }, - "QWRemarkModel": { - "properties": { - "Name": { - "example": "", - "type": "string" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "QWRemarkModel", - "type": "object" - }, - "QWSyncChatRoomModel": { - "properties": { - "Key": { - "example": "", - "type": "string" - } - }, - "title": "QWSyncChatRoomModel", - "type": "object" - }, - "ReadParam": { - "properties": { - "Url": { - "description": " 公众号文章URL", - "example": "", - "type": "string" - } - }, - "title": "ReadParam", - "type": "object" - }, - "RedPacket": { - "properties": { - "Amount": { - "description": " 每个红包的金额(单位为分, 最小为100); 总金额为 Amount*Count", - "format": "uint32", - "type": "integer" - }, - "Content": { - "description": " 红包的备注内容(祝福语)", - "example": "", - "type": "string" - }, - "Count": { - "description": " 红包个数(最少为1)", - "format": "uint32", - "type": "integer" - }, - "From": { - "description": " InAway(0:群红包; 1:个人红包)", - "format": "uint32", - "type": "integer" - }, - "RedType": { - "description": " 红包类型(0 普通红包; 1 拼手气红包; ? 专属红包)", - "format": "uint32", - "type": "integer" - }, - "Username": { - "description": " 红包接收者; wxid 或 群ID", - "example": "", - "type": "string" - } - }, - "title": "RedPacket", - "type": "object" - }, - "ReplyCommentItem": { - "properties": { - "NickName": { - "description": " 发表评论的昵称", - "example": "", - "type": "string" - }, - "OpType": { - "description": " 操作类型:评论/点赞", - "format": "uint32", - "type": "integer" - }, - "Source": { - "description": " source", - "format": "uint32", - "type": "integer" - }, - "UserName": { - "description": " 评论的微信ID", - "example": "", - "type": "string" - } - }, - "title": "ReplyCommentItem", - "type": "object" - }, - "ReplyKeywordsItem": { - "properties": { - "Content": { - "description": " 回复的内容", - "example": "", - "type": "string" - }, - "Keyword": { - "description": " 触发的关键词", - "example": "", - "type": "string" - }, - "MsgType": { - "description": " 收到消息时的类型:1-文本 3-图片 24-笔记 33-小程序 42-名片 49-链接", - "format": "int32", - "type": "integer" - }, - "NewMsgId": { - "description": " 新消息ID 引用了文件助手某条消息时用这个字段", - "example": "", - "type": "string" - }, - "SendType": { - "description": " 回复的类型,发送类型 1-文本 3-图片 49-笔记|链接 2002-小程序 42-名片", - "format": "int32", - "type": "integer" - } - }, - "title": "ReplyKeywordsItem", - "type": "object" - }, - "ResponseResult": { - "properties": { - "Code": { - "format": "int64", - "type": "integer" - }, - "Data": { - "$ref": "#/definitions/interface{}" - }, - "Data62": { - "example": "", - "type": "string" - }, - "Debug": { - "example": "", - "type": "string" - }, - "Message": { - "example": "", - "type": "string" - }, - "Success": { - "type": "boolean" - } - }, - "title": "ResponseResult", - "type": "object" - }, - "ResponseResult2": { - "properties": { - "Code": { - "format": "int64", - "type": "integer" - }, - "Data": { - "$ref": "#/definitions/interface{}" - }, - "Data62": { - "example": "", - "type": "string" - }, - "DeviceId": { - "example": "", - "type": "string" - }, - "Message": { - "example": "", - "type": "string" - }, - "Success": { - "type": "boolean" - } - }, - "title": "ResponseResult2", - "type": "object" - }, - "RevokeMsgModel": { - "properties": { - "ClientImgIdStr": { - "description": " 保存clientImgId的原始字符串值", - "example": "", - "type": "string" - }, - "ClientMsgId": { - "format": "uint64", - "type": "integer" - }, - "CreateTime": { - "format": "uint64", - "type": "integer" - }, - "IsImage": { - "description": " 标识是否为图片消息", - "type": "boolean" - }, - "NewMsgId": { - "example": "", - "type": "string" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "RevokeMsgModel", - "type": "object" - }, - "ScanIntoUrlGroupModel": { - "properties": { - "Url": { - "example": "", - "type": "string" - } - }, - "title": "ScanIntoUrlGroupModel", - "type": "object" - }, - "SearchContactModel": { - "properties": { - "FromScene": { - "format": "uint64", - "type": "integer" - }, - "Tg": { - "example": "", - "type": "string" - }, - "UserName": { - "example": "", - "type": "string" - } - }, - "title": "SearchContactModel", - "type": "object" - }, - "SearchContactRequestModel": { - "properties": { - "FromScene": { - "format": "uint32", - "type": "integer" - }, - "OpCode": { - "description": " 操作类型", - "format": "uint32", - "type": "integer" - }, - "SearchScene": { - "description": " 搜索场景", - "format": "uint32", - "type": "integer" - }, - "UserName": { - "description": " 要搜索的内容(微信号、手机号、QQ号等)", - "example": "", - "type": "string" - } - }, - "title": "SearchContactRequestModel", - "type": "object" - }, - "SendChangePwdRequestModel": { - "properties": { - "newPass": { - "example": "", - "type": "string" - }, - "oldPass": { - "description": " 确保json标签是`oldPass`", - "example": "", - "type": "string" - }, - "opCode": { - "format": "uint32", - "type": "integer" - } - }, - "title": "SendChangePwdRequestModel", - "type": "object" - }, - "SendEmojiItem": { - "properties": { - "EmojiMd5": { - "example": "", - "type": "string" - }, - "EmojiSize": { - "format": "int32", - "type": "integer" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "SendEmojiItem", - "type": "object" - }, - "SendEmojiMessageModel": { - "properties": { - "EmojiList": { - "items": { - "$ref": "#/definitions/SendEmojiItem" - }, - "type": "array" - } - }, - "title": "SendEmojiMessageModel", - "type": "object" - }, - "SendFavItemCircle": { - "properties": { - "BlackList": { - "items": { - "type": "string" - }, - "type": "array" - }, - "FavItemID": { - "format": "uint32", - "type": "integer" - }, - "Location": { - "$ref": "#/definitions/baseinfo.Location" - }, - "LocationVal": { - "format": "int64", - "type": "integer" - }, - "SourceID": { - "example": "", - "type": "string" - } - }, - "title": "SendFavItemCircle", - "type": "object" - }, - "SendMessageModel": { - "properties": { - "MsgItem": { - "description": " 消息体数组", - "items": { - "$ref": "#/definitions/MessageItem" - }, - "type": "array" - } - }, - "title": "SendMessageModel", - "type": "object" - }, - "SendModifyRemarkRequestModel": { - "properties": { - "RemarkName": { - "example": "", - "type": "string" - }, - "UserName": { - "example": "", - "type": "string" - } - }, - "title": "SendModifyRemarkRequestModel", - "type": "object" - }, - "SendPatModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "Scene": { - "format": "int64", - "type": "integer" - }, - "ToUserName": { - "example": "", - "type": "string" - } - }, - "title": "SendPatModel", - "type": "object" - }, - "SendSnsCommentRequestModel": { - "properties": { - "SnsCommentList": { - "items": { - "$ref": "#/definitions/SnsCommentItem" - }, - "type": "array" - }, - "Tx": { - "type": "boolean" - } - }, - "title": "SendSnsCommentRequestModel", - "type": "object" - }, - "SendSnsObjectOpRequestModel": { - "properties": { - "SnsObjectOpList": { - "items": { - "$ref": "#/definitions/SnsObjectOpItem" - }, - "type": "array" - } - }, - "title": "SendSnsObjectOpRequestModel", - "type": "object" - }, - "SendUploadVoiceRequestModel": { - "properties": { - "ToUserName": { - "example": "", - "type": "string" - }, - "VoiceData": { - "example": "", - "type": "string" - }, - "VoiceFormat": { - "format": "int32", - "type": "integer" - }, - "VoiceSecond,": { - "format": "int32", - "type": "integer" - } - }, - "title": "SendUploadVoiceRequestModel", - "type": "object" - }, - "SessionidQRParam": { - "properties": { - "Code": { - "format": "int64", - "type": "integer" - }, - "Data": { - "$ref": "#/definitions/interface{}" - }, - "Data62": { - "example": "", - "type": "string" - }, - "DeviceId": { - "example": "", - "type": "string" - }, - "Message": { - "example": "", - "type": "string" - }, - "Success": { - "type": "boolean" - } - }, - "title": "SessionidQRParam", - "type": "object" - }, - "SetBackgroundImageModel": { - "properties": { - "Url": { - "example": "", - "type": "string" - } - }, - "title": "SetBackgroundImageModel", - "type": "object" - }, - "SetChatroomAccessVerifyModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "Enable": { - "type": "boolean" - } - }, - "title": "SetChatroomAccessVerifyModel", - "type": "object" - }, - "SetFriendCircleDaysModel": { - "properties": { - "Function": { - "format": "uint32", - "type": "integer" - }, - "Value": { - "format": "uint32", - "type": "integer" - } - }, - "title": "SetFriendCircleDaysModel", - "type": "object" - }, - "SetSendPatModel": { - "properties": { - "Value": { - "example": "", - "type": "string" - } - }, - "title": "SetSendPatModel", - "type": "object" - }, - "ShareCardParam": { - "properties": { - "CardAlias": { - "description": " 名片别名(发送公众号名片时留空)", - "example": "", - "type": "string" - }, - "CardFlag": { - "description": " 名片CertFlag(0:个人名片 24:公众号名片)", - "format": "int", - "type": "integer" - }, - "CardNickName": { - "description": " 名片昵称", - "example": "", - "type": "string" - }, - "CardWxId": { - "description": " 名片wxid", - "example": "", - "type": "string" - }, - "ToUserName": { - "description": " 消息接收者", - "example": "", - "type": "string" - } - }, - "title": "ShareCardParam", - "type": "object" - }, - "ShopLoginConfirmModel": { - "properties": { - "url": { - "description": " 登录二维码URL", - "example": "", - "type": "string" - } - }, - "title": "ShopLoginConfirmModel", - "type": "object" - }, - "Size": { - "properties": { - "Height": { - "example": "", - "type": "string" - }, - "TotalSize": { - "example": "", - "type": "string" - }, - "Width": { - "example": "", - "type": "string" - } - }, - "title": "Size", - "type": "object" - }, - "SlideTicketModel": { - "properties": { - "data62": { - "description": " 验证码", - "example": "", - "type": "string" - }, - "randstr": { - "$ref": "#/definitions/bingding:\"required\"`" - }, - "slideticket": { - "example": "", - "type": "string" - }, - "ticket": { - "description": " 验证码", - "example": "", - "type": "string" - } - }, - "title": "SlideTicketModel", - "type": "object" - }, - "SnsCommentItem": { - "properties": { - "Content": { - "description": " 评论内容", - "example": "", - "type": "string" - }, - "CreateTime": { - "description": " 创建时间", - "format": "uint32", - "type": "integer" - }, - "ItemID": { - "description": " 朋友圈项ID", - "example": "", - "type": "string" - }, - "OpType": { - "description": " 操作类型:评论/点赞", - "format": "uint32", - "type": "integer" - }, - "ReplyCommentID": { - "description": " 回复的评论ID", - "format": "uint32", - "type": "integer" - }, - "ReplyItem": { - "$ref": "#/definitions/ReplyCommentItem", - "description": " 回覆的评论项" - }, - "ToUserName": { - "description": " 好友微信ID", - "example": "", - "type": "string" - } - }, - "title": "SnsCommentItem", - "type": "object" - }, - "SnsLocationInfoModel": { - "properties": { - "City": { - "example": "", - "type": "string" - }, - "Latitude": { - "example": "", - "type": "string" - }, - "Longitude": { - "example": "", - "type": "string" - }, - "PoiAddress": { - "example": "", - "type": "string" - }, - "PoiClassifyID": { - "example": "", - "type": "string" - }, - "PoiClassifyType": { - "format": "uint32", - "type": "integer" - }, - "PoiClickableStatus": { - "format": "uint32", - "type": "integer" - }, - "PoiInfoURL": { - "example": "", - "type": "string" - }, - "PoiName": { - "example": "", - "type": "string" - }, - "PoiScale": { - "format": "int32", - "type": "integer" - } - }, - "title": "SnsLocationInfoModel", - "type": "object" - }, - "SnsMediaItemModel": { - "properties": { - "Description": { - "example": "", - "type": "string" - }, - "ID": { - "format": "uint32", - "type": "integer" - }, - "MD5": { - "example": "", - "type": "string" - }, - "Private": { - "format": "uint32", - "type": "integer" - }, - "SizeHeight": { - "example": "", - "type": "string" - }, - "SizeWidth": { - "example": "", - "type": "string" - }, - "SubType": { - "format": "uint32", - "type": "integer" - }, - "ThumType": { - "example": "", - "type": "string" - }, - "Thumb": { - "example": "", - "type": "string" - }, - "Title": { - "example": "", - "type": "string" - }, - "TotalSize": { - "example": "", - "type": "string" - }, - "Type": { - "format": "uint32", - "type": "integer" - }, - "URL": { - "example": "", - "type": "string" - }, - "URLType": { - "example": "", - "type": "string" - }, - "UserData": { - "example": "", - "type": "string" - }, - "VideoDuration": { - "format": "double", - "type": "number" - }, - "VideoHeight": { - "example": "", - "type": "string" - }, - "VideoMD5": { - "example": "", - "type": "string" - }, - "VideoWidth": { - "example": "", - "type": "string" - } - }, - "title": "SnsMediaItemModel", - "type": "object" - }, - "SnsObjectOpItem": { - "properties": { - "Data": { - "description": " 其它数据", - "items": { - "format": "int", - "type": "integer" - }, - "type": "array" - }, - "DataLen": { - "description": " 其它数据长度", - "format": "uint32", - "type": "integer" - }, - "Ext": { - "format": "uint32", - "type": "integer" - }, - "OpType": { - "description": " 操作码", - "format": "uint32", - "type": "integer" - }, - "SnsObjID": { - "description": " 朋友圈ID", - "example": "", - "type": "string" - } - }, - "title": "SnsObjectOpItem", - "type": "object" - }, - "SnsObjectOpRequestModel": { - "properties": { - "SnsObjectOpList": { - "items": { - "$ref": "#/definitions/SnsObjectOpItem" - }, - "type": "array" - } - }, - "title": "SnsObjectOpRequestModel", - "type": "object" - }, - "SnsPostItemModel": { - "properties": { - "BlackList": { - "description": " 不可见好友列表", - "items": { - "type": "string" - }, - "type": "array" - }, - "Content": { - "description": " 文本内容", - "example": "", - "type": "string" - }, - "ContentStyle": { - "description": " 纯文字/图文/引用/视频", - "format": "uint32", - "type": "integer" - }, - "ContentUrl": { - "example": "", - "type": "string" - }, - "Description": { - "example": "", - "type": "string" - }, - "GroupUserList": { - "description": " 可见好友列表", - "items": { - "type": "string" - }, - "type": "array" - }, - "LocationInfo": { - "$ref": "#/definitions/SnsLocationInfoModel", - "description": " 发送朋友圈的位置信息" - }, - "MediaList": { - "description": " 图片/视频列表", - "items": { - "$ref": "#/definitions/SnsMediaItemModel" - }, - "type": "array" - }, - "Privacy": { - "description": " 是否仅自己可见", - "format": "uint32", - "type": "integer" - }, - "WithUserList": { - "description": " 提醒好友看列表", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "SnsPostItemModel", - "type": "object" - }, - "StreamVideo": { - "properties": { - "StreamVideoThumbURL": { - "example": "", - "type": "string" - }, - "StreamVideoURL": { - "example": "", - "type": "string" - }, - "StreamVideoWebURL": { - "example": "", - "type": "string" - } - }, - "title": "StreamVideo", - "type": "object" - }, - "SyncMessageModel": { - "properties": { - "Count": { - "description": " 同步几条消息; 接收空请求体, 默认为0, 同步所有消息", - "format": "int", - "type": "integer" - } - }, - "title": "SyncMessageModel", - "type": "object" - }, - "Thumb": { - "properties": { - "EncIdx": { - "example": "", - "type": "string" - }, - "Key": { - "example": "", - "type": "string" - }, - "Token": { - "example": "", - "type": "string" - }, - "Type": { - "example": "", - "type": "string" - }, - "Value": { - "example": "", - "type": "string" - } - }, - "title": "Thumb", - "type": "object" - }, - "TimelineObject": { - "properties": { - "ActionInfo": { - "$ref": "#/definitions/ActionInfo" - }, - "AppInfo": { - "$ref": "#/definitions/AppInfo" - }, - "ContentDesc": { - "example": "", - "type": "string" - }, - "ContentDescScene": { - "format": "uint32", - "type": "integer" - }, - "ContentDescShowType": { - "format": "uint32", - "type": "integer" - }, - "ContentObject": { - "$ref": "#/definitions/ContentObject" - }, - "ContentObjectVideo": { - "$ref": "#/definitions/ContentObjectVideo" - }, - "CreateTime": { - "format": "uint32", - "type": "integer" - }, - "ID": { - "format": "uint64", - "type": "integer" - }, - "Location": { - "$ref": "#/definitions/Location" - }, - "Private": { - "format": "uint32", - "type": "integer" - }, - "PublicUserName": { - "example": "", - "type": "string" - }, - "ShowFlag": { - "format": "uint32", - "type": "integer" - }, - "SightFolded": { - "format": "uint32", - "type": "integer" - }, - "SourceNickName": { - "example": "", - "type": "string" - }, - "SourceUserName": { - "example": "", - "type": "string" - }, - "StatExtStr": { - "example": "", - "type": "string" - }, - "StatisticsData": { - "example": "", - "type": "string" - }, - "StreamVideo": { - "$ref": "#/definitions/StreamVideo" - }, - "UserName": { - "example": "", - "type": "string" - } - }, - "title": "TimelineObject", - "type": "object" - }, - "TransferGroupOwnerModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "NewOwnerUserName": { - "example": "", - "type": "string" - } - }, - "title": "TransferGroupOwnerModel", - "type": "object" - }, - "TransmitFriendCircleModel": { - "properties": { - "SourceID": { - "example": "", - "type": "string" - } - }, - "title": "TransmitFriendCircleModel", - "type": "object" - }, - "URL": { - "properties": { - "EncIdx": { - "example": "", - "type": "string" - }, - "Key": { - "example": "", - "type": "string" - }, - "MD5": { - "example": "", - "type": "string" - }, - "Token": { - "example": "", - "type": "string" - }, - "Type": { - "example": "", - "type": "string" - }, - "Value": { - "example": "", - "type": "string" - }, - "VideoMD5": { - "example": "", - "type": "string" - } - }, - "title": "URL", - "type": "object" - }, - "UpdateAutopassModel": { - "properties": { - "SwitchType": { - "format": "uint32", - "type": "integer" - } - }, - "title": "UpdateAutopassModel", - "type": "object" - }, - "UpdateChatroomAnnouncementModel": { - "properties": { - "ChatRoomName": { - "description": " 群聊ID:xxx@chatroom", - "example": "", - "type": "string" - }, - "Content": { - "example": "", - "type": "string" - } - }, - "title": "UpdateChatroomAnnouncementModel", - "type": "object" - }, - "UpdateNickNameModel": { - "properties": { - "Scene": { - "format": "uint32", - "type": "integer" - }, - "Val": { - "example": "", - "type": "string" - } - }, - "title": "UpdateNickNameModel", - "type": "object" - }, - "UpdateSexModel": { - "properties": { - "City": { - "example": "", - "type": "string" - }, - "Country": { - "example": "", - "type": "string" - }, - "Province": { - "example": "", - "type": "string" - }, - "Sex": { - "format": "uint32", - "type": "integer" - } - }, - "title": "UpdateSexModel", - "type": "object" - }, - "UpdateStepNumberModel": { - "properties": { - "Number": { - "format": "uint64", - "type": "integer" - } - }, - "title": "UpdateStepNumberModel", - "type": "object" - }, - "UploadAppAttachModel": { - "properties": { - "fileData": { - "example": "", - "type": "string" - } - }, - "title": "UploadAppAttachModel", - "type": "object" - }, - "UploadFriendCircleModel": { - "properties": { - "ImageDataList": { - "items": { - "type": "string" - }, - "type": "array" - }, - "VideoDataList": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "title": "UploadFriendCircleModel", - "type": "object" - }, - "UploadHeadImageModel": { - "properties": { - "Base64": { - "example": "", - "type": "string" - } - }, - "title": "UploadHeadImageModel", - "type": "object" - }, - "UploadImageToCDNModel": { - "properties": { - "imageContent": { - "description": " 图片的base64编码", - "example": "", - "type": "string" - } - }, - "title": "UploadImageToCDNModel", - "type": "object" - }, - "UploadMContactModel": { - "properties": { - "Mobile": { - "example": "", - "type": "string" - }, - "MobileList": { - "items": { - "type": "string" - }, - "type": "array" - }, - "Opcode": { - "format": "int32", - "type": "integer" - } - }, - "title": "UploadMContactModel", - "type": "object" - }, - "UserRankLikeModel": { - "properties": { - "RankId": { - "example": "", - "type": "string" - } - }, - "title": "UserRankLikeModel", - "type": "object" - }, - "VerifyCodeModel": { - "properties": { - "code": { - "description": " 验证码", - "example": "", - "type": "string" - }, - "data62": { - "description": " 验证码", - "example": "", - "type": "string" - }, - "ticket": { - "description": " 验证码", - "example": "", - "type": "string" - } - }, - "title": "VerifyCodeModel", - "type": "object" - }, - "VerifyUserItem": { - "properties": { - "Gh": { - "example": "", - "type": "string" - }, - "Scene": { - "format": "int", - "type": "integer" - } - }, - "title": "VerifyUserItem", - "type": "object" - }, - "VerifyUserRequestModel": { - "properties": { - "ChatRoomUserName": { - "description": " 通过群来添加好友 需要设置此值为群id", - "example": "", - "type": "string" - }, - "OpCode": { - "description": " 操作类型: 1(免验证发送请求) 2(添加好友/发送验证申请) 3(同意好友/通过好友验证) 4(拒绝好友)", - "example": "2", - "format": "uint32", - "type": "integer" - }, - "Scene": { - "description": " 添加来源, 同意添加好友时传回调消息xml中的scene值.\u003cbr/\u003e添加好友时的枚举值如下: \u003cbr/\u003e1(QQ) 2(邮箱) 3(微信号) 4(QQ好友) 8(来自群聊) 13(通讯录)\u003cbr/\u003e14(群聊) 15(手机号) 18(附近的人) 25(漂流瓶) 29(摇一摇) 30(二维码)", - "example": "3", - "format": "int", - "type": "integer" - }, - "V3": { - "description": " V3用户名数据(SearchContact请求返回的UserValue)", - "example": "", - "type": "string" - }, - "V4": { - "description": " V4校验数据(SearchContact请求返回的AntispamTicket)", - "example": "", - "type": "string" - }, - "VerifyContent": { - "description": " 添加好友时的(招呼语/验证信息)", - "example": "", - "type": "string" - } - }, - "title": "VerifyUserRequestModel", - "type": "object" - }, - "VideoSize": { - "properties": { - "Height": { - "example": "", - "type": "string" - }, - "Width": { - "example": "", - "type": "string" - } - }, - "title": "VideoSize", - "type": "object" - }, - "WelcomeNewMemberRequestModel": { - "properties": { - "Enable": { - "description": " 是否开启欢迎新人入群", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Mode": { - "description": " 模式,1-仅欢迎设置群,0-不欢迎设置群", - "example": "1", - "format": "int32", - "type": "integer" - }, - "Rooms": { - "description": " 设置的群", - "example": "", - "type": "string" - }, - "WelcomeMsg": { - "description": " 欢迎语内容(仅一条)", - "example": "", - "type": "string" - } - }, - "title": "WelcomeNewMemberRequestModel", - "type": "object" - }, - "WxBindOpMobileForModel": { - "properties": { - "OpCode": { - "format": "int64", - "type": "integer" - }, - "PhoneNumber": { - "example": "", - "type": "string" - }, - "Proxy": { - "example": "", - "type": "string" - }, - "Reg": { - "format": "uint64", - "type": "integer" - }, - "VerifyCode": { - "example": "", - "type": "string" - } - }, - "title": "WxBindOpMobileForModel", - "type": "object" - }, - "WxFunctionSwitchModel": { - "properties": { - "Function": { - "format": "uint32", - "type": "integer" - }, - "Value": { - "format": "uint32", - "type": "integer" - } - }, - "title": "WxFunctionSwitchModel", - "type": "object" - }, - "baseinfo.Location": { - "properties": { - "City": { - "example": "", - "type": "string" - }, - "Latitude": { - "example": "", - "type": "string" - }, - "Longitude": { - "example": "", - "type": "string" - }, - "PoiAddress": { - "example": "", - "type": "string" - }, - "PoiClassifyID": { - "example": "", - "type": "string" - }, - "PoiClassifyType": { - "format": "uint32", - "type": "integer" - }, - "PoiName": { - "example": "", - "type": "string" - } - }, - "title": "baseinfo.Location", - "type": "object" - }, - "baseinfo.UserLabelInfoItem": { - "properties": { - "LabelIDList": { - "example": "", - "type": "string" - }, - "UserName": { - "example": "", - "type": "string" - } - }, - "title": "baseinfo.UserLabelInfoItem", - "type": "object" - } - }, - "info": { - "contact": "", - "description": "API 文档", - "title": "BIMWE_API", - "version": "1.0.0" - }, - "paths": { - "/admin/DelayAuthKey": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DelayAuthKeyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "授权码延期", - "tags": [ - "管理" - ] - } - }, - "/admin/DeleteAuthKey": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DeleteAuthKeyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除授权码", - "tags": [ - "管理" - ] - } - }, - "/admin/DisableAuthKey": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/BannedAuthKeyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "禁用授权码", - "tags": [ - "管理" - ] - } - }, - "/admin/GenAuthKey1": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GenAuthKeyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "生成授权码(新设备)", - "tags": [ - "管理" - ] - } - }, - "/admin/GenAuthKey2": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "生成授权码(新设备)", - "tags": [ - "管理" - ] - } - }, - "/admin/GenAuthKey3": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GenAuthKeyTypeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "生成授权码(1-日 7-周 30-月 90-季 180-半年 365-年 30000-永久)此key不使用无过期时间", - "tags": [ - "管理" - ] - } - }, - "/admin/GetActiveLicenseKeys": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "查询所有激活状态的卡密", - "tags": [ - "管理" - ] - } - }, - "/admin/GetProxyMappingList": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取代理映射列表", - "tags": [ - "管理" - ] - } - }, - "/admin/HttpSyncLicenseKey": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同步卡密激活状态, HTTP-轮询方式", - "tags": [ - "管理" - ] - } - }, - "/applet/AuthMpLogin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetMpA8KeyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "授权公众号登录", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/FollowGH": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/FollowGHModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "关注公众号", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/GetA8Key": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetA8KeyRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "授权链接", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/GetAppMsgExt": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ReadParam" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "阅读公众号文章", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/GetAppMsgExtLike": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ReadParam" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "点赞公众号文章", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/GetAppMsgReadCount": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ReadParam" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取公众号文章阅读数", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/GetMpA8Key": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetMpA8KeyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "授权链接", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/GetMpHistoryMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetMpHistoryMsgModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取公众号历史消息", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/JSOperateWxData": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/AppletModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "小程序云函数操作", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/JsLogin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/AppletModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "授权小程序(返回授权后的code)", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/QRConnectAuthorize": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QRConnectAuthorizeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "二维码授权请求", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/QRConnectAuthorizeConfirm": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QRConnectAuthorizeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "二维码授权确认", - "tags": [ - "公众号/小程序" - ] - } - }, - "/applet/SdkOauthAuthorize": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/AppletModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "应用授权", - "tags": [ - "公众号/小程序" - ] - } - }, - "/equipment/DelSafeDevice": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DelSafeDeviceModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除安全设备", - "tags": [ - "设备" - ] - } - }, - "/equipment/GetBoundHardDevice": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取硬件设备情况", - "tags": [ - "设备" - ] - } - }, - "/equipment/GetOnlineInfo": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取在线设备信息", - "tags": [ - "设备" - ] - } - }, - "/equipment/GetSafetyInfo": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取安全设备列表", - "tags": [ - "设备" - ] - } - }, - "/favor/BatchDelFavItem": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/FavInfoModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除收藏", - "tags": [ - "收藏" - ] - } - }, - "/favor/FavSync": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同步收藏", - "tags": [ - "收藏" - ] - } - }, - "/favor/GetFavItemId": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/FavInfoModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取收藏详细", - "tags": [ - "收藏" - ] - } - }, - "/favor/GetFavList": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/FavInfoModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取收藏list", - "tags": [ - "收藏" - ] - } - }, - "/finder/ChannelsLogin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ChannelsLoginModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "视频号助手扫码登录", - "tags": [ - "视频号" - ] - } - }, - "/finder/FinderFollow": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/FinderFollowModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "关注取消", - "tags": [ - "视频号" - ] - } - }, - "/finder/FinderSearch": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/FinderSearchModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "视频号搜索", - "tags": [ - "视频号" - ] - } - }, - "/finder/FinderUserPrepare": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/FinderUserPrepareModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "视频号中心", - "tags": [ - "视频号" - ] - } - }, - "/friend/AgreeAdd": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/VerifyUserRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同意好友请求", - "tags": [ - "朋友" - ] - } - }, - "/friend/DelContact": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DelContactModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除好友", - "tags": [ - "朋友" - ] - } - }, - "/friend/GetContactDetailsList": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/BatchGetContactModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取联系人详情", - "tags": [ - "朋友" - ] - } - }, - "/friend/GetContactList": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetContactListModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取全部联系人", - "tags": [ - "朋友" - ] - } - }, - "/friend/GetFriendRelation": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetFriendRelationModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取好友关系", - "tags": [ - "朋友" - ] - } - }, - "/friend/GetGHList": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取关注的公众号列表", - "tags": [ - "朋友" - ] - } - }, - "/friend/GetMFriend": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取手机通讯录好友", - "tags": [ - "朋友" - ] - } - }, - "/friend/GroupList": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取保存的群聊列表", - "tags": [ - "朋友" - ] - } - }, - "/friend/SearchContact": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SearchContactRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "搜索联系人", - "tags": [ - "朋友" - ] - } - }, - "/friend/UploadMContact": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UploadMContactModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "上传手机通讯录好友", - "tags": [ - "朋友" - ] - } - }, - "/friend/VerifyUser": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/VerifyUserRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "验证好友/添加好友", - "tags": [ - "朋友" - ] - } - }, - "/group/AddChatRoomMembers": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/InviteChatroomMembersModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "添加群成员", - "tags": [ - "群管理" - ] - } - }, - "/group/AddChatroomAdmin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ChatroomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "添加群管理员", - "tags": [ - "群管理" - ] - } - }, - "/group/CreateChatRoom": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/CreateChatRoomModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "创建群请求", - "tags": [ - "群管理" - ] - } - }, - "/group/DelChatroomAdmin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ChatroomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除群管理员", - "tags": [ - "群管理" - ] - } - }, - "/group/GetChatRoomInfo": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ChatRoomWxIdListModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取群详情", - "tags": [ - "群管理" - ] - } - }, - "/group/GetChatroomMemberDetail": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetChatroomMemberDetailModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取群成员详细", - "tags": [ - "群管理" - ] - } - }, - "/group/GetChatroomQrCode": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetChatroomQrCodeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取群二维码", - "tags": [ - "群管理" - ] - } - }, - "/group/InviteChatroomMembers": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/InviteChatroomMembersModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "邀请群成员", - "tags": [ - "群管理" - ] - } - }, - "/group/MoveToContract": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/MoveContractModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取群聊", - "tags": [ - "群管理" - ] - } - }, - "/group/QuitChatroom": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetChatroomMemberDetailModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "退出群聊", - "tags": [ - "群管理" - ] - } - }, - "/group/ScanIntoUrlGroup": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ScanIntoUrlGroupModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "扫码入群", - "tags": [ - "群管理" - ] - } - }, - "/group/SendDelDelChatRoomMember": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/InviteChatroomMembersModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除群成员", - "tags": [ - "群管理" - ] - } - }, - "/group/SendPat": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendPatModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "群拍一拍功能", - "tags": [ - "群管理" - ] - } - }, - "/group/SendTransferGroupOwner": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/TransferGroupOwnerModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "转让群", - "tags": [ - "群管理" - ] - } - }, - "/group/SetChatroomAccessVerify": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetChatroomAccessVerifyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置群聊邀请开关", - "tags": [ - "群管理" - ] - } - }, - "/group/SetChatroomAnnouncement": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UpdateChatroomAnnouncementModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置群公告", - "tags": [ - "群管理" - ] - } - }, - "/group/SetChatroomName": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ChatroomNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置群昵称", - "tags": [ - "群管理" - ] - } - }, - "/group/SetGetChatRoomInfoDetail": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetChatroomMemberDetailModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取群公告", - "tags": [ - "群管理" - ] - } - }, - "/group/SetGroupNickname": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ChatroomNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置我在本群的昵称", - "tags": [ - "群管理" - ] - } - }, - "/group/ToJoinGroup": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ConsentToJoinGroupModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同意入群", - "tags": [ - "群管理" - ] - } - }, - "/label/AddContactLabel": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/LabelModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "添加列表", - "tags": [ - "标签" - ] - } - }, - "/label/DelContactLabel": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/LabelModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除标签", - "tags": [ - "标签" - ] - } - }, - "/label/GetContactLabelList": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取标签列表", - "tags": [ - "标签" - ] - } - }, - "/label/GetWXFriendListByLabel": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/LabelModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取标签下所有好友", - "tags": [ - "标签" - ] - } - }, - "/label/ModifyLabel": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/LabelModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改标签", - "tags": [ - "标签" - ] - } - }, - "/login/A16Login": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DeviceIdLoginModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "数据登录", - "tags": [ - "登录" - ] - } - }, - "/login/CheckLoginStatus": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "检测扫码状态", - "tags": [ - "登录" - ] - } - }, - "/login/DeviceLogin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DeviceIdLoginModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "62账号密码登录", - "tags": [ - "登录" - ] - } - }, - "/login/GetLoginQrCodeNewDirect": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetLoginQrCodeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取登录二维码-直登(异地IP必须用代理! socks5://username:password@ipv4:port)", - "tags": [ - "登录" - ] - } - }, - "/login/GetLoginStatus": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取在线状态", - "tags": [ - "登录" - ] - } - }, - "/login/LogOut": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "退出登录", - "tags": [ - "登录" - ] - } - }, - "/login/VerifyCode": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/VerifyCodeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "验证码验证(输入iPad登录验证码)", - "tags": [ - "登录" - ] - } - }, - "/login/VerifyCodeSlide": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SlideTicketModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "过mac滑块验证", - "tags": [ - "登录" - ] - } - }, - "/login/WakeUpLogin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetLoginQrCodeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "唤醒登录(只限扫码登录)", - "tags": [ - "登录" - ] - } - }, - "/message/AddMessageMgr": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "添加要发送的文本消息进入管理器", - "tags": [ - "消息" - ] - } - }, - "/message/CdnUploadVideo": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/CdnUploadVideoRequest" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "上传视频", - "tags": [ - "消息" - ] - } - }, - "/message/DeleteCallback": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除消息回调配置", - "tags": [ - "消息回调" - ] - } - }, - "/message/DownloadEmojiGif": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DownloadEmojiModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "下载表情", - "tags": [ - "消息" - ] - } - }, - "/message/ForwardEmoji": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendEmojiMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "转发表情,包含动图", - "tags": [ - "消息" - ] - } - }, - "/message/ForwardImageMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ForwardMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "转发图片", - "tags": [ - "消息" - ] - } - }, - "/message/ForwardVideoMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ForwardMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "转发视频", - "tags": [ - "消息" - ] - } - }, - "/message/GetCallback": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取消息回调配置", - "tags": [ - "消息回调" - ] - } - }, - "/message/GetMsgBigImg": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DownloadParam" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取图片(高清图片下载)", - "tags": [ - "消息" - ] - } - }, - "/message/GetMsgVideo": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DownloadParam" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取视频(视频数据下载)", - "tags": [ - "消息" - ] - } - }, - "/message/GetMsgVoice": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DownloadVoiceModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "下载语音消息", - "tags": [ - "消息" - ] - } - }, - "/message/GroupMassMsgImage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GroupMassMsgImageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "群发图片", - "tags": [ - "消息" - ] - } - }, - "/message/GroupMassMsgText": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GroupMassMsgTextModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "群发接口", - "tags": [ - "消息" - ] - } - }, - "/message/HttpSyncMsg": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SyncMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同步消息, HTTP-轮询方式", - "tags": [ - "消息" - ] - } - }, - "/message/NewSyncHistoryMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同步历史消息", - "tags": [ - "消息" - ] - } - }, - "/message/RevokeMsg": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/RevokeMsgModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "撤销消息", - "tags": [ - "消息" - ] - } - }, - "/message/RevokeMsgNew": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/RevokeMsgModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "撤回消息(New)", - "tags": [ - "消息" - ] - } - }, - "/message/SendAppMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/AppMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送App消息", - "tags": [ - "消息" - ] - } - }, - "/message/SendCdnDownload": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DownMediaModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "下载 请求", - "tags": [ - "消息" - ] - } - }, - "/message/SendEmojiMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendEmojiMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送表情", - "tags": [ - "消息" - ] - } - }, - "/message/SendImageMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送图片消息", - "tags": [ - "消息" - ] - } - }, - "/message/SendImageNewMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送图片消息(New)", - "tags": [ - "消息" - ] - } - }, - "/message/SendTextMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendMessageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送文本消息", - "tags": [ - "消息" - ] - } - }, - "/message/SendVoice": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendUploadVoiceRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送语音", - "tags": [ - "消息" - ] - } - }, - "/message/SetCallback": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/MessageCallbackConfigModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置消息回调", - "tags": [ - "消息回调" - ] - } - }, - "/message/ShareCardMessage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ShareCardParam" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "分享名片消息", - "tags": [ - "消息" - ] - } - }, - "/message/TestCallback": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "测试消息回调配置", - "tags": [ - "消息回调" - ] - } - }, - "/message/UploadImageToCDN": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UploadImageToCDNModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "纯CDN图片上传接口", - "tags": [ - "消息" - ] - } - }, - "/other/GetPeopleNearby": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/PeopleNearbyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "查看附近的人", - "tags": [ - "其他" - ] - } - }, - "/other/GetProjectFullPath": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取项目完整路径", - "tags": [ - "其他" - ] - } - }, - "/other/GetRedisSyncMsg": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取缓存在redis中的消息", - "tags": [ - "其他" - ] - } - }, - "/other/GetUserRankLikeCount": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UserRankLikeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取步数排行数据列表", - "tags": [ - "其他" - ] - } - }, - "/other/QWImageDownload": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DownloadQWImageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "企微图片下载", - "tags": [ - "其他" - ] - } - }, - "/other/UpdateCmdStatus": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ModifyCmdStatusModelNew" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "更新指令状态, key 为指令 id,Value 为指令状态 0|1,ValueStr 为字符串值", - "tags": [ - "其他" - ] - } - }, - "/other/UpdateStepNumber": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UpdateStepNumberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改步数", - "tags": [ - "其他" - ] - } - }, - "/other/UploadAppAttach": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UploadAppAttachModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "上传文件", - "tags": [ - "其他" - ] - } - }, - "/pay/Collectmoney": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/CollectmoneyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "确定收款", - "tags": [ - "支付" - ] - } - }, - "/pay/ConfirmPreTransfer": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ConfirmPreTransfer" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "确认转账(客户端版本过低会无法转账)", - "tags": [ - "支付" - ] - } - }, - "/pay/CreatePreTransfer": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/CreatePreTransfer" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "创建转账", - "tags": [ - "支付" - ] - } - }, - "/pay/GeneratePayQCode": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GeneratePayQCodeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "生成自定义收款二维码", - "tags": [ - "支付" - ] - } - }, - "/pay/GetBandCardList": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取银行卡信息", - "tags": [ - "支付" - ] - } - }, - "/pay/GetRedEnvelopesDetail": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/HongBaoItem" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "查看红包详情", - "tags": [ - "支付" - ] - } - }, - "/pay/GetRedPacketList": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetRedPacketList" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "查看红包领取列表", - "tags": [ - "支付" - ] - } - }, - "/pay/OpenRedEnvelopes": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/HongBaoItem" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "拆红包", - "tags": [ - "支付" - ] - } - }, - "/pay/WXCreateRedPacket": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/RedPacket" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "创建红包", - "tags": [ - "支付" - ] - } - }, - "/qy/QWAcceptChatRoom": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAcceptChatRoomModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同意进企业群", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWAddChatRoomMember": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "直接拉朋友进企业群", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWAdminAcceptJoinChatRoomSet": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAdminAcceptJoinChatRoomSetModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设定企业群管理审核进群", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWApplyAddContact": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWApplyAddContactModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "向企业微信打招呼", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWAppointChatRoomAdmin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "增加企业管理员", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWChatRoomAnnounce": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWModChatRoomNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发布企业群公告", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWChatRoomTransferOwner": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWChatRoomTransferOwnerModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "转让企业群", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWContact": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWContactModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "提取企业 wx 详情", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWCreateChatRoom": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWCreateModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "创建企业群", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWDelChatRoom": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWModChatRoomNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除企业群", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWDelChatRoomAdmin": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "移除群管理员", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWDelChatRoomMember": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "删除企业群成员", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWGetChatRoomMember": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "提取企业群全部成员", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWGetChatRoomQR": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "提取企业群二维码", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWGetChatroomInfo": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "提取企业群名称公告设定等信息", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWInviteChatRoomMember": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWAddChatRoomMemberModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送群邀请链接", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWModChatRoomMemberNick": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWModChatRoomNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改成员在群中呢称", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWModChatRoomName": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWModChatRoomNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改企业群名称", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWRemark": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWRemarkModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "备注企业 wxid", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWSearchContact": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SearchContactModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "搜手机或企业对外名片链接提取验证", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWSyncChatRoom": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/QWSyncChatRoomModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "提取全部企业微信群-", - "tags": [ - "企业微信" - ] - } - }, - "/qy/QWSyncContact": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "提取全部的企业通讯录", - "tags": [ - "企业微信" - ] - } - }, - "/shop/ExtDeviceLoginConfirmGet": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ShopLoginConfirmModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "", - "tags": [ - "/shop" - ] - } - }, - "/shop/ExtDeviceLoginConfirmOk": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ShopLoginConfirmModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "", - "tags": [ - "/shop" - ] - } - }, - "/shop/ScanQrcodeEventReport": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ShopLoginConfirmModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "", - "tags": [ - "/shop" - ] - } - }, - "/shop/ShopLoginConfirm": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ShopLoginConfirmModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "微信小店确认登录", - "tags": [ - "/shop" - ] - } - }, - "/sns/CdnSnsVideoUpload": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/CdnSnsVideoUploadModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "上传CDN朋友圈视频", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/DownloadMedia": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DownloadMediaModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "下载朋友圈视频", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/GetCollectCircle": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendFavItemCircle" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取收藏朋友圈详情", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/GetSnsSync": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "同步朋友圈", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendFavItemCircle": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendFavItemCircle" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "转发收藏朋友圈", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendFriendCircle": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SnsPostItemModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送朋友圈", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendFriendCircleByXMl": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/TimelineObject" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "发送朋友圈XML结构", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendOneIdCircle": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetIdDetailModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "一键转发朋友圈", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendSnsComment": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendSnsCommentRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "点赞评论", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendSnsObjectDetailById": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetIdDetailModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取指定id朋友圈", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendSnsObjectOp": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendSnsObjectOpRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "朋友圈操作", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendSnsTimeLine": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetSnsInfoModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取朋友圈主页", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SendSnsUserPage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetSnsInfoModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取指定人朋友圈", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SetBackgroundImage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetBackgroundImageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置朋友圈背景图片", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/SetFriendCircleDays": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetFriendCircleDaysModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置朋友圈可见天数", - "tags": [ - "朋友圈" - ] - } - }, - "/sns/UploadFriendCircleImage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UploadFriendCircleModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "上传图片信息", - "tags": [ - "朋友圈" - ] - } - }, - "/user/ChangePwd": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendChangePwdRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "更改密码", - "tags": [ - "用户" - ] - } - }, - "/user/GetAdminKeyword": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取管理员关键词配置", - "tags": [ - "用户" - ] - } - }, - "/user/GetInviteKeyword": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取关键词邀请入群配置", - "tags": [ - "用户" - ] - } - }, - "/user/GetKeywordReply": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取关键词自动回复配置", - "tags": [ - "用户" - ] - } - }, - "/user/GetKickKeyword": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取踢人关键词配置", - "tags": [ - "用户" - ] - } - }, - "/user/GetMyQrCode": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetQrCodeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取我的二维码", - "tags": [ - "用户" - ] - } - }, - "/user/GetProfile": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取个人资料信息", - "tags": [ - "用户" - ] - } - }, - "/user/GetWelcome": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "获取欢迎词配置", - "tags": [ - "用户" - ] - } - }, - "/user/ModifyRemark": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SendModifyRemarkRequestModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改备注", - "tags": [ - "用户" - ] - } - }, - "/user/ModifyUserInfo": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/ModifyUserInfo" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改资料", - "tags": [ - "用户" - ] - } - }, - "/user/ResetGender": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "重置性别", - "tags": [ - "用户" - ] - } - }, - "/user/SetAdminKeyword": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetAdminKeywordModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置管理员关键词配置", - "tags": [ - "用户" - ] - } - }, - "/user/SetFunctionSwitch": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/WxFunctionSwitchModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置添加我的方式", - "tags": [ - "用户" - ] - } - }, - "/user/SetInviteKeyword": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetInviteKeywordModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置关键词邀请入群配置", - "tags": [ - "用户" - ] - } - }, - "/user/SetKeywordReply": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetKeywordReplyModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置关键词自动回复", - "tags": [ - "用户" - ] - } - }, - "/user/SetKickKeyword": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetKickKeywordModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置踢人关键词配置", - "tags": [ - "用户" - ] - } - }, - "/user/SetNickName": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UpdateNickNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置昵称", - "tags": [ - "用户" - ] - } - }, - "/user/SetProxy": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/GetLoginQrCodeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改Socks5代理 socks5://username:password@ipv4:", - "tags": [ - "用户" - ] - } - }, - "/user/SetSendPat": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetSendPatModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置拍一拍名称", - "tags": [ - "用户" - ] - } - }, - "/user/SetSexDq": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UpdateSexModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改性别", - "tags": [ - "用户" - ] - } - }, - "/user/SetSignature": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UpdateNickNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改签名", - "tags": [ - "用户" - ] - } - }, - "/user/SetWechat": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/AlisaModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置微信号", - "tags": [ - "用户" - ] - } - }, - "/user/SetWelcome": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/SetWelcomeModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "设置欢迎词配置", - "tags": [ - "用户" - ] - } - }, - "/user/UpdateAutoPass": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UpdateAutopassModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改加好友需要验证属性", - "tags": [ - "用户" - ] - } - }, - "/user/UpdateNickName": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UpdateNickNameModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "修改名称", - "tags": [ - "用户" - ] - } - }, - "/user/UploadHeadImage": { - "post": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - }, - { - "description": "请求参数", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UploadHeadImageModel" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "上传头像", - "tags": [ - "用户" - ] - } - }, - "/ws/GetSyncMsg": { - "get": { - "parameters": [ - { - "description": "账号唯一标识", - "in": "query", - "name": "key", - "type": "string" - } - ], - "responses": { - "200": { - "description": "" - } - }, - "summary": "如果 \"key\" 有效,则调用 WebSocketHandler 进行后续处理。", - "tags": [ - "同步消息" - ] - } - } - }, - "swagger": "2.0", - "tags": [ - { - "description": "消息回调接口", - "name": "消息回调" - }, - { - "description": "/login", - "name": "登录" - }, - { - "description": "/message", - "name": "消息" - }, - { - "description": "/pay", - "name": "支付" - }, - { - "description": "/friend", - "name": "朋友" - }, - { - "description": "/user", - "name": "用户" - }, - { - "description": "/group", - "name": "群管理" - }, - { - "description": "/admin", - "name": "管理" - }, - { - "description": "/label", - "name": "标签" - }, - { - "description": "/ws", - "name": "同步消息" - }, - { - "description": "/sns", - "name": "朋友圈" - }, - { - "description": "/equipment", - "name": "设备" - }, - { - "description": "/applet", - "name": "公众号/小程序" - }, - { - "description": "/favor", - "name": "收藏" - }, - { - "description": "/finder", - "name": "视频号" - }, - { - "description": "/qy", - "name": "企业微信" - }, - { - "description": "/other", - "name": "其他" - }, - { - "description": "/shop", - "name": "/shop" - } - ] -} \ No newline at end of file diff --git a/_docs、.md b/_docs/文档.md similarity index 100% rename from _docs、.md rename to _docs/文档.md diff --git a/_docs/订阅模块实施计划.md b/_docs/订阅模块实施计划.md index d9f315b..cdf26c0 100644 --- a/_docs/订阅模块实施计划.md +++ b/_docs/订阅模块实施计划.md @@ -78,7 +78,7 @@ 新建迁移或 SQL 脚本(建议 `_docs/sql/` 或 `migrations/`,与团队习惯一致)包含: - `biz_user`(与模型 `api/model/biz_user.js` 的 `tableName` 一致;与 `sys_user` 后台账号区分) -- `biz_plans` +- `biz_plan` - `biz_subscriptions`(字段含 `renew_mode`、`payment_channel`、`payment_ref` 等) - `biz_api_token`(`token_hash`、`plan_id` 可选冗余) - `biz_usage_monthly`(`stat_month` YYYY-MM) diff --git a/api/model/biz_plan.js b/api/model/biz_plan.js index ffb377e..e05f4f3 100644 --- a/api/model/biz_plan.js +++ b/api/model/biz_plan.js @@ -51,7 +51,6 @@ module.exports = (db) => { }, }, { - tableName: "biz_plans", timestamps: false, underscored: true, } diff --git a/scripts/migrate_biz_plan_api_columns.js b/scripts/migrate_biz_plan_api_columns.js deleted file mode 100644 index 826bb40..0000000 --- a/scripts/migrate_biz_plan_api_columns.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 为 biz_plans / biz_usage_monthly 补齐套餐 API 权限相关字段(可重复执行) - */ -const mysql = require("mysql2/promise"); -const config = require("../config/config"); - -async function column_exists(conn, schema, table, column) { - const [rows] = await conn.query( - `SELECT COUNT(*) AS c FROM information_schema.COLUMNS - WHERE TABLE_SCHEMA = ? AND TABLE_NAME = ? AND COLUMN_NAME = ?`, - [schema, table, column] - ); - return Number(rows[0].c) > 0; -} - -async function table_exists(conn, schema, table) { - const [rows] = await conn.query( - `SELECT COUNT(*) AS c FROM information_schema.TABLES - WHERE TABLE_SCHEMA = ? AND TABLE_NAME = ?`, - [schema, table] - ); - return Number(rows[0].c) > 0; -} - -async function main() { - const db = config.db; - if (!db || !db.database) { - throw new Error("config.db.database 未配置"); - } - const conn = await mysql.createConnection({ - host: db.host, - port: db.port || 3306, - user: db.username, - password: db.password, - database: db.database, - }); - const schema = db.database; - try { - if (!(await table_exists(conn, schema, "biz_plans"))) { - console.warn("跳过 biz_plans:当前库中不存在该表(请确认连接的是已部署订阅模块的库)"); - } else if (!(await column_exists(conn, schema, "biz_plans", "allowed_apis"))) { - await conn.query( - "ALTER TABLE `biz_plans` ADD COLUMN `allowed_apis` JSON DEFAULT NULL COMMENT '可访问的接口路径列表,null=不限制'" - ); - console.log("已添加 biz_plans.allowed_apis"); - } - if ( - (await table_exists(conn, schema, "biz_plans")) && - !(await column_exists(conn, schema, "biz_plans", "api_call_quota")) - ) { - await conn.query( - "ALTER TABLE `biz_plans` ADD COLUMN `api_call_quota` INT NOT NULL DEFAULT 0 COMMENT '每月API总调用次数上限,0=不限制'" - ); - console.log("已添加 biz_plans.api_call_quota"); - } - if (!(await table_exists(conn, schema, "biz_usage_monthly"))) { - console.warn("跳过 biz_usage_monthly:当前库中不存在该表"); - } else if (!(await column_exists(conn, schema, "biz_usage_monthly", "api_call_count"))) { - await conn.query( - "ALTER TABLE `biz_usage_monthly` ADD COLUMN `api_call_count` INT NOT NULL DEFAULT 0 COMMENT '当月API转发总调用次数'" - ); - console.log("已添加 biz_usage_monthly.api_call_count"); - } - console.log("字段检查完成"); - } finally { - await conn.end(); - } -} - -main().catch((e) => { - console.error(e); - process.exit(1); -});