获取第三方配置信息
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/config/getThirdParty</code></li>
</ul>
<h5>Headers</h5>
<ul>
<li>token</li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">key</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>开关列表的key值</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"error_code": 0,
"msg": "success",
"data": [
{
"id": 2,
"cate": "oss",
"title": "阿里云oss存储",//标题
"key": "ali_oss",
"open": true,//开关状态:true 启用,false 禁用
"value": {//配置项的键跟值
"bucket": "tangfen",
"endpoint": "oss-cn-hangzhou.aliyuncs.com",
"accessKeyId": "LTAI5tEcq1CgCNPbAqMzCxnY",
"accessKeySecret": "GrO0wZwQJnGaFnv7SzA1WQqjYg9X5a"
},
"operator": {
"username": "超管2",//操作者昵称
"id": 406,
"phone": "18735584896"//操作者手机
},
"created_at": "2021-12-01 16:21:33",
"updated_at": "2021-12-01 16:21:33"
},
{
"id": 10,
"cate": "oss",
"title": "腾讯云存储",
"key": "tencent_oss",
"open": false,
"value": {
"appId": "1257723087",
"Bucket": "tangfen-1257723087",
"region": "ap-guangzhou",
"secretId": "AKIDRijV0EBsISLyLRGn44nFQKxIODn8ByUj",
"secretKey": "zh8JDqCXfV5OQBgurX5NO8bokPnulLei"
},
"operator": {
"username": "超管2",
"id": 406,
"phone": "18735584896"
},
"created_at": "2021-12-03 15:08:58",
"updated_at": "2021-12-03 15:08:59"
}
]
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">int</td>
<td>0成功</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>ok</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>