绿洲ERP电商系统


获取属性项精简列表

<p>[TOC]</p> <h4><strong>接口名称</strong></h4> <ul> <li>获取属性项精简列表</li> </ul> <h4><strong>接口描述</strong></h4> <ul> <li>查询系统中所有属性项的简化列表,用于展示基础属性信息(如型号、尺寸、颜色等)。</li> </ul> <h5>请求URL</h5> <pre><code>http://localhost:48082/admin-api/erp/product/property/simple-list</code></pre> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <hr /> <h5>参数</h5> <ul> <li>无需请求参数,直接调用即可。</li> </ul> <hr /> <h3><strong>成功响应示例</strong></h3> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [ { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;型号&amp;quot;, &amp;quot;remark&amp;quot;: null, &amp;quot;createTime&amp;quot;: null }, { &amp;quot;id&amp;quot;: 2, &amp;quot;name&amp;quot;: &amp;quot;尺寸&amp;quot;, &amp;quot;remark&amp;quot;: null, &amp;quot;createTime&amp;quot;: null }, { &amp;quot;id&amp;quot;: 3, &amp;quot;name&amp;quot;: &amp;quot;颜色&amp;quot;, &amp;quot;remark&amp;quot;: null, &amp;quot;createTime&amp;quot;: null } ], &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th>字段名</th> <th>类型</th> <th>是否可为空</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>整数</td> <td>否</td> <td>状态码(0 表示成功,其他为错误码)</td> </tr> <tr> <td>data</td> <td>数组</td> <td>是</td> <td>属性项列表(失败时可能为空)</td> </tr> <tr> <td>msg</td> <td>字符串</td> <td>是</td> <td>错误信息(成功时通常为空)</td> </tr> </tbody> </table> <hr /> <ul> <li>Data说明</li> </ul> <table> <thead> <tr> <th>字段名</th> <th>类型</th> <th>是否可为空</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>整数</td> <td>否</td> <td>属性项唯一标识 ID</td> </tr> <tr> <td>name</td> <td>字符串</td> <td>否</td> <td>属性名称(如“颜色”)</td> </tr> <tr> <td>remark</td> <td>字符串</td> <td>是</td> <td>备注(示例中为 <code>null</code>)</td> </tr> <tr> <td>createTime</td> <td>长整数</td> <td>是</td> <td>创建时间(示例中为 <code>null</code>)</td> </tr> </tbody> </table> <hr /> <h3><strong>注意事项</strong></h3> <ol> <li><strong>数据用途</strong>:该接口返回的属性项列表通常用于下拉选择、表单配置等场景。</li> <li><strong>空字段处理</strong>:<code>remark</code> 和 <code>createTime</code> 可能为 <code>null</code>,需前端兼容处理。</li> <li><strong>扩展性</strong>:属性项可根据业务需求动态添加,后续新增属性会自动包含在响应中。</li> </ol> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML