diff options
Diffstat (limited to 'data/zh_cn/accountcenter')
| -rw-r--r-- | data/zh_cn/accountcenter/2024-12-09/api-docs.php | 2672 |
1 files changed, 2672 insertions, 0 deletions
diff --git a/data/zh_cn/accountcenter/2024-12-09/api-docs.php b/data/zh_cn/accountcenter/2024-12-09/api-docs.php new file mode 100644 index 0000000..d8cfaba --- /dev/null +++ b/data/zh_cn/accountcenter/2024-12-09/api-docs.php @@ -0,0 +1,2672 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'AccountCenter', + 'version' => '2024-12-09', + ], + 'directories' => [ + [ + 'id' => 361645, + 'title' => '联系人管理', + 'type' => 'directory', + 'children' => [ + 'SendAsyncMobileCaptcha', + 'SendAsyncEmailCaptcha', + [ + 'id' => 361648, + 'title' => '企业联系人管理', + 'type' => 'directory', + 'children' => [ + 'EnterpriseContactQueryPageList', + 'EnterpriseContactQueryDetail', + 'EnterpriseContactEdit', + 'EnterpriseContactDelete', + 'EnterpriseContactAdd', + ], + ], + [ + 'id' => 361654, + 'title' => '账号联系人管理', + 'type' => 'directory', + 'children' => [ + 'AccountContactQueryPageList', + 'AccountContactQueryDetail', + 'AccountContactEdit', + 'AccountContactDelete', + 'AccountContactAdd', + ], + ], + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'SendAsyncMobileCaptcha' => [ + 'summary' => '发送手机号异步校验短信,用于验证指定联系人的手机号。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + ], + 'parameters' => [ + [ + 'name' => 'ContactInfo', + 'in' => 'formData', + 'schema' => [ + 'description' => '联系方式', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactorId', + 'in' => 'formData', + 'schema' => [ + 'description' => '联系人id', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<Boolean>', + 'description' => 'Result<Boolean>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求的唯一标识符。', + 'type' => 'string', + 'example' => '1409E8EE-8F9A-506B-BACB-B9DF3634C287', + ], + 'Success' => [ + 'description' => '请求成功与否标识。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '消息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '操作结果', + 'type' => 'boolean', + 'example' => 'False', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'VerifyCodeSendTimesOverLimited', + 'errorMessage' => 'Verify Code Send Times Over Limited.', + ], + [ + 'errorCode' => 'AsyncVerifyContactNotFound', + 'errorMessage' => 'Contact does not exist or has been deleted.', + ], + [ + 'errorCode' => 'AsyncVerifyMobileMismatch', + 'errorMessage' => 'The request phone number is inconsistent with the contact phone number.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1409E8EE-8F9A-506B-BACB-B9DF3634C287\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '发送手机号异步校验短信', + 'description' => '发送联系人联系方式的异步验证链接。 存在额外流控。5分钟內同一账号+联系方式不超过20次。24小时內同一账号全局不超过300次。', + 'requestParamsDescription' => '联系人id需要在当前请求账号可管理的联系人范围内。参考[地址联系人文档](https://help.aliyun.com/zh/account/add-personal-addresses-and-personal-contacts?spm=a2c4g.11186623.help-menu-35469.d_2_4.307a1738vMufL7&scm=20140722.H_2618535._.OR_help-T_cn~zh-V_1)以及[企业地址联系人文档](https://help.aliyun.com/zh/account/user-guide/add-business-address-and-business-contact?spm=a2c4g.11186623.help-menu-35469.d_7_0_5.a5ca1738qFvysM&scm=20140722.H_2879086._.OR_help-T_cn~zh-V_1)。', + ], + 'SendAsyncEmailCaptcha' => [ + 'summary' => '发送邮箱异步校验邮件,用于验证指定联系人的邮箱。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + ], + 'parameters' => [ + [ + 'name' => 'ContactInfo', + 'in' => 'formData', + 'schema' => [ + 'description' => '联系方式', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactorId', + 'in' => 'formData', + 'schema' => [ + 'description' => '联系人id', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<Boolean>', + 'description' => 'Result<Boolean>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => '5E9636D3-6C10-5FAB-B391-EDD122E28BC6', + ], + 'Success' => [ + 'description' => '请求成功与否标识。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '消息。', + 'type' => 'string', + 'example' => 'Instance invalid-id-123 does not exist.', + ], + 'Data' => [ + 'description' => '操作结果', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'VerifyCodeSendTimesOverLimited', + 'errorMessage' => 'Verify Code Send Times Over Limited.', + ], + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'No permission.', + ], + [ + 'errorCode' => 'AsyncVerifyContactNotFound', + 'errorMessage' => 'Contact does not exist or has been deleted.', + ], + [ + 'errorCode' => 'AsyncVerifyEmailMismatch', + 'errorMessage' => 'The request mailbox is not consistent with the contact mailbox.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E9636D3-6C10-5FAB-B391-EDD122E28BC6\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Instance invalid-id-123 does not exist.\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '发送邮箱异步校验邮件', + 'description' => '发送联系人联系方式的异步验证链接。 存在额外流控。5分钟內同一账号+联系方式不超过20次。24小时內同一账号全局不超过300次。', + 'requestParamsDescription' => '联系人id需要在当前请求账号可管理的联系人范围内。参考[地址联系人文档](https://help.aliyun.com/zh/account/add-personal-addresses-and-personal-contacts?spm=a2c4g.11186623.help-menu-35469.d_2_4.307a1738vMufL7&scm=20140722.H_2618535._.OR_help-T_cn~zh-V_1)以及[企业地址联系人文档](https://help.aliyun.com/zh/account/user-guide/add-business-address-and-business-contact?spm=a2c4g.11186623.help-menu-35469.d_7_0_5.a5ca1738qFvysM&scm=20140722.H_2879086._.OR_help-T_cn~zh-V_1)。', + ], + 'EnterpriseContactQueryPageList' => [ + 'summary' => '查询联系人列表。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'PageNo', + 'in' => 'formData', + 'schema' => [ + 'title' => '页码 default 1', + 'description' => '页码 default 1', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'title' => '页大小, default 10', + 'description' => '页大小, default 10', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Query', + 'in' => 'formData', + 'schema' => [ + 'title' => '姓名、邮箱、手机号', + 'description' => '姓名、邮箱、手机号', + 'type' => 'string', + 'required' => false, + 'example' => '1xxxxxxxxxx', + ], + ], + [ + 'name' => 'SharedContact', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人。当前接口默认set true。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '客户端应用名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'PrivateContact', + 'in' => 'formData', + 'schema' => [ + 'description' => '私有联系人查询标志位。当前接口默认set false', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + [ + 'name' => 'ShowCompleteInfo', + 'in' => 'query', + 'schema' => [ + 'description' => '是否进行数据脱敏', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'ListResult<ContactDTO>', + 'description' => 'ListResult<ContactDTO>', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'title' => '总数据量', + 'description' => '总数据量', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'PageSize' => [ + 'title' => '页大小', + 'description' => '页大小', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'PageNo' => [ + 'title' => '当前页码', + 'description' => '当前页码', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TotalPage' => [ + 'title' => '总页码数', + 'description' => '总页码数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => 'C0A6196F-52A0-5EC9-B8D3-263CEF806EC4', + ], + 'Success' => [ + 'description' => '操作是否成功。取值:true:成功。false:失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'msg', + 'type' => 'string', + 'example' => 'successful', + ], + 'Data' => [ + 'description' => '操作结果', + 'type' => 'array', + 'items' => [ + 'description' => '操作结果', + 'type' => 'object', + 'properties' => [ + 'ContactId' => [ + 'title' => '联系人ID', + 'description' => '联系人ID', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'CustomerId' => [ + 'title' => '客户ID,兼容旧模型', + 'description' => '客户ID,兼容旧模型', + 'type' => 'string', + 'example' => 'xxx', + ], + 'EntityId' => [ + 'title' => '实体ID', + 'description' => '实体ID', + 'type' => 'string', + 'example' => 'xxx', + ], + 'EntityType' => [ + 'title' => 'leId/customerId', + 'description' => 'leId/customerId', + 'type' => 'string', + 'example' => 'customerId', + ], + 'ContactName' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'example' => '曾老师', + ], + 'ContactEmail' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'example' => '[email protected]', + ], + 'ContactMobile' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'example' => '1xxxxxxxxxx', + ], + 'ContactPosition' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'example' => '1', + ], + 'EmailConfirmed' => [ + 'title' => '邮箱已验证', + 'description' => '邮箱已验证', + 'type' => 'boolean', + 'example' => 'true', + ], + 'MobileConfirmed' => [ + 'title' => '手机号已验证', + 'description' => '手机号已验证', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SharedContact' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人', + 'type' => 'boolean', + 'example' => 'false', + ], + 'UpdateUser' => [ + 'title' => '最后修改人', + 'description' => '最后修改人', + 'type' => 'string', + 'example' => 'xx', + ], + 'UpdateDate' => [ + 'title' => '最后修改时间', + 'description' => '最后修改时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'No permission.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 11,\\n \\"PageSize\\": 10,\\n \\"PageNo\\": 1,\\n \\"TotalPage\\": 0,\\n \\"RequestId\\": \\"C0A6196F-52A0-5EC9-B8D3-263CEF806EC4\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"ContactId\\": 0,\\n \\"CustomerId\\": \\"xxx\\",\\n \\"EntityId\\": \\"xxx\\",\\n \\"EntityType\\": \\"customerId\\",\\n \\"ContactName\\": \\"曾老师\\",\\n \\"ContactEmail\\": \\"[email protected]\\",\\n \\"ContactMobile\\": \\"1xxxxxxxxxx\\",\\n \\"ContactPosition\\": \\"1\\",\\n \\"EmailConfirmed\\": true,\\n \\"MobileConfirmed\\": true,\\n \\"SharedContact\\": false,\\n \\"UpdateUser\\": \\"xx\\",\\n \\"UpdateDate\\": 0\\n }\\n ]\\n}","type":"json"}]', + 'title' => '分页查询企业联系人', + 'description' => '分页查询企业联系人。', + 'requestParamsDescription' => 'OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。该功能目前还未开放。相关参数为空即可。', + ], + 'EnterpriseContactQueryDetail' => [ + 'summary' => '查询联系人详情。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactId', + 'in' => 'formData', + 'schema' => [ + 'description' => '联系人ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<ContactDTO>', + 'description' => 'Result<ContactDTO>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => 'F81F2090-8260-5052-BB93-7DF8996D25EB', + ], + 'Success' => [ + 'description' => '操作是否成功。true表示成功,false表示失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => 'Success', + ], + 'Message' => [ + 'description' => '消息。', + 'type' => 'string', + 'example' => 'successful', + ], + 'Data' => [ + 'description' => '操作结果', + 'type' => 'object', + 'properties' => [ + 'ContactId' => [ + 'title' => '联系人ID', + 'description' => '联系人ID', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xx', + ], + 'CustomerId' => [ + 'title' => '客户ID,兼容旧模型', + 'description' => '客户ID,兼容旧模型', + 'type' => 'string', + 'example' => 'xxx', + ], + 'EntityId' => [ + 'title' => '实体ID', + 'description' => '实体ID', + 'type' => 'string', + 'example' => '3489d3bc-077a-449b-b41e-dd81f7451a42', + ], + 'EntityType' => [ + 'title' => 'leId/customerId', + 'description' => 'leId/customerId', + 'type' => 'string', + 'example' => 'customerId', + ], + 'ContactName' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'example' => 'xxx', + ], + 'ContactEmail' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'example' => '[email protected]', + ], + 'ContactMobile' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'example' => '1xxxxxxxxxx', + ], + 'ContactPosition' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'example' => '4', + ], + 'EmailConfirmed' => [ + 'title' => '邮箱已验证', + 'description' => '邮箱已验证', + 'type' => 'boolean', + 'example' => 'false', + ], + 'MobileConfirmed' => [ + 'title' => '手机号已验证', + 'description' => '手机号已验证', + 'type' => 'boolean', + 'example' => 'false', + ], + 'SharedContact' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人', + 'type' => 'boolean', + 'example' => 'false', + ], + 'UpdateUser' => [ + 'title' => '最后修改人', + 'description' => '最后修改人', + 'type' => 'string', + 'example' => 'xxx', + ], + 'UpdateDate' => [ + 'title' => '最后修改时间', + 'description' => '最后修改时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'HasSubscription' => [ + 'title' => '查询联系人详情时是否订阅项目', + 'description' => '查询联系人详情时是否订阅项目', + 'type' => 'boolean', + 'example' => 'xxx', + ], + 'Uid' => [ + 'title' => '联系人归属人', + 'description' => '联系人归属人', + 'type' => 'string', + 'example' => 'xxx', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'No permission.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F81F2090-8260-5052-BB93-7DF8996D25EB\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"ContactId\\": 0,\\n \\"CustomerId\\": \\"xxx\\",\\n \\"EntityId\\": \\"3489d3bc-077a-449b-b41e-dd81f7451a42\\",\\n \\"EntityType\\": \\"customerId\\",\\n \\"ContactName\\": \\"xxx\\",\\n \\"ContactEmail\\": \\"[email protected]\\",\\n \\"ContactMobile\\": \\"1xxxxxxxxxx\\",\\n \\"ContactPosition\\": \\"4\\",\\n \\"EmailConfirmed\\": false,\\n \\"MobileConfirmed\\": false,\\n \\"SharedContact\\": false,\\n \\"UpdateUser\\": \\"xxx\\",\\n \\"UpdateDate\\": 0,\\n \\"HasSubscription\\": true,\\n \\"Uid\\": \\"xxx\\"\\n }\\n}","type":"json"}]', + 'title' => '查询企业联系人详情', + 'description' => '查询单个企业联系人详情。', + 'requestParamsDescription' => 'OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。该功能目前还未开放。相关参数为空即可。', + ], + 'EnterpriseContactEdit' => [ + 'summary' => '修改私企业联系人。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactId', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要修改的联系人的ID。可调用EnterpriseContactQueryPageList分页查询账号联系人信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactName', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactEmail', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'required' => false, + 'example' => '[email protected]', + ], + ], + [ + 'name' => 'ContactMobile', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'required' => false, + 'example' => '1xxxxxxxxxx', + ], + ], + [ + 'name' => 'ContactPosition', + 'in' => 'formData', + 'schema' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'EmailCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '邮箱验证码', + 'description' => '邮箱验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'MobileCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '短信验证码', + 'description' => '短信验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'SharedContact', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人。当前接口默认set true', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'AsyncEmailVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验邮箱。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncEmailCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'AsyncMobileVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验手机号。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncMobileCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<ContactOperationDTO>', + 'description' => 'Result<ContactOperationDTO>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => '516C2364-18B7-5BAC-9288-AAEA85EEA351', + ], + 'Success' => [ + 'description' => '操作是否成功。true表示成功,false表示失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '调用结果信息', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Data' => [ + 'description' => '当前分类统计的数据结果', + 'type' => 'object', + 'properties' => [ + 'Result' => [ + 'title' => '是否成功', + 'description' => '是否成功', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ContactId' => [ + 'title' => '联系人Id', + 'description' => '联系人Id', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'ErrorList' => [ + 'description' => '备份服务器上报的错误信息。', + 'type' => 'array', + 'items' => [ + 'description' => '备份服务器上报的错误信息。', + 'type' => 'object', + 'properties' => [ + 'Item' => [ + 'title' => 'NAME, EMAIL, MOBILE, POSITION, EMAIL_VERIFY_CODE, MOBILE_VERIFY_CODE', + 'description' => '异常字段', + 'type' => 'string', + 'enumValueTitles' => [ + 'POSITION' => 'POSITION', + 'MOBILE_VERIFY_CODE' => 'MOBILE_VERIFY_CODE', + 'EMAIL' => 'EMAIL', + 'EMAIL_VERIFY_CODE' => 'EMAIL_VERIFY_CODE', + 'NAME' => 'NAME', + 'MOBILE' => 'MOBILE', + ], + 'example' => 'MOBILE_VERIFY_CODE', + ], + 'ErrorCode' => [ + 'title' => 'NAME_ILLEGAL, EMAIL_FORMAT_ILLEGAL, MOBILE_FORMAT_ILLEGAL, MOBILE_CODE_ILLEGAL, EMAIL_CODE_ILLEGAL, POSITION_ILLEGAL', + 'description' => '错误码', + 'type' => 'string', + 'enumValueTitles' => [ + 'EMAIL_CODE_ILLEGAL' => 'EMAIL_CODE_ILLEGAL', + 'MOBILE_FORMAT_ILLEGAL' => 'MOBILE_FORMAT_ILLEGAL', + 'NAME_ILLEGAL' => 'NAME_ILLEGAL', + 'EMAIL_FORMAT_ILLEGAL' => 'EMAIL_FORMAT_ILLEGAL', + 'POSITION_ILLEGAL' => 'POSITION_ILLEGAL', + 'MOBILE_CODE_ILLEGAL' => 'MOBILE_CODE_ILLEGAL', + ], + 'example' => 'MOBILE_CODE_ILLEGAL', + ], + 'ErrorDesc' => [ + 'description' => '诊断问题的描述。', + 'type' => 'string', + 'example' => 'Mobile Code Illegal', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'No permission.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"516C2364-18B7-5BAC-9288-AAEA85EEA351\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"Result\\": true,\\n \\"ContactId\\": 0,\\n \\"ErrorList\\": [\\n {\\n \\"Item\\": \\"MOBILE_VERIFY_CODE\\",\\n \\"ErrorCode\\": \\"MOBILE_CODE_ILLEGAL\\",\\n \\"ErrorDesc\\": \\"Mobile Code Illegal\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '修改企业联系人', + 'description' => '修改企业公共联系人。主账号授权请参考[文档](https://help.aliyun.com/zh/account/user-guide/add-business-address-and-business-contact?spm=a2c4g.11186623.help-menu-35469.d_7_0_5.744a1303wP4uCE&scm=20140722.H_2879086._.OR_help-T_cn~zh-V_1)', + 'requestParamsDescription' => '- OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。该功能目前还未开放。相关参数为空即可。'."\n" + .'- 接口调用走异步验证流程,配合接口SendAsyncMobileCaptcha/SendAsyncEmailCaptcha发送验证链接进行验证。不需要填写验证码。'."\n" + .'- 当前接口仅能管理企业联系人。', + ], + 'EnterpriseContactDelete' => [ + 'summary' => '删除企业联系人。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactId', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要删除的联系人的ID。可调用EnterpriseQueryPageList分页查询账号联系人信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名称', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<Boolean>', + 'description' => 'Result<Boolean>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '36E0A548-4BA3-549B-8855-22E3F5C6D47E', + ], + 'Success' => [ + 'description' => '操作是否成功。true表示成功,false表示失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '消息。', + 'type' => 'string', + 'example' => 'Success', + ], + 'Data' => [ + 'description' => '处理结果', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'No permission.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"36E0A548-4BA3-549B-8855-22E3F5C6D47E\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Success\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '删除企业联系人', + 'description' => '删除企业公共联系人。主账号授权请参考[文档](https://help.aliyun.com/zh/account/user-guide/add-business-address-and-business-contact?spm=a2c4g.11186623.help-menu-35469.d_7_0_5.744a1303wP4uCE&scm=20140722.H_2879086._.OR_help-T_cn~zh-V_1)', + 'requestParamsDescription' => '- OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。该功能目前还未开放。相关参数为空即可。'."\n" + .'- 当前接口仅能管理企业联系人。', + ], + 'EnterpriseContactAdd' => [ + 'summary' => '增加企业联系人。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactName', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactEmail', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'required' => false, + 'example' => '[email protected]', + ], + ], + [ + 'name' => 'ContactMobile', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'required' => false, + 'example' => '1xxxxxxxxxx', + ], + ], + [ + 'name' => 'ContactPosition', + 'in' => 'formData', + 'schema' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'TECH_MANAGER技术负责人', + 'MAINTAIN_MANAGER运维负责人', + 'PROJECT_MANAGER项目负责人', + 'FINANCE_MANAGER财务负责人', + 'CEO', + 'OTHER其它', + ], + 'example' => '1', + ], + ], + [ + 'name' => 'EmailCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '邮箱验证码', + 'description' => '邮箱验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'MobileCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '短信验证码', + 'description' => '短信验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'SharedContact', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人。当前接口默认set true。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'AsyncEmailVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验邮箱。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncEmailCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'AsyncMobileVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验手机号。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncMobileCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名称', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<ContactOperationDTO>', + 'description' => 'Result<ContactOperationDTO>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => '40EA3ECB-2167-5A8E-9327-F7E59E508FA8', + ], + 'Success' => [ + 'description' => '操作是否成功。true表示成功,false表示失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => 'OK', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Successful!', + ], + 'Data' => [ + 'description' => '当前分类统计的数据结果', + 'type' => 'object', + 'properties' => [ + 'Result' => [ + 'title' => '是否成功', + 'description' => '是否成功', + 'type' => 'boolean', + 'example' => 'xxx', + ], + 'ContactId' => [ + 'title' => '联系人Id', + 'description' => '联系人Id', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'ErrorList' => [ + 'description' => '错误状态信息。', + 'type' => 'array', + 'items' => [ + 'description' => '备份服务器上报的错误信息。', + 'type' => 'object', + 'properties' => [ + 'Item' => [ + 'title' => 'NAME, EMAIL, MOBILE, POSITION, EMAIL_VERIFY_CODE, MOBILE_VERIFY_CODE', + 'description' => '异常字段', + 'type' => 'string', + 'enumValueTitles' => [ + 'POSITION' => 'POSITION', + 'MOBILE_VERIFY_CODE' => 'MOBILE_VERIFY_CODE', + 'EMAIL' => 'EMAIL', + 'EMAIL_VERIFY_CODE' => 'EMAIL_VERIFY_CODE', + 'NAME' => 'NAME', + 'MOBILE' => 'MOBILE', + ], + 'example' => 'MOBILE_VERIFY_CODE', + ], + 'ErrorCode' => [ + 'title' => 'NAME_ILLEGAL, EMAIL_FORMAT_ILLEGAL, MOBILE_FORMAT_ILLEGAL, MOBILE_CODE_ILLEGAL, EMAIL_CODE_ILLEGAL, POSITION_ILLEGAL', + 'description' => '错误码', + 'type' => 'string', + 'enumValueTitles' => [ + 'EMAIL_CODE_ILLEGAL' => 'EMAIL_CODE_ILLEGAL', + 'MOBILE_FORMAT_ILLEGAL' => 'MOBILE_FORMAT_ILLEGAL', + 'NAME_ILLEGAL' => 'NAME_ILLEGAL', + 'EMAIL_FORMAT_ILLEGAL' => 'EMAIL_FORMAT_ILLEGAL', + 'POSITION_ILLEGAL' => 'POSITION_ILLEGAL', + 'MOBILE_CODE_ILLEGAL' => 'MOBILE_CODE_ILLEGAL', + ], + 'example' => 'MOBILE_CODE_ILLEGAL', + ], + 'ErrorDesc' => [ + 'description' => '诊断问题的描述。', + 'type' => 'string', + 'example' => 'Mobile Code Illegal', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'No permission.', + ], + [ + 'errorCode' => 'ContactReachLimit', + 'errorMessage' => 'The number of current account contacts has reached the upper limit.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40EA3ECB-2167-5A8E-9327-F7E59E508FA8\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"Successful!\\",\\n \\"Data\\": {\\n \\"Result\\": true,\\n \\"ContactId\\": 0,\\n \\"ErrorList\\": [\\n {\\n \\"Item\\": \\"MOBILE_VERIFY_CODE\\",\\n \\"ErrorCode\\": \\"MOBILE_CODE_ILLEGAL\\",\\n \\"ErrorDesc\\": \\"Mobile Code Illegal\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '创建企业联系人', + 'description' => '创建企业公共联系人。'."\n" + .'主账号授权请参考[文档](https://help.aliyun.com/zh/account/user-guide/add-business-address-and-business-contact?spm=a2c4g.11186623.help-menu-35469.d_7_0_5.744a1303wP4uCE&scm=20140722.H_2879086._.OR_help-T_cn~zh-V_1)', + 'requestParamsDescription' => '- OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。该功能目前还未开放。相关参数为空即可。'."\n" + .'- 接口调用走异步验证流程,配合接口SendAsyncMobileCaptcha/SendAsyncEmailCaptcha发送验证链接进行验证。不需要填写验证码。'."\n" + .'- 当前接口仅能管理企业联系人。', + ], + 'AccountContactQueryPageList' => [ + 'summary' => '查询联系人列表。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'PageNo', + 'in' => 'formData', + 'schema' => [ + 'title' => '页码 default 1', + 'description' => '页码 default 1', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'title' => '页大小, default 10', + 'description' => '页大小, default 10', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Query', + 'in' => 'formData', + 'schema' => [ + 'title' => '姓名、邮箱、手机号', + 'description' => '姓名、邮箱、手机号', + 'type' => 'string', + 'required' => false, + 'example' => 'keyword', + ], + ], + [ + 'name' => 'SharedContact', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '只查询公共联系人。当前接口默认set false。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'PrivateContact', + 'in' => 'formData', + 'schema' => [ + 'description' => '只查询账号私有联系人。当前接口默认set true。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'ShowCompleteInfo', + 'in' => 'query', + 'schema' => [ + 'description' => '是否不进行数据脱敏', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'ListResult<ContactDTO>', + 'description' => 'ListResult<ContactDTO>', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'title' => '总数据量', + 'description' => '总数据量', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '4', + ], + 'PageSize' => [ + 'title' => '页大小', + 'description' => '页大小', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '19', + ], + 'PageNo' => [ + 'title' => '当前页码', + 'description' => '当前页码', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'TotalPage' => [ + 'title' => '总页码数', + 'description' => '总页码数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => '27A90A55-120A-59DC-812E-62448D440E95', + ], + 'Success' => [ + 'description' => '是否调用成功。true:表示调用成功。false:表示调用失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '函数执行时,标准输出的日志内容', + 'type' => 'string', + 'example' => 'successful', + ], + 'Data' => [ + 'description' => '操作结果', + 'type' => 'array', + 'items' => [ + 'description' => '操作结果', + 'type' => 'object', + 'properties' => [ + 'ContactId' => [ + 'title' => '联系人ID', + 'description' => '联系人ID', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'CustomerId' => [ + 'title' => '客户ID,兼容旧模型', + 'description' => '客户ID,兼容旧模型', + 'type' => 'string', + 'example' => 'xxx', + ], + 'EntityId' => [ + 'title' => '实体ID', + 'description' => '实体ID', + 'type' => 'string', + 'example' => 'xxx', + ], + 'EntityType' => [ + 'title' => 'leId/customerId', + 'description' => 'leId/customerId', + 'type' => 'string', + 'example' => 'customerId', + ], + 'ContactName' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'example' => 'xxx', + ], + 'ContactEmail' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'example' => '[email protected]', + ], + 'ContactMobile' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'example' => '1xxxxxxxxxx', + ], + 'ContactPosition' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'example' => '1', + ], + 'EmailConfirmed' => [ + 'title' => '邮箱已验证', + 'description' => '邮箱已验证', + 'type' => 'boolean', + 'example' => 'true', + ], + 'MobileConfirmed' => [ + 'title' => '手机号已验证', + 'description' => '手机号已验证', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SharedContact' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'UpdateUser' => [ + 'title' => '最后修改人', + 'description' => '最后修改人', + 'type' => 'string', + 'example' => 'xxx', + ], + 'UpdateDate' => [ + 'title' => '最后修改时间', + 'description' => '最后修改时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 4,\\n \\"PageSize\\": 19,\\n \\"PageNo\\": 3,\\n \\"TotalPage\\": 1,\\n \\"RequestId\\": \\"27A90A55-120A-59DC-812E-62448D440E95\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"ContactId\\": 0,\\n \\"CustomerId\\": \\"xxx\\",\\n \\"EntityId\\": \\"xxx\\",\\n \\"EntityType\\": \\"customerId\\",\\n \\"ContactName\\": \\"xxx\\",\\n \\"ContactEmail\\": \\"[email protected]\\",\\n \\"ContactMobile\\": \\"1xxxxxxxxxx\\",\\n \\"ContactPosition\\": \\"1\\",\\n \\"EmailConfirmed\\": true,\\n \\"MobileConfirmed\\": true,\\n \\"SharedContact\\": false,\\n \\"UpdateUser\\": \\"xxx\\",\\n \\"UpdateDate\\": 0\\n }\\n ]\\n}","type":"json"}]', + 'title' => '分页查询账号联系人', + 'requestParamsDescription' => 'OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。账号联系人相关场景不涉及,相关参数为空即可。', + ], + 'AccountContactQueryDetail' => [ + 'summary' => '查询联系人详情。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactId', + 'in' => 'formData', + 'schema' => [ + 'description' => '联系人ID。可以通过接口AccountContactQueryPageList分页查询', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名称', + 'type' => 'string', + 'required' => false, + 'example' => 'yanxuan', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<ContactDTO>', + 'description' => 'Result<ContactDTO>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => 'DA632E90-32DB-52DE-823B-4A182169D954', + ], + 'Success' => [ + 'description' => '表示是否调用成功。true:调用成功。 false:调用失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Successful!', + ], + 'Data' => [ + 'description' => '操作结果', + 'type' => 'object', + 'properties' => [ + 'ContactId' => [ + 'title' => '联系人ID', + 'description' => '联系人ID', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'CustomerId' => [ + 'title' => '客户ID,兼容旧模型', + 'description' => '客户ID,兼容旧模型', + 'type' => 'string', + 'example' => 'xxx', + ], + 'EntityId' => [ + 'title' => '实体ID', + 'description' => '实体ID', + 'type' => 'string', + 'example' => 'xxx', + ], + 'EntityType' => [ + 'title' => 'leId/customerId', + 'description' => 'leId/customerId', + 'type' => 'string', + 'example' => 'customerId', + ], + 'ContactName' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'example' => 'xxx', + ], + 'ContactEmail' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'example' => '[email protected]', + ], + 'ContactMobile' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'example' => '1xxxxxxxxxx', + ], + 'ContactPosition' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'example' => '4', + ], + 'EmailConfirmed' => [ + 'title' => '邮箱已验证', + 'description' => '邮箱已验证', + 'type' => 'boolean', + 'example' => 'true', + ], + 'MobileConfirmed' => [ + 'title' => '手机号已验证', + 'description' => '手机号已验证', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SharedContact' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人', + 'type' => 'boolean', + 'example' => 'false', + ], + 'UpdateUser' => [ + 'title' => '最后修改人', + 'description' => '最后修改人', + 'type' => 'string', + 'example' => 'xxx', + ], + 'UpdateDate' => [ + 'title' => '最后修改时间', + 'description' => '最后修改时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'HasSubscription' => [ + 'title' => '查询联系人详情时是否订阅项目', + 'description' => '查询联系人详情时是否订阅项目', + 'type' => 'boolean', + 'example' => 'xxx', + ], + 'Uid' => [ + 'title' => '联系人归属人', + 'description' => '联系人归属人', + 'type' => 'string', + 'example' => 'xxx', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DA632E90-32DB-52DE-823B-4A182169D954\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful!\\",\\n \\"Data\\": {\\n \\"ContactId\\": 0,\\n \\"CustomerId\\": \\"xxx\\",\\n \\"EntityId\\": \\"xxx\\",\\n \\"EntityType\\": \\"customerId\\",\\n \\"ContactName\\": \\"xxx\\",\\n \\"ContactEmail\\": \\"[email protected]\\",\\n \\"ContactMobile\\": \\"1xxxxxxxxxx\\",\\n \\"ContactPosition\\": \\"4\\",\\n \\"EmailConfirmed\\": true,\\n \\"MobileConfirmed\\": true,\\n \\"SharedContact\\": false,\\n \\"UpdateUser\\": \\"xxx\\",\\n \\"UpdateDate\\": 0,\\n \\"HasSubscription\\": true,\\n \\"Uid\\": \\"xxx\\"\\n }\\n}","type":"json"}]', + 'title' => '查询账号联系人详情', + 'requestParamsDescription' => 'OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。账号联系人相关场景不涉及,相关参数为空即可。', + ], + 'AccountContactEdit' => [ + 'summary' => '修改私有联系人。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactId', + 'in' => 'formData', + 'schema' => [ + 'description' => '联系人ID。可调用AccountContactQueryPageList分页查询账号联系人信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactName', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactEmail', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'required' => false, + 'example' => '[email protected]', + ], + ], + [ + 'name' => 'ContactMobile', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'required' => false, + 'example' => '1xxxxxxxxxx', + ], + ], + [ + 'name' => 'ContactPosition', + 'in' => 'formData', + 'schema' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'TECH_MANAGER技术负责人', + 'MAINTAIN_MANAGER运维负责人', + 'PROJECT_MANAGER项目负责人', + 'FINANCE_MANAGER财务负责人', + 'CEO', + 'OTHER其它', + ], + 'example' => '0', + ], + ], + [ + 'name' => 'EmailCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '邮箱验证码', + 'description' => '邮箱验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'MobileCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '短信验证码', + 'description' => '短信验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'SharedContact', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否企业联系人。当前接口默认set false。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + [ + 'name' => 'AsyncEmailVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验邮箱。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncEmailCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'AsyncMobileVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验手机号。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncMobileCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true'."\n", + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<ContactOperationDTO>', + 'description' => 'Result<ContactOperationDTO>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => 'E4E192DF-798B-58AE-B8BF-EBC15E2E85F2', + ], + 'Success' => [ + 'description' => '操作是否成功。取值:true:成功。false:失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '当前分类统计的数据结果', + 'type' => 'object', + 'properties' => [ + 'Result' => [ + 'title' => '是否成功', + 'description' => '是否成功', + 'type' => 'boolean', + 'example' => '{\'TeamDesktops\': [], \'PrivateDesktops\': [], \'UnallocatedTeamDesktops\': []}', + ], + 'ContactId' => [ + 'title' => '联系人Id', + 'description' => '联系人Id', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'ErrorList' => [ + 'description' => '错误码。', + 'type' => 'array', + 'items' => [ + 'description' => '备份服务器上报的错误信息。', + 'type' => 'object', + 'properties' => [ + 'Item' => [ + 'title' => 'NAME, EMAIL, MOBILE, POSITION, EMAIL_VERIFY_CODE, MOBILE_VERIFY_CODE', + 'description' => '异常字段', + 'type' => 'string', + 'enumValueTitles' => [ + 'POSITION' => 'POSITION', + 'MOBILE_VERIFY_CODE' => 'MOBILE_VERIFY_CODE', + 'EMAIL' => 'EMAIL', + 'EMAIL_VERIFY_CODE' => 'EMAIL_VERIFY_CODE', + 'NAME' => 'NAME', + 'MOBILE' => 'MOBILE', + ], + 'example' => 'MOBILE_VERIFY_CODE', + ], + 'ErrorCode' => [ + 'title' => 'NAME_ILLEGAL, EMAIL_FORMAT_ILLEGAL, MOBILE_FORMAT_ILLEGAL, MOBILE_CODE_ILLEGAL, EMAIL_CODE_ILLEGAL, POSITION_ILLEGAL', + 'description' => '错误码', + 'type' => 'string', + 'enumValueTitles' => [ + 'EMAIL_CODE_ILLEGAL' => 'EMAIL_CODE_ILLEGAL', + 'MOBILE_FORMAT_ILLEGAL' => 'MOBILE_FORMAT_ILLEGAL', + 'NAME_ILLEGAL' => 'NAME_ILLEGAL', + 'EMAIL_FORMAT_ILLEGAL' => 'EMAIL_FORMAT_ILLEGAL', + 'POSITION_ILLEGAL' => 'POSITION_ILLEGAL', + 'MOBILE_CODE_ILLEGAL' => 'MOBILE_CODE_ILLEGAL', + ], + 'example' => 'MOBILE_CODE_ILLEGAL', + ], + 'ErrorDesc' => [ + 'description' => '诊断问题的原因。', + 'type' => 'string', + 'example' => 'MOBILE_CODE_ILLEGAL', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E4E192DF-798B-58AE-B8BF-EBC15E2E85F2\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"Result\\": true,\\n \\"ContactId\\": 0,\\n \\"ErrorList\\": [\\n {\\n \\"Item\\": \\"MOBILE_VERIFY_CODE\\",\\n \\"ErrorCode\\": \\"MOBILE_CODE_ILLEGAL\\",\\n \\"ErrorDesc\\": \\"MOBILE_CODE_ILLEGAL\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '修改账号联系人', + 'requestParamsDescription' => '- OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。账号联系人相关场景不涉及,相关参数为空即可。'."\n" + .'- 接口调用走异步验证流程,配合接口SendAsyncMobileCaptcha/SendAsyncEmailCaptcha发送验证链接进行验证。不需要填写验证码。'."\n" + .'- 当前接口仅能管理账号联系人。', + ], + 'AccountContactDelete' => [ + 'summary' => '删除私有联系人。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactId', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要删除的账号联系人的ID。可调用AccountContactQueryPageList分页查询账号联系人信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<Boolean>', + 'description' => 'Result<Boolean>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => '8CCD6B37-98E7-5A68-B1F7-A900C9BFF45C', + ], + 'Success' => [ + 'description' => '操作是否成功。true表示成功,false表示失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '返回信息。', + 'type' => 'string', + 'example' => 'Successful!', + ], + 'Data' => [ + 'description' => '结果数组', + 'type' => 'boolean', + 'example' => '{\'count\': 1}', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8CCD6B37-98E7-5A68-B1F7-A900C9BFF45C\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful!\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '删除账号联系人', + 'requestParamsDescription' => '- OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。账号联系人相关场景不涉及,相关参数为空即可。'."\n" + .'- 当前接口仅能管理账号联系人。', + ], + 'AccountContactAdd' => [ + 'summary' => '创建账号联系人。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ContactName', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人姓名', + 'description' => '联系人姓名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'ContactEmail', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人邮箱', + 'description' => '联系人邮箱', + 'type' => 'string', + 'required' => false, + 'example' => '[email protected]', + ], + ], + [ + 'name' => 'ContactMobile', + 'in' => 'formData', + 'schema' => [ + 'title' => '联系人手机', + 'description' => '联系人手机', + 'type' => 'string', + 'required' => false, + 'example' => '1xxxxxxxxxx', + ], + ], + [ + 'name' => 'ContactPosition', + 'in' => 'formData', + 'schema' => [ + 'title' => '职位:', + 'description' => '职位:', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'TECH_MANAGER技术负责人', + 'MAINTAIN_MANAGER运维负责人', + 'PROJECT_MANAGER项目负责人', + 'FINANCE_MANAGER财务负责人', + 'CEO', + 'OTHER其它', + ], + 'example' => '0', + ], + ], + [ + 'name' => 'EmailCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '邮箱验证码', + 'description' => '邮箱验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'MobileCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '短信验证码', + 'description' => '短信验证码', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'SharedContact', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否公共联系人。当前接口默认set false。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + [ + 'name' => 'AsyncEmailVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验邮箱。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncEmailCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'AsyncMobileVerify', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否公共联系人', + 'description' => '是否异步校验手机号。api调用需要为true。否则将同步强校验验证码。通过接口SendAsyncMobileCaptcha发送验证链接。', + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'AppName', + 'in' => 'formData', + 'schema' => [ + 'description' => '应用名', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'OrientedLeId', + 'in' => 'formData', + 'schema' => [ + 'title' => '当前切换到的企业', + 'description' => '当前切换到的企业', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedEcId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象实体id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + [ + 'name' => 'OrientedNbId', + 'in' => 'formData', + 'schema' => [ + 'description' => '跨企业管理对象售卖场id', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result<ContactOperationDTO>', + 'description' => 'Result<ContactOperationDTO>', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID', + 'type' => 'string', + 'example' => 'E4E192DF-798B-58AE-B8BF-EBC15E2E85F2', + ], + 'Success' => [ + 'description' => '操作是否成功。取值:true:成功。false:失败。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Code' => [ + 'title' => '状态码', + 'description' => '状态码', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '接口返回信息', + 'type' => 'string', + 'example' => 'successful', + ], + 'Data' => [ + 'description' => '当前分类统计的数据结果', + 'type' => 'object', + 'properties' => [ + 'Result' => [ + 'title' => '是否成功', + 'description' => '是否成功', + 'type' => 'boolean', + 'example' => 'True', + ], + 'ContactId' => [ + 'title' => '联系人Id', + 'description' => '联系人Id', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'xxx', + ], + 'ErrorList' => [ + 'description' => '错误状态信息。', + 'type' => 'array', + 'items' => [ + 'description' => '错误状态信息。', + 'type' => 'object', + 'properties' => [ + 'Item' => [ + 'title' => 'NAME, EMAIL, MOBILE, POSITION, EMAIL_VERIFY_CODE, MOBILE_VERIFY_CODE', + 'description' => '异常字段', + 'type' => 'string', + 'enumValueTitles' => [ + 'POSITION' => 'POSITION', + 'MOBILE_VERIFY_CODE' => 'MOBILE_VERIFY_CODE', + 'EMAIL' => 'EMAIL', + 'EMAIL_VERIFY_CODE' => 'EMAIL_VERIFY_CODE', + 'NAME' => 'NAME', + 'MOBILE' => 'MOBILE', + ], + 'example' => 'MOBILE_VERIFY_CODE', + ], + 'ErrorCode' => [ + 'title' => 'NAME_ILLEGAL, EMAIL_FORMAT_ILLEGAL, MOBILE_FORMAT_ILLEGAL, MOBILE_CODE_ILLEGAL, EMAIL_CODE_ILLEGAL, POSITION_ILLEGAL', + 'description' => '错误码', + 'type' => 'string', + 'enumValueTitles' => [ + 'EMAIL_CODE_ILLEGAL' => 'EMAIL_CODE_ILLEGAL', + 'MOBILE_FORMAT_ILLEGAL' => 'MOBILE_FORMAT_ILLEGAL', + 'NAME_ILLEGAL' => 'NAME_ILLEGAL', + 'EMAIL_FORMAT_ILLEGAL' => 'EMAIL_FORMAT_ILLEGAL', + 'POSITION_ILLEGAL' => 'POSITION_ILLEGAL', + 'MOBILE_CODE_ILLEGAL' => 'MOBILE_CODE_ILLEGAL', + ], + 'example' => 'MOBILE_CODE_ILLEGAL', + ], + 'ErrorDesc' => [ + 'description' => '诊断问题的原因。', + 'type' => 'string', + 'example' => 'MOBILE_CODE_ILLEGAL', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 200 => [ + [ + 'errorCode' => 'ContactReachLimit', + 'errorMessage' => 'The number of current account contacts has reached the upper limit.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E4E192DF-798B-58AE-B8BF-EBC15E2E85F2\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Result\\": true,\\n \\"ContactId\\": 0,\\n \\"ErrorList\\": [\\n {\\n \\"Item\\": \\"MOBILE_VERIFY_CODE\\",\\n \\"ErrorCode\\": \\"MOBILE_CODE_ILLEGAL\\",\\n \\"ErrorDesc\\": \\"MOBILE_CODE_ILLEGAL\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '创建账号联系人', + 'description' => '创建账号联系人', + 'requestParamsDescription' => '- OrientedLeId/OrientedEcId/OrientedNbId 为跨企业管理场景使用。账号联系人相关场景不涉及,相关参数为空即可。'."\n" + .'- 当前接口仅能管理账号联系人。', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'accountcenter.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'accountcenter-intl.aliyuncs.com', + ], + ], +]; |
