文档
测试

商品列表

POST
http://{{address}}/api/shop/product/index

响应参数

参数名
类型
描述
必填
status
int
示例:1
必填
code
int
示例:1
必填
msg
string
示例:操作成功
必填
data
object
数据字典
必填
records
object
数据字典
必填
current_page
int
示例:1
必填
data
array
数据列表
必填
id
int
示例:1
必填
created_at
string
示例:2022-02-23 23:57:12
必填
updated_at
string
示例:2022-03-07 17:07:43
必填
deleted_at
object
示例:null
必填
name
string
示例:iPhone 13 Pro
必填
slug
string
示例:
必填
brand_id
int
示例:1
必填
category_id
int
示例:5
必填
code
string
示例:
必填
stock
object
示例:null
必填
is_with_variants
int
示例:1
必填
variants
array
数据列表
必填
id
string
示例:9JV6Q8B5aw55
必填
variant
string
示例:外观
必填
optional
boolean
示例:false
必填
items
array
数据列表
必填
ref
string
示例:1K9NCbxPGVSO
必填
val
string
示例:远峰蓝色
必填
code
object
示例:null
必填
stock
object
示例:null
必填
price
object
示例:null
必填
price
string
示例:7999.00
必填
price_old
object
示例:null
必填
sales_count
int
示例:0
必填
status
int
示例:1
必填
is_new
int
示例:0
必填
is_hot
int
示例:0
必填
is_recommend
int
示例:0
必填
is_home_show
int
示例:0
必填
description_short
string
示例:苹果手机简短介绍
必填
description
string
示例:<p>苹果手机详情</p>
必填
meta_title
string
示例:
必填
meta_keywords
string
示例:
必填
meta_description
string
示例:
必填
weight
object
示例:null
必填
length
object
示例:null
必填
width
object
示例:null
必填
height
object
示例:null
必填
shipping_fee
string
示例:0.00
必填
params
array
数据列表
必填
service_ids
array
数据列表
必填
sales
int
示例:0
必填
show_sales
int
示例:0
必填
image_preview
object
数据字典
必填
id
int
示例:13
必填
disk_name
string
示例:62165972e1706213627906.png
必填
file_name
string
示例:iphone-13-pro-blue-select.png
必填
file_size
int
示例:509861
必填
content_type
string
示例:image/png
必填
title
object
示例:null
必填
description
object
示例:null
必填
field
string
示例:image_preview
必填
sort_order
int
示例:13
必填
created_at
string
示例:2022-02-23 23:57:38
必填
updated_at
string
示例:2022-02-23 23:59:06
必填
path
string
示例:http://suminit.test/storage/app/uploads/public/621/659/72e/62165972e1706213627906.png
必填
extension
string
示例:png
必填
images
array
数据列表
必填
id
int
示例:14
必填
disk_name
string
示例:621659763e85c580305917.png
必填
file_name
string
示例:iphone-13-pro-gold-select.png
必填
file_size
int
示例:470516
必填
content_type
string
示例:image/png
必填
title
object
示例:null
必填
description
object
示例:null
必填
field
string
示例:images
必填
sort_order
int
示例:14
必填
created_at
string
示例:2022-02-23 23:57:42
必填
updated_at
string
示例:2022-02-23 23:59:06
必填
path
string
示例:http://suminit.test/storage/app/uploads/public/621/659/763/621659763e85c580305917.png
必填
extension
string
示例:png
必填
first_page_url
string
示例:http://suminit.test/api/shop/product/index?page=1
必填
from
int
示例:1
必填
last_page
int
示例:1
必填
last_page_url
string
示例:http://suminit.test/api/shop/product/index?page=1
必填
next_page_url
object
示例:null
必填
path
string
示例:http://suminit.test/api/shop/product/index
必填
per_page
int
示例:20
必填
prev_page_url
object
示例:null
必填
to
int
示例:2
必填
total
int
示例:2
必填