优特云
[ { "name": "首页", "url": "http://www.utyun.com/", "target": "0", "child": [] }, { "name": "活动", "url": "http://www.utyun.com/h-col-141.html", "target": "0", "child": [] }, { "name": "产品", "url": "", "target": "1", "child": [ { "name": "U语言", "url": "http://www.utyun.com/h-col-176.html", "target": "0", "child": [] }, { "name": "U平台", "url": "http://www.utyun.com/h-col-150.html", "target": "0", "child": [] } ] }, { "name": "技术与服务", "url": "", "target": "1", "child": [ { "name": "运维服务", "url": "http://www.utyun.com/h-col-161.html", "target": "0", "child": [] }, { "name": "技术方案", "url": "http://www.utyun.com/h-col-178.html", "target": "0", "child": [] } ] }, { "name": "优特云学院", "url": "", "target": "1", "child": [ { "name": "教程", "url": "http://www.utyun.com/h-col-166.html", "target": "0", "child": [] }, { "name": "下载中心", "url": "http://www.utyun.com/h-col-170.html", "target": "0", "child": [] }, { "name": "论坛", "url": "http://www.utyun.com/h-col-169.html", "target": "0", "child": [] } ] }, { "name": "关于优特云", "url": "", "target": "1", "child": [ { "name": "企业概况", "url": "http://www.utyun.com/h-col-171.html", "target": "0", "child": [] }, { "name": "新闻动态", "url": "http://www.utyun.com/h-col-172.html", "target": "0", "child": [] }, { "name": "加入我们", "url": "http://www.utyun.com/h-col-173.html", "target": "0", "child": [] }, { "name": "团队风采", "url": "http://www.utyun.com/h-col-140.html", "target": "0", "child": [] } ] } ]
v0.06.00
商品服务(goods)-商品属性管理

伟 最后一次编辑

3 年多前 28

添加商品类型属性(包括值信息)

基本信息

Path: /goods/goodsAttr/addAttrAndValues

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_name string 必须 属性名称
type_id string 必须 类型ID
attr_type integer 必须 属性类别1选择类型2手动输入类型 format: int32
sort integer 必须 属性排序 format: int32
attr_values object [] 非必须 属性值信息 item 类型: object
├─ attrvalue_id string 必须 属性值ID
├─ sort integer 必须 属性值排序 format: int32
├─ attrvalue_name string 必须 属性值名称
app_id string 非必须 应用ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ id string 必须 商品ID

修改商品类型属性信息

基本信息

Path: /goods/goodsAttr/updateAttrInfo

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_name string 必须 属性名称
delete_ids string [] 非必须 删除的属性值ID列表 item 类型: string
├─ 非必须
type_id string 必须 所属类型id
attr_type integer 必须 属性类别1选择类型2手动输入类型 format: int32
update_list object [] 非必须 更新的属性值列表 item 类型: object
├─ attrvalue_id string 必须 属性值ID
├─ sort integer 必须 属性值排序 format: int32
├─ attrvalue_name string 必须 属性值名称
id string 必须 属性ID
sort integer 必须 属性排序 format: int32
app_id string 非必须 应用ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

更新系统属性关联自定义属性值

基本信息

Path: /goods/goodsAttr/updateSystemAttrvalues

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
delete_ids string [] 非必须 删除的属性值ID列表 item 类型: string
├─ 非必须
update_list object [] 非必须 更新的属性值列表 item 类型: object
├─ attrvalue_id string 必须 属性值ID
├─ sort integer 必须 属性值排序 format: int32
├─ attrvalue_name string 必须 属性值名称
id string 必须 属性ID
app_id string 必须 应用ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

删除或批量删除商品类型属性

基本信息

Path: /goods/goodsAttr/deleteTypeAttr

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_ids string [] 必须 属性ID集合 item 类型: string
├─ 非必须

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

新增商品属性

基本信息

