文档
测试

获取商品规格

GET
{{host}}/web/bao-jia/goods-type

请求参数

参数名
类型
描述
必填
projectId
int
项目ID
必填
goodsId
int
商品ID :商品id与项目名称 "必须" 传一项
可选
goodsName
string
项目名称:项目名称与商品id "必须" 传一项
可选

响应参数

参数名
类型
描述
必填
Code
int
状态码:0
必填
count
string
总条数
必填
data
object
数据字典
必填
0
object
数据字典
必填
attr_id
string
规格ID
必填
goods_code
string
货品号码
必填
goods_en
object
英文规格名称
必填
goods_name
string
规格名称
必填
goods_price
string
商品价格
必填
create_time
string
添加时间
必填
update_time
string
更新时间
必填
goods_img
string
图片
必填
dj_type
string
38:推荐搭建商,39:非推荐搭建商,40:绿色搭建
必填
unit_goods_price
string
销售单价
必填
unit_yu_price
string
采购单价
必填
cash_price
string
押金价格
必填
status
string
现场下单 0:开启,1:禁用
必填
type_name
string
项目名称
必填
type_unit
单位
必填

说明 / 示例

##### >s返回成功 示例代码 ```javascript { "code": 0, "data": [ { "attr_id": "4658", "goods_code": "SAAS004658", "goods_en": null, "goods_name": "㎡", "goods_price": "6.00", "create_time": "1565959268", "update_time": "1565959268", "goods_img": "images/web/cjdd-icon/1.png", "dj_type": "39", "unit_goods_price": "6.00", "unit_yu_price": "3.00", "cash_price": "0.00", "status": "0", "type_name": "特装管理费", "type_unit": "㎡" }, { "attr_id": "4657", "goods_code": "SAAS004657", "goods_en": null, "goods_name": "㎡", "goods_price": "30.00", "create_time": "1565959262", "update_time": "1565959262", "goods_img": "images/web/cjdd-icon/1.png", "dj_type": "38", "unit_goods_price": "30.00", "unit_yu_price": "20.00", "cash_price": "0.00", "status": "0", "type_name": "特装管理费", "type_unit": "㎡" }, { "attr_id": "5255", "goods_code": "SAAS005255", "goods_en": null, "goods_name": "㎡", "goods_price": "60.00", "create_time": "1597027260", "update_time": "1597027260", "goods_img": "public/images/web/cjdd-icon/1.svg", "dj_type": "40", "unit_goods_price": "60.00", "unit_yu_price": "30.00", "cash_price": "0.00", "status": "1", "type_name": "特装管理费", "type_unit": "㎡" } ], "count": "3" } ``` ###### >d返回失败 示例代码 ```javascript { "result":"fail", "Code":204, "msg":"失败", "data":{} } ```