AiLearning 智能识别-学习
POST
/rpc/ai/learning
智能识别
1.仅已激活状态可调用
请求参数
Body 参数application/json
id
string <int64>
识别ID【必填】
sku
object (SkuInfo 商品信息)
必需
code
string
商品唯一编码
name
string
商品名称
spuCode
string
商品上级码(spuCode==code 或 spuCode为空时,该商品为顶级商品)
learningMode
enum<integer> <int32>
必需
枚举值:
0123
默认值:
0
skuSaleInfo
object (SkuSaleInfo 商品销售信息)
可选
sales
integer <int32>
销量:重量(克) 、数量
priceUnit
integer <int32>
计价方式(0-重量计价,1-数量计价)
price
integer <int32>
原始单价(分/Kg)
salePrice
integer <int32>
销售单价(分/Kg)
amount
integer <int32>
销售总价(分)
barCode
string
条码
priceChangeMode
integer <int32>
商品是否改价(0-未改价,1-改单价,2-改总价)
priceType
integer <int32>
商品价格类型(1-正常价格,2-临时改价,3-永久改价,4-阶梯变价)
示例
{
"id": "string",
"sku": {
"code": "string",
"name": "string",
"spuCode": "string"
},
"learningMode": 0,
"skuSaleInfo": {
"sales": 0,
"priceUnit": 0,
"price": 0,
"salePrice": 0,
"amount": 0,
"barCode": "string",
"priceChangeMode": 0,
"priceType": 0
}
}
返回响应
🟢200成功
application/json
Body
code
enum<integer> <int32>
必需
枚举值:
0110001001100210031004100510061007150015011503150420002500
默认值:
0
msg
string
状态描述
示例
{
"code": 0,
"msg": "string"
}