商品新增
POST
/service/album/album_theme_operation.jsp?act=save_theme
接口描述
新增商品
请求参数
参数名
类型
描述
必填
groups
分组
必填
token
用户登录token
必填
videoUrl
视频地址file:///storage/emulated/0/wsxc/微商相册视频/1585191175187.mp4
必填
duration
视频长度71915
必填
source_type
来源:0,表示自定义
必填
formats
规格[{"formatId":1823,"formatName":"LL","isSelect":false,"needCheck":false,"sum":0},{"formatId":1801,"formatName":"XXL","isSelect":false,"needCheck":false,"sum":0},{"formatId":1822,"formatName":"XXXL","isSelect":false,"needCheck":false,"sum":0},{"formatId":1652,"formatName":"规格7","isSelect":false,"needCheck":false,"sum":0}]
必填
client_type
客户端平台:android
必填
imei
安卓手机标识520000000037128
必填
skuPriceType
商品sku价格类型:2
必填
id
上家商品id,带上这个就是编辑:I202004231729082130000938
必填
goodsNum
货号
必填
videoImg
视频封面file:///storage/emulated/0/wsxc/cache/video_1587634060940
必填
version
app版本号:2701
必填
tags
标签[{"count":0,"isSelected":true,"order":-11768.75,"state":0,"tagId":8092281,"tagName":"粑粑"}]
必填
imsi
SIM卡标识
必填
source_url
来源URL
必填
main_imgs
主图链接
必填
file_type
0 本地地址 1网络地址
必填
personal
是否私密 0:公开 1:私密 2:部分可见 3:部分不可见
必填
subTitle
商品简称
必填
themeType
商品类型 0=图文,1=视频,2=纯文本,3=图文链接,4=9图+1视频
必填
digital_watermark
电子水印
必填
share_type
分享平台,-1表示没有分享
必填
link_url
链接类型商品
必填
skus
库存[{"formatNum":"4","id":"1830;1822","name":"夕阳红 XXXL","price":1.0,"quantity":0,"stock":1},{"formatNum":"2","id":"1830;1823","name":"夕阳红 LL","price":1.0,"quantity":0,"stock":1},{"formatNum":"3","id":"1830;1801","name":"夕阳红 XXL","price":1.0,"quantity":0,"stock":1},{"formatNum":"5","id":"1830;1652","name":"夕阳红 规格7","price":1.0,"quantity":0,"stock":1}]
必填
os
客户端系统android
必填
syncid
同步的图文ID
必填
sources
来源[{"tagId":0,"tagName":"aaaaaaa"}]
必填
platform
客户端:app
必填
priceArr
价格
必填
app_version
app版本号2701
必填
mark_code
水印编码
必填
colors
颜色[{"formatId":1830,"formatName":"夕阳红","isSelect":false,"needCheck":false,"sum":0}]
必填
title
标题
必填
noteArr
备注[{"id":"","isAdded":true,"isNeedTitle":true,"permission":0,"value":"asdfasdf","isMy":false,"mItemType":-1},{"id":"","isAdded":true,"isNeedTitle":false,"permission":0,"value":"asdfasfasdf111","isMy":false,"mItemType":-1}]
必填
watermark
水印[{"color":"#010001","content":"aaaaaaaa","position":5,"type":1}]
必填
响应参数
参数名
类型
描述
必填
errcode
int
示例:0
必填
album_mini_code
string
示例:https://xcimg.szwego.com/minicode_A201910281712079822283_20191028171208.png_180
必填
errmsg
string
示例:新增成功
必填
item_mini_code
string
示例:
必填
album_id
string
示例:A201910281712079822283
必填
id
string
示例:I202005121416048460228543
必填
priceType
int
示例:1
必填
permission
int
示例:1
必填
id
string
示例:IP202005121416048300228625
必填
value
int
示例:3654
必填
showAddCart
boolean
示例:true
必填
miniapp_share
boolean
示例:true
必填
subTitle
string
示例:电脑
必填
miniapp_path_mine
string
示例:pages/goods_detail/index?shop_id=A201910281712079822283&goods_id=I202005121416048460228543
必填
is_my_album
boolean
示例:true
必填
selfThemeType
int
示例:0
必填
imgs
array
数据列表
必填
watermark
string
示例:
必填
is_vip
boolean
示例:true
必填
goods_id
string
示例:I202005121416048460228543
必填
personal
int
示例:0
必填
themeType
int
示例:0
必填
shop_name
string
示例:test02
必填
isShowStock
boolean
示例:false
必填
shop_id
string
示例:A201910281712079822283
必填
subimgsSrc
array
数据列表
必填
skuPriceType
int
示例:2
必填
isTop
int
示例:0
必填
old_time
string
示例:1秒前
必填
personalTagIds
array
数据列表
必填
showGoodsProps
boolean
示例:true
必填
share_time
string
示例:
必填
is_added
boolean
示例:true
必填
formatId
int
示例:17189394
必填
formatName
string
示例:44
必填
formatType
string
示例:1
必填
id
string
示例:19412688;17189394
必填
name
string
示例:蓝 44
必填
price
int
示例:8542
必填
stock
int
示例:21
必填
formatNum
string
示例:
必填
link
string
示例:https://www.micbosscloud.com/static/index.html?#theme_detail/A201910281712079822283/I202005121416048460228543
必填
title
string
示例:电脑端上传图片
必填
formatId
int
示例:19412688
必填
formatName
string
示例:蓝
必填
formatType
string
示例:2
必填
videoURL
string
示例:
必填
videoUrl
string
示例:
必填
selfShopId
string
示例:A201910281712079822283
必填
user_icon
string
示例:https://xcimg.szwego.com/Q0j4TwGTfTIwq9KbChx4lbuwDoXicibSr4kaBDejrohXzhmNHkFkiavxwc8QYqbpEb6jxeHoH44icsNCFx7e3icI5icQ
必填
shop_minicode
string
示例:https://xcimg.szwego.com/minicode_A201910281712079822283_20191028171208.png_180
必填
goodsNum
string
示例:lklfjg
必填
digital_watermark
int
示例:1501582436262912
必填
normal
boolean
示例:false
必填
mark_code
string
示例:103975
必填
old_share_time
string
示例:
必填
time_stamp
int
示例:1589264164862
必填
permission
int
示例:0
必填
id
string
示例:IN202005121416048280228740
必填
value
string
示例:这是一条公开的备注
必填
miniapp_name
string
示例:gh_58e549c2b97b
必填
miniapp_path
string
示例:pages/goods_detail/index?shop_id=A201910281712079822283&goods_id=I202005121416048460228543
必填
addedWatermarks
array
数据列表
必填
subimgs
array
数据列表
必填
selfGoodsId
string
示例:I202005121416048460228543
必填
totalStock
int
示例:126
必填
itemPrice
string
示例:5645~8674
必填
imgsSrc
array
数据列表
必填
time
string
示例:1秒前
必填