企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~[api] get:index/get_product *int:page=1#页码 string:name#商品名称 int:sales#销量:1=从多到少,0=从少到多 int:size_money#综合:0=默认,1=价格升序,2=价格降序 int:product_type_id#商品分类id <<< success { "data": { "data": [             { "id": 1, "name": "测试商品", "image_id": 8, "money": "1.00", "sales": 60, "bazaar_money": "2.00", "image_one": { "id": 8, "url": "/upload/images/20200325/ZUcWqFP50X8pzCpLAqHPl7VH4Az0HTU1QqViamOm.png", "open": 1                 }, "image_url": "http://www.serveradmin.com/upload/images/20200325/ZUcWqFP50X8pzCpLAqHPl7VH4Az0HTU1QqViamOm.png"             },             { "id": 2, "name": "测试商品1", "image_id": 11, "money": "1.00", "sales": 5, "bazaar_money": "2.00", "image_one": { "id": 11, "url": "/upload/images/20200325/Z0y86PZ4XiAJYJQoLwBOrQ23GjRH1SQVlsGQIOCu.png", "open": 1                 }, "image_url": "http://www.serveradmin.com/upload/images/20200325/Z0y86PZ4XiAJYJQoLwBOrQ23GjRH1SQVlsGQIOCu.png"             }          ], "last_page": 1, "per_page": 10, "current_page": 1, "total": 2     }, "code": 8888, "msg": "成功!" } ~~~ ## **请求参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |page|是|int|表示页码| |name|否|string|商品名称| |sales|否|int|销量:1=从多到少,0=从少到多| |size_money|否|int|综合:0=默认,1=价格升序,2=价格降序| |product_type_id|否|int|商品分类id| ## **成功发回参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |code|是|int|表示请求后的状态| |msg|是|string|表示请求提示信息| |data|是|object|返回数据| |last_page|是|int|表示总页数| |per_page|是|string|表示每页条数| |current_page|是|int|表示当前页| |total|是|int|表示总条数| ## **data参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|商品ID| |name|是|string|商品名称| |image_id|是|int|图片ID| |money|是|float|产品售价| |bazaar_money|是|float|产品市场价| |sales|是|int|销量| |image_url|是|sttring|表示图片路径|