配置读写
<p>[TOC]</p>
<h3>读取上云账号配置</h3>
<h4>请求示例</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;123&quot;,
&quot;bid&quot;: &quot;1234&quot;,
&quot;method&quot;: &quot;getCloudAccount&quot;,
&quot;data&quot;: {},
&quot;timestamp&quot;: 1700000000000
}</code></pre>
<h4>响应示例</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;123&quot;,
&quot;bid&quot;: &quot;4&quot;,
&quot;code&quot;: 0,
&quot;message&quot;: &quot;成功&quot;,
&quot;data&quot;: {
&quot;custom&quot;: {
&quot;username&quot;: &quot;current_username&quot;,
&quot;password&quot;: &quot;current_password&quot;,
&quot;serverUrl&quot;: &quot;https://cloud.example.com&quot;
}
},
&quot;timestamp&quot;: 1700000000001
}</code></pre>
<h3>读取RTK账号配置</h3>
<h4>请求示例</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;12&quot;,
&quot;bid&quot;: &quot;124&quot;,
&quot;method&quot;: &quot;getRtkAccount&quot;,
&quot;data&quot;: {},
&quot;timestamp&quot;: 1700000000000
}</code></pre>
<h4>响应示例</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;12&quot;,
&quot;bid&quot;: &quot;124&quot;,
&quot;code&quot;: 0,
&quot;message&quot;: &quot;成功&quot;,
&quot;data&quot;: {
&quot;custom&quot;: {
&quot;server&quot;: &quot;rtk.example.com&quot;,
&quot;port&quot;: 2101,
&quot;mountpoint&quot;: &quot;RTCM3&quot;,
&quot;username&quot;: &quot;rtk_user&quot;,
&quot;password&quot;: &quot;rtk_password&quot;
}
},
&quot;timestamp&quot;: 1700000000001
}</code></pre>
<h3>上云账号配置更新</h3>
<h4>请求示例</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;123&quot;,
&quot;bid&quot;: &quot;1234&quot;,
&quot;method&quot;: &quot;updateCloudAccount&quot;,
&quot;data&quot;: {
&quot;custom&quot;: {
&quot;username&quot;: &quot;new_username&quot;,
&quot;password&quot;: &quot;new_password&quot;,
&quot;serverUrl&quot;: &quot;https://cloud.example.com&quot;
}
},
&quot;timestamp&quot;: 1700000000000
}</code></pre>
<h4>响应格式</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;123&quot;,
&quot;bid&quot;: &quot;1234&quot;,
&quot;code&quot;: 0,
&quot;message&quot;: &quot;成功&quot;,
&quot;data&quot;: {},
&quot;timestamp&quot;: 1700000000000
}</code></pre>
<h3>更改RTK账号配置</h3>
<h4>请求示例</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;12&quot;,
&quot;bid&quot;: &quot;124&quot;,
&quot;method&quot;: &quot;updateRtkAccount&quot;,
&quot;data&quot;: {
&quot;custom&quot;: {
&quot;server&quot;: &quot;rtk.example.com&quot;,
&quot;port&quot;: 2101,
&quot;mountpoint&quot;: &quot;RTCM3&quot;,
&quot;username&quot;: &quot;rtk_user&quot;,
&quot;password&quot;: &quot;rtk_password&quot;
}
},
&quot;timestamp&quot;: 1700000000000
}</code></pre>
<h4>响应格式</h4>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;12&quot;,
&quot;bid&quot;: &quot;124&quot;,
&quot;code&quot;: 0,
&quot;message&quot;: &quot;成功&quot;,
&quot;timestamp&quot;: 1700000000000
}</code></pre>