绿洲ERP电商系统


获得属性值精简列表

<p>[TOC]</p> <h5>简要描述</h5> <hr /> <h4><strong>接口名称</strong></h4> <p>获取属性值精简列表</p> <h4><strong>接口描述</strong></h4> <p>根据属性项 ID 查询该属性项下的所有属性值简化列表,用于展示属性值信息(如尺寸属性下的具体值)。</p> <h4><strong>请求方式</strong></h4> <p><code>GET</code></p> <h4><strong>请求 URL</strong></h4> <pre><code>http://localhost:48082/admin-api/erp/product/property/value/simple-list?propertyId={propertyId}</code></pre> <h4><strong>请求参数</strong></h4> <table> <thead> <tr> <th>参数名</th> <th>必填</th> <th>类型</th> <th>说明</th> <th>示例值</th> </tr> </thead> <tbody> <tr> <td>propertyId</td> <td>是</td> <td>整数</td> <td>属性项唯一标识 ID</td> <td>2</td> </tr> </tbody> </table> <hr /> <h5>返回示例</h5> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [ { &amp;quot;id&amp;quot;: 1, &amp;quot;propertyId&amp;quot;: null, &amp;quot;name&amp;quot;: &amp;quot;72&amp;#039;&amp;#039;&amp;quot;, &amp;quot;remark&amp;quot;: null, &amp;quot;createTime&amp;quot;: null }, { &amp;quot;id&amp;quot;: 2, &amp;quot;propertyId&amp;quot;: null, &amp;quot;name&amp;quot;: &amp;quot;60&amp;#039;&amp;#039;&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> <ul> <li>Result说明</li> </ul> <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>propertyId</td> <td>整数</td> <td>是</td> <td>所属属性项 ID(示例中为 <code>null</code>)</td> </tr> <tr> <td>name</td> <td>字符串</td> <td>否</td> <td>属性值名称(如“72&#039;&#039;”)</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>propertyId</code>、<code>remark</code> 和 <code>createTime</code> 可能为 <code>null</code>,需前端兼容处理。</li> <li><strong>扩展性</strong>:属性值可根据业务需求动态添加,后续新增属性值会自动包含在响应中。</li> <li><strong>关联属性项</strong>:<code>propertyId</code> 为空时,需确认是否与请求参数中的 <code>propertyId</code> 一致,或是否需要后端修复数据。</li> </ol>

页面列表

ITEM_HTML