商品-添加/编辑
POST
applet.qiannianjituan.com/backend/goods/add_goods
接口描述
商品添加 功能
请求头
参数名
类型
描述
必填
AdminToken
string
后台用户token
必填
请求参数
参数名
类型
描述
必填
id
int
商品id(编辑时才存在)
必填
cat_id
int
商品分类ID
必填
name
string
商品名称
必填
unit
int
单位
必填
sort
int
商品排序
必填
price
float
会员价
必填
original_price
float
普通价格
必填
cost_price
float
商品会员价
必填
live_price
float
直播价格
必填
detail
text
商品详情
必填
status
int
0下架 1上架
必填
goods_num
int
商品库存数量
必填
goods_warning_num
int
商品库存预警数量
必填
attr
text
多规格
必填
use_attr
int
0不使用, 1使用
必填
goods_pic_list[]
array
图片数据
必填
goods_no
string
商品货号
必填
is_agent_share
int
0 不加入分佣,1 加入分佣
必填
agent_share_price
string
分佣金额
必填
cover_pic
string
商品缩略图
必填
virtual_sales
int
虚拟销量
必填
express_id
int
快递模板id,默认传0
必填
restrict_num
限购数量
必填
restrict_status
限购状态:1.开启,2.关闭
必填
start_num
起拍数量
必填
restrict_start_time
限购开始时间
必填
restrict_end_time
限购结束时间
必填
purchase_price
成本价(葫芦上的门店身份价格)
必填
weight
商品重量
必填
choise_type
选择下单方式:1.自提,2.物流,3.自提和物流
必填
goods_store_type
商品门店分类 1全部 2入驻门店 3虚拟门店
必填