文档
测试

获取全部商品

POST
http://192.168.0.101/v1/goods

接口描述

获取所有商品

请求参数

参数名
类型
描述
必填
start
int
跳过条数
必填
limit
int
一次查询条数
必填
goods_type
int
商品类型 1原料 2粉料
必填

响应参数

参数名
类型
描述
必填
errCode
int
自定义code码,详情查询状态码文档
必填
code
int
响应状态码,详情查看状态码文档
必填
msg
string
响应信息
必填
rows
array
数据集合
必填
id
int
商品id
必填
goods_name
string
商品名
必填
goods_price
float
商品价格
必填
weight
int
商品权重
必填
goods_storage
int
库存
必填
goods_type
int
商品类型 1原料 2粉料
必填
goods_new
int
是否新品 0否 1是
必填
goods_sign
int
是否招牌 0否 1是
必填
goodImg
string
商品介绍图
必填
createtime
string
创建时间
必填
template_id
int
运费模板id
必填
is_on_sale
int
是否上架 0否 1是
必填
is_free_shopping
int
是否包邮 0否 1是
必填
check_status
int
审核状态 0未审核 1成功 2失败
必填
goods_content
string
商品详情
必填
total
int
查询的总条数
必填

说明 / 示例

以权重由高到低排序:{ "errCode": 1000, "msg": "获取分类商品成功", "rows": [ { "id": 3, "goods_name": "牛肉汤料", "goods_price": "10.00", "weight": 99, "remarks": "牛肉汤料,好喝", "goods_storage": 100, "goods_type": 1, "goods_new": 0, "goods_sign": 0, "goodImg": "http://qiniu.emjiayuan.com/upload_file/ems/2018071610161252234", "createtime": "2020-04-30 15:00:00", "template_id": 1, "is_on_sale": 0, "is_free_shopping": 0, "check_status": 0, "goods_content": "http://qiniu.emjiayuan.com/products_detail1530526101795" }, { "id": 4, "goods_name": "鸡肉汤料", "goods_price": "10.00", "weight": 88, "remarks": "鸡肉", "goods_storage": 100, "goods_type": 1, "goods_new": 0, "goods_sign": 0, "goodImg": "http://qiniu.emjiayuan.com/upload_file/ems/2018071610161252234", "createtime": "2020-04-30 15:22:32", "template_id": 1, "is_on_sale": 0, "is_free_shopping": 0, "check_status": 0, "goods_content": null } ] }