文档
测试

17、获取分类下所有分组&关联属性

GET
/product/attrgroup/{catelogId}/withattr

响应参数

参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
data
array
数据列表
必填
attrGroupId
int
示例:1
必填
attrGroupName
string
示例:主体
必填
sort
int
示例:0
必填
descript
string
示例:主体
必填
icon
string
示例:dd
必填
catelogId
int
示例:225
必填
attrs
array
数据列表
必填
attrId
int
示例:7
必填
attrName
string
示例:入网型号
必填
searchType
int
示例:1
必填
valueType
int
示例:0
必填
icon
string
示例:xxx
必填
valueSelect
string
示例:aaa;bb
必填
attrType
int
示例:1
必填
enable
int
示例:1
必填
catelogId
int
示例:225
必填
showDesc
int
示例:1
必填
attrGroupId
object
示例:null
必填

说明 / 示例

~~~json { "msg": "success", "code": 0, "data": [{ "attrGroupId": 1, "attrGroupName": "主体", "sort": 0, "descript": "主体", "icon": "dd", "catelogId": 225, "attrs": [{ "attrId": 7, "attrName": "入网型号", "searchType": 1, "valueType": 0, "icon": "xxx", "valueSelect": "aaa;bb", "attrType": 1, "enable": 1, "catelogId": 225, "showDesc": 1, "attrGroupId": null }, { "attrId": 8, "attrName": "上市年份", "searchType": 0, "valueType": 0, "icon": "xxx", "valueSelect": "2018;2019", "attrType": 1, "enable": 1, "catelogId": 225, "showDesc": 0, "attrGroupId": null }] }, { "attrGroupId": 2, "attrGroupName": "基本信息", "sort": 0, "descript": "基本信息", "icon": "xx", "catelogId": 225, "attrs": [{ "attrId": 11, "attrName": "机身颜色", "searchType": 0, "valueType": 0, "icon": "xxx", "valueSelect": "黑色;白色", "attrType": 1, "enable": 1, "catelogId": 225, "showDesc": 1, "attrGroupId": null }] }] }