文档
测试

商品上架接口

GET
http://192.168.7.11:8080/farm/AppMerchant/ApplyProduct.action

接口描述

上架商品接口

请求参数

参数名
类型
描述
必填
productName
String
商品名称
必填
price
double
商品单价
必填
unit
String
商品计量单位
必填
describes
String
商品描述
必填
merchantId
int
商户的id
必填
stock
int
商品库存
必填
typeId
int
商品类型
必填
token
String
必填
imgUrl
String
图片名
必填
type
int
图片类型 2:商品图片
必填

响应参数

参数名
类型
描述
必填
code
String
0为上架成功,1为上架失败
必填
msg
String
提示信息
必填
count
int
必填
data
array
null
必填
id
String
商品的id
必填