文档
测试

获取单个货物详情

POST
http://xhf.qmbzch.cn/api/product_class/get_product_info

请求参数

参数名
类型
描述
必填
product_id
int
货物id
必填

响应参数

参数名
类型
描述
必填
state
string
示例:ok
必填
message
string
示例:查询成功
必填
data
array
数据列表
必填
id
int
示例:2
必填
name
string
示例:蔬菜
必填

说明 / 示例

{ "state": "ok", "message": "ok", "data": { "product_name": "西红柿",//货物名称 "product_class_id": 2,//分类id "company_grouping_id": 1,//单位分组id "product_code": "20322222",//编码 "other_code": "20321",//其他编码 "default_company_key": "kg",//默认单位 "early_warning_number": "100.00",//预警数量 "price": "1.00",//单价 "img": "sadfasdf.jpg",//图片字符串 "imgArray": [ "sadfasdf.jpg" ] } }