{"info":{"_postman_id":"45daa821-a193-44b4-9d3d-ecf5ca84dfa5","name":"富媒体组件","description":"> 说明：富媒体组件项目接口文档。\n\n> 接口统一响应结构：\n```\n{\n \t\"resultStatus\": true/false,\n \t\"errorCode\": \"\",\n \t\"errorMessage\": \"\",\n \t\"resultData\": object\n}\n```\n\n> 若resultStatus为true，则resultData对应为返回的数据，可能为任何类型的数据。\n> 若resultStatus为false，则表示有错误信息，errorCode为错误码，errorMessage为错误信息\n\n> 注：\n>\n> *   测试环境域名：\n>\n> *   正式环境域名：\n>\n> *   测试用户ID：\n\n\n> 约定：文档中未注明必填都为可选项，未标明为空都不会为空","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"获取文章详情","id":"f49071a9-b449-442c-8177-0951b40533db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"127.0.0.1:9800/v1/richmedia/articles/:articleId","host":["127","0","0","1"],"port":"9800","path":["v1","richmedia","articles",":articleId"],"variable":[{"key":"articleId","value":"","type":"string"}]},"description":"# 请求参数：\n\n#### URL路径参数\n| 参数名称  |  类型  |  描述  | 是否必填 | 默认值 |\n| :-------: | :----: | :----: | :------: | :----: |\n| articleId | Number | 文章id |   true   |        |\n\n------\n\n# 返回参数：\n#### GeneralResult\n|   参数名称   |  类型   |       描述       | 是否必填 |\n| :----------: | :-----: | :--------------: | :------: |\n| resultStatus | Boolean |   返回结果标志   |   true   |\n|  errorCode   | String  | 接口访问错误代码 |  false   |\n| errorMessage | String  | 接口访问错误信息 |  false   |\n|  resultData  | Object  |    返回结果集    |  false   |\n\n#### GeneralResult > resultData 元素基本结构\n|  参数名称   |  类型  |                    描述                     | 是否必填 |\n| :---------: | :----: | :-----------------------------------------: | :------: |\n|  articleId  | Number |                   文章id                    |   true   |\n|    title    | String |                  文章标题                   |   true   |\n|   author    | String |                  文章作者                   |   true   |\n|  coverUrl   | String |              文章封面图片链接               |   true   |\n| publishTime | Stirng | 文章自动发布时间，格式：yyyy-MM-dd HH:mm:ss |   true   |\n| paragraphs  | Array  |              文章段落信息列表               |   true   |\n\n#### GeneralResult > resultData > paragraphs 元素基本结构\n|     参数名称     |  类型  |                             描述                             | 是否必填 |\n| :--------------: | :----: | :----------------------------------------------------------: | :------: |\n|   paragraphId    | Number |                          文章段落id                          |   true   |\n|  paragraphType   | String |     文章段落类型（WORD：文字，IMAGE：图片，VIDEO：视频）     |   true   |\n| paragraphContent | String | 文章段落内容（各类型段落对应的内容如下：WORD：文字段落，IMAGE：图片链接，VIDEO：封面链接 +  分号 + 视频链接（例：http://www.cover.com;http://www.video.com）） |   true   |\n|     serialNo     | String |                         文章段落序号                         |   true   |                          true                             |\n\n\n### 返回参数Example:\n```\n{\n    \"resultStatus\": true,\n    \"errorCode\": null,\n    \"errorMessage\": null,\n    \"resultData\": {\n        \"articleId\": 1,\n        \"title\": \"文章标题\",\n        \"author\": \"文章作者\",\n        \"coverUrl\": \"文章封面图片链接\",\n        \"publishTime\": \"2020-02-23 12:30\",\n        \"paragraphs\": [\n            {\n                \"paragraphId\": 1,\n                \"paragraphType\": \"WORD\",\n                \"paragraphContent\": \"文章段落内容\",\n                \"serialNo\": 1\n            }\n        ]\n    }\n}\n\n```"},"response":[],"_postman_id":"f49071a9-b449-442c-8177-0951b40533db"},{"name":"新增或编辑文章","id":"ad851806-5fd7-4374-bfd4-7f94b38be818","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"文章标题\",\n    \"author\": \"文章作者\",\n    \"coverUrl\": \"文章封面图片链接\",\n    \"publishTime\": \"2020-02-23 12:30\",\n    \"paragraphs\": [\n        {\n            \"paragraphId\": 1,\n            \"paragraphType\": \"WORD\",\n            \"paragraphContent\": \"文章段落内容\"\n        }\n    ]\n}"},"url":{"raw":"127.0.0.1:9800/v1/richmedia/articles/:articleId","host":["127","0","0","1"],"port":"9800","path":["v1","richmedia","articles",":articleId"],"variable":[{"key":"articleId","value":"","type":"string"}]},"description":"# 请求参数：\n\n#### URL路径参数\n\n| 参数名称 | 类型 | 描述 | 是否必填 | 默认值 |\n| --- | --- | --- | --- | --- |\n| articleId | Number | 文章id | true | 0（新增） |\n\n#### 请求体\n\n| 参数名称 | 类型 | 描述 | 是否必填 | 默认值 |\n| --- | --- | --- | --- | --- |\n| title | String | 文章标题 | true |  |\n| author | String | 文章作者 | true |  |\n| coverUrl | String | 文章封面图片链接 | true |  |\n| publishTime | Stirng | 文章自动发布时间，格式：yyyy-MM-dd HH:mm:ss | true |  |\n| paragraphs | Array | 文章段落信息列表 | true |  |\n\n#### 请求体 > paragraphs 元素基本结构\n\n| 参数名称 | 类型 | 描述 | 是否必填 | 默认值 |\n| --- | --- | --- | --- | --- |\n| paragraphId | Number | 文章段落id | true | 0（新增） |\n| paragraphType | String | 文章段落类型（WORD：文字，IMAGE：图片，VIDEO：视频） | true |  |\n| paragraphContent | String | 文章段落内容（各类型段落对应的内容如下：WORD：文字段落，IMAGE：图片链接，VIDEO：封面链接 + 分号 + 视频链接（例：[http://www.cover.com;http://www.video.com））](http://www.cover.com;http://www.video.com））) | true |  |\n\n> 注：段落排序按数组顺序 \n  \n\n---\n\n# 返回参数：\n\n#### GeneralResult\n\n| 参数名称 | 类型 | 描述 | 是否必填 |\n| --- | --- | --- | --- |\n| resultStatus | Boolean | 返回结果标志 | true |\n| errorCode | String | 接口访问错误代码 | false |\n| errorMessage | String | 接口访问错误信息 | false |\n| resultData | Object | 返回结果集 | false |\n\n### 返回参数Example:\n\n```\n{\n    \"resultStatus\": true,\n    \"errorCode\": null,\n    \"errorMessage\": null,\n    \"resultData\": null\n}\n\n ```"},"response":[],"_postman_id":"ad851806-5fd7-4374-bfd4-7f94b38be818"},{"name":"获取OSS临时凭证（STS）","id":"e566b619-c2c3-42f6-87e1-d70891c894cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"http://oss.nailcraftsman.com/v1/oss/account?accountType=30days","protocol":"http","host":["oss","nailcraftsman","com"],"path":["v1","oss","account"],"query":[{"key":"accountType","value":"30days"}]},"description":"# 请求参数：\n\n#### URL后参数\n\n|  参数名称   |  类型  |   描述   | 是否必填 | 默认值 |\n| :---------: | :----: | :------: | :------: | :----: |\n| accountType | Number | 账号类型 |   true   | 30days |\n\n------\n\n# 返回参数：\n#### GeneralResult\n\n|   参数名称   |  类型   |       描述       | 是否必填 |\n| :----------: | :-----: | :--------------: | :------: |\n| resultStatus | Boolean |   返回结果标志   |   true   |\n|  errorCode   | String  | 接口访问错误代码 |  false   |\n| errorMessage | String  | 接口访问错误信息 |  false   |\n|  resultData  | Object  |    返回结果集    |  false   |\n\n#### GeneralResult > resultData 元素基本结构\n\n|    参数名称     |  类型  |                   描述                   | 是否必填 |\n| :-------------: | :----: | :--------------------------------------: | :------: |\n|   accessKeyId   | String |      阿里云oss临时凭证之accessKeyId      |   true   |\n| accessKeySecret | String |    阿里云oss临时凭证之accessKeySecret    |   true   |\n|  securityToken  | String |            阿里云oss临时凭证             |   true   |\n\n> 注：region：oss-cn-shenzhen\n\n> bucket：30days\n\n### 返回参数Example:\n```\n{\n    \"resultStatus\": true,\n    \"errorCode\": null,\n    \"errorMessage\": null,\n    \"resultData\": {\n        \"accessKeyId\": \"STS.NUWkmDide1sSyJqZf7eeXJaun\",\n        \"securityToken\": \"CAISzwJ1q6Ft5B2yfSjIr5biINfwhLtEhrG4e2zAvmZiaep0paTejDz2IHFJdHhrBusXtvs+nG9Y7PYalq9/QoBeQkqctXCVCnsRo22beIPkl5GfJNVm4cTX6gHxZjf/2MjNGeibKPrWZvaqbX3diyZ32sGUXD6+XlujQ7jr7Jl8dYY4UxWScDFFCcs0Qwx5s501OGf2P/SgOQKI523LFxhQpxZbg2Fy4rjdpMqH8Uj+gVT27eUXqo/tQP6jdNI+BJBkT/C/3uF9atCCskhq5gNN6b19gYFd5D7Dpav9OVRK5AicOOemlb8KJQRiNK8hAPwG/rqu198A47OIydWnmk0TbL0IDnyPGbrNmpWURLmbUf8ibqv+Nnj31dSCC4L4qQtMYwhAZV4aKoF+cS4oVk10FWGAeve9gkrNZgrmTLOelaMtlIdty1Lh8coP7NE1riR7uhqAAWU63CUSBaKzAwaFnTQ68zfGUFqJ/G/z8w3rfmzFmVurS/QD7r0F2W6zEkQJhoJFRWNXTuLmpcTG/V4nxBZvco2RhDh2WQnELr+SyG6il0JoVnedMjXVr+3qs75oiyXW6ralPvDUxMwZOX3hhjg43SyYsQebfaAyqqbQuuLwk3aZ\",\n        \"accessKeySecret\": \"3CXVkDNya5S1jzZ4cHsoBnvnHNtNNxWPRuWXvT2zdQx8\"\n    }\n}\n\n```"},"response":[],"_postman_id":"e566b619-c2c3-42f6-87e1-d70891c894cb"}],"event":[{"listen":"prerequest","script":{"id":"17643ffb-eafe-4c47-9dab-7531890f17da","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2ab768c2-da99-43f6-85bf-820333ab99f8","type":"text/javascript","exec":[""]}}]}