{ "openapi": "3.0.0", "info": { "title": "Agent管理模块", "version": "2.0.0", "description": "Agent功能模块管理接口" }, "servers": [ { "url": "http://your-api-domain.com", "description": "API服务器" } ], "tags": [ { "name": "Agent管理", "description": "Agent功能模块的管理接口", "x-apifox-folder": "Agent管理" } ], "paths": { "/v2/store/agent/modules": { "get": { "summary": "获取Agent模块列表", "description": "获取所有可用的Agent功能模块及其状态\n\n**功能模块**:\n- autoLike: 自动点赞\n- momentsSync: 朋友圈同步\n- autoCustomerDev: 自动开发客户\n- groupMessageDeliver: 群消息群发\n- autoGroup: 自动建群", "tags": ["Agent管理"], "parameters": [ { "name": "deviceId", "in": "query", "description": "设备ID(通过认证获取)", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "成功响应", "content": { "application/json": { "schema": { "type": "object", "properties": { "code": { "type": "integer", "example": 200 }, "msg": { "type": "string", "example": "获取成功" }, "data": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string", "example": "autoLike" }, "name": { "type": "string", "example": "自动点赞" }, "status": { "type": "integer", "example": 1 }, "description": { "type": "string", "example": "自动为朋友圈内容点赞" } } } } } } } } } } } }, "/v2/store/agent/modules/{moduleCode}/status": { "put": { "summary": "更新Agent模块状态", "description": "启用或禁用指定的Agent功能模块\n\n**支持的模块代码**:\n- autoLike: 自动点赞\n- momentsSync: 朋友圈同步\n- autoCustomerDev: 自动开发客户\n- groupMessageDeliver: 群消息群发\n- autoGroup: 自动建群", "tags": ["Agent管理"], "parameters": [ { "name": "moduleCode", "in": "path", "description": "模块代码", "required": true, "schema": { "type": "string", "example": "autoLike" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": ["status"], "properties": { "status": { "type": "integer", "description": "状态:0-禁用,1-启用", "example": 1 }, "deviceId": { "type": "string", "description": "设备ID" } } } } } }, "responses": { "200": { "description": "成功响应", "content": { "application/json": { "schema": { "type": "object", "properties": { "code": { "type": "integer", "example": 200 }, "msg": { "type": "string", "example": "更新成功" } } } } } } } } } } }