Path: /goods/goodsAttr/create

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_name string 必须 属性名称
type_id string 必须 所属类型ID
attr_type integer 必须 属性类别 format: int32
sort integer 必须 属性排序 format: int32
app_id string 非必须 应用ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ id string 必须 商品ID

更新商品属性

基本信息

Path: /goods/goodsAttr/update

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_name string 必须 属性名称
type_id string 必须 所属类型ID
attr_type integer 必须 属性类别1选择类型2手动输入类型 format: int32
id string 必须 属性ID
sort integer 必须 属性排序 format: int32

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

删除商品属性

基本信息

Path: /goods/goodsAttr/delete

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_id string 必须 属性ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

查询所有的商品属性

基本信息

Path: /goods/goodsAttr/findAllPage

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
pageno integer 必须 当前页码数 format: int32
pagesize integer 必须 每页的记录数 format: int32
sort string 非必须
app_id string 非必须 应用ID
order string 非必须

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object [] 必须 响应数据 item 类型: object
├─ type_name string 必须 类型名称
├─ attr_name string 必须 属性名称
├─ type_id string 必须 所属类型id
├─ attr_type integer 必须 属性类别1选择类型2手动输入类型 format: int32
├─ id string 必须 属性ID
├─ sort integer 必须 属性排序 format: int32
page object 非必须
├─ total integer 非必须 format: int64
├─ records integer 非必须 format: int64
├─ pageno integer 非必须 format: int32
├─ pagesize integer 非必须 format: int32

查询商品属性详情

基本信息

Path: /goods/goodsAttr/getDetail

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_id string 必须 属性ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ attr_name string 必须 属性名称
├─ type_id string 必须 所属类型ID
├─ id string 必须 属性ID
├─ sort integer 必须 属性排序 format: int32

新增商品属性值

基本信息

Path: /goods/goodsAttrValue/create

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
sort integer 必须 排序大小 format: int32
attrvalue_name string 必须 属性值名称
app_id string 非必须 应用ID
attr_id string 必须 属性ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ id string 必须 商品ID

更新商品属性值

基本信息

Path: /goods/goodsAttrValue/update

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
id string 必须 实体 ID
sort integer 必须 属性值排序 format: int32
attrvalue_name string 必须 属性值名称
attr_id string 必须 所属属性id

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

删除商品属性值

基本信息

Path: /goods/goodsAttrValue/delete

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attrvalue_id string 必须 属性值ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

查询所有的商品属性值

基本信息

Path: /goods/goodsAttrValue/findAllPage

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
pageno integer 必须 当前页码数 format: int32
pagesize integer 必须 每页的记录数 format: int32
attr_id string 必须 属性ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object [] 必须 响应数据 item 类型: object
├─ attr_name string 必须 属性名称
├─ id string 必须 属性值ID
├─ sort integer 必须 属性值排序 format: int32
├─ attrvalue_name string 必须 属性值名称
├─ attr_id string 必须 属性ID
page object 非必须
├─ total integer 非必须 format: int64
├─ records integer 非必须 format: int64
├─ pageno integer 非必须 format: int32
├─ pagesize integer 非必须 format: int32

查询商品属性值详情

基本信息

Path: /goods/goodsAttrValue/getDetail

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attrvalue_id string 必须 属性值ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ attr_name string 必须 属性名称
├─ id string 必须 属性值ID
├─ sort integer 必须 属性值排序 format: int32
├─ attrvalue_name string 必须 属性值名称
├─ attr_id string 必须 属性ID

更新商品属性关联的商品属性值

基本信息

Path: /goods/goodsAttrValue/updateAttrValue

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
attr_values object [] 必须 属性值列表 item 类型: object
├─ attr_name string 必须 属性名称
├─ id string 必须 属性值ID
├─ sort integer 必须 属性值排序 format: int32
├─ attrvalue_name string 必须 属性值名称
├─ attr_id string 必须 属性ID
attr_id string 必须 所属属性id

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须 响应数据

优特云