数孪-模型-业务对象-需求-关联的具体服务逻辑模型(最后草稿版本)
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>流程-业务对象-需求-关联的具体服务逻辑模型</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/design/draft/modelDraft</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </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;">tenantId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>租户ID</td>
</tr>
<tr>
<td style="text-align: left;">modelId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>数栾模型ID</td>
</tr>
<tr>
<td style="text-align: left;">needsIdList</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string[]</td>
<td>需求ID数组</td>
</tr>
<tr>
<td style="text-align: left;">type_i</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>逻辑模型-分类 (湖仓,物联)</td>
</tr>
<tr>
<td style="text-align: left;">type_ii</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>逻辑模型-类型(API,SDK)</td>
</tr>
<tr>
<td style="text-align: left;">business_target_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>业务对象id</td>
</tr>
<tr>
<td style="text-align: left;">business_target_code</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>业务对象code</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;success&quot;: true,
&quot;code&quot;: &quot;0&quot;,
&quot;message&quot;: &quot;&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: 1,
&quot;appId&quot;: &quot;fc3a772aa768472d835de83ef7304489&quot;,
&quot;typeI&quot;: &quot;lake&quot;,
&quot;typeIi&quot;: &quot;api&quot;,
&quot;businessTargetId&quot;: &quot;target1000001&quot;,
&quot;businessTargetCode&quot;: &quot;染缸&quot;,
&quot;tenantIdStr&quot;: &quot;1305420405076690000&quot;,
&quot;workspaceIdStr&quot;: &quot;1729416683&quot;,
&quot;requestParam&quot;: &quot;[{\&quot;paramname\&quot;:\&quot;s_date\&quot;,\&quot;type\&quot;:\&quot;string\&quot;,\&quot;isnull\&quot;:true,\&quot;example\&quot;:\&quot;2024-12-01\&quot;,\&quot;desc\&quot;:\&quot;描述: 日期(主键), 索引信息:[PRIMARY(BTREE)]\&quot;,\&quot;operation\&quot;:\&quot;=\&quot;},{\&quot;paramname\&quot;:\&quot;price_curve\&quot;,\&quot;type\&quot;:\&quot;string\&quot;,\&quot;isnull\&quot;:true,\&quot;example\&quot;:\&quot;示例值\&quot;,\&quot;desc\&quot;:\&quot;价格曲线\&quot;,\&quot;operation\&quot;:\&quot;=\&quot;}]&quot;,
&quot;returnParam&quot;: &quot;[{\&quot;paramname\&quot;:\&quot;fk_enn_username\&quot;,\&quot;type\&quot;:\&quot;string\&quot;,\&quot;example\&quot;:\&quot;2024-12-01\&quot;,\&quot;desc\&quot;:\&quot;用户名称\&quot;},{\&quot;paramname\&quot;:\&quot;fk_enn_orgno\&quot;,\&quot;type\&quot;:\&quot;string\&quot;,\&quot;example\&quot;:\&quot;\&quot;,\&quot;desc\&quot;:\&quot;组织编码, 索引信息:[PRIMARY(BTREE)]曲线\&quot;}]&quot;,
&quot;createUserItcode&quot;: &quot;mocker-4-datasrv&quot;,
&quot;createUserName&quot;: &quot;后台mock用户&quot;,
&quot;createTime&quot;: &quot;2024-12-08 12:48:52&quot;,
&quot;unionApiInfo&quot;: &quot;[{\&quot;id\&quot;:1,\&quot;apiName\&quot;:\&quot;实体定义列表:(根据分类编码、关键字查询实体定义列表)\&quot;,\&quot;apiUrl\&quot;:\&quot;https://rdfa-gateway.ennew.com/platform-entity/entityType/list\&quot;,\&quot;inputParam\&quot;:\&quot;分类编码,关键字\&quot;,\&quot;outputParam\&quot;:\&quot;实体列表分页\&quot;,\&quot;docUrl\&quot;:\&quot;https://iot-device-service.dev.ennew.com/doc.html\&quot;},{\&quot;id\&quot;:2,\&quot;apiName\&quot;:\&quot;获取设备信息\&quot;,\&quot;apiUrl\&quot;:\&quot;https://rdfa-gateway.ennew.com/platform-entity/entityType/get/{model_code}\&quot;,\&quot;inputParam\&quot;:\&quot;设备类型code\&quot;,\&quot;outputParam\&quot;:\&quot;设备类型code所有测点属性名称\&quot;,\&quot;docUrl\&quot;:\&quot;https://iot-device-service.dev.ennew.com/doc.html\&quot;},{\&quot;id\&quot;:3,\&quot;apiName\&quot;:\&quot;获取设备测点信息 :(根据设备ID, 获取该设备所有测点)\&quot;,\&quot;apiUrl\&quot;:\&quot;https://rdfa-gateway.ennew.com/platform-device/device/list/detail/ByDeviceIds\&quot;,\&quot;inputParam\&quot;:\&quot;设备id\&quot;,\&quot;outputParam\&quot;:\&quot;设备详细信息\&quot;,\&quot;docUrl\&quot;:\&quot;https://iot-device-service.ennew.com/doc.html\&quot;},{\&quot;id\&quot;:4,\&quot;apiName\&quot;:\&quot;获取设备实时测点值\&quot;,\&quot;apiUrl\&quot;:\&quot;https://ennew-energy-data-api.ennew.com/metric/api/v2/query/history\&quot;,\&quot;inputParam\&quot;:\&quot;设备id,测点属性、监测时间范围\&quot;,\&quot;outputParam\&quot;:\&quot;物联实时数据\&quot;,\&quot;docUrl\&quot;:\&quot;https://ennew-energy-data-api.ennew.com/doc.html\&quot;}]&quot;
}
]
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>