企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### 列表 ~~~[api] get:/admin/integral/goods/index string:search#搜索关键词 string:status=all#状态,all=>全部,onSale=>已上架,offSale=>已下架,saled=>已售完 number:cateId#分类ID number:brandsId#品牌ID number:p=1#当前页数 numbner:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-09-07 00:44:33", "data": [ { "id": 1, "sn": "20180907004346599814", "name": "积分商品1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "", "integral": "100.00", "market_price": "10.00", "inventory": 1000, "sort": 0, "is_sale": 0, "is_trash": 0, "status": 1, "created_at": "2018-09-07 00:43:47", "updated_at": "2018-09-07 00:43:47", "saled_at": "2016-01-01 00:00:00", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/integral/goods/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-09-07 00:44:39", "data": { "id": 1, "sn": "20180907004346599814", "name": "积分商品1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "", "content": "", "integral": "100.00", "market_price": "10.00", "inventory": 1000, "sort": 0, "is_sale": 0, "status": 1, "created_at": "2018-09-07 00:43:47", "updated_at": "2018-09-07 00:43:47", "saled_at": "2016-01-01 00:00:00", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/admin/integral/goods/create *string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 string:banner#横幅(轮播图) string:summary#摘要 string:content#内容 *float:integral#积分 *float:market_price#市场价格 *number:inventory#库存 number:sort=0#排序 number:is_sale=0#是否上架 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-09-07 00:43:46", "data": { "id": "1" } } ~~~ #### 更新 ~~~[api] post:/admin/integral/goods/update/id/1 string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 string:banner#横幅(轮播图) string:summary#摘要 string:content#内容 float:integral#积分 float:market_price#市场价格 number:inventory#库存 number:sort=0#排序 number:is_sale=0#是否上架 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-09-09 12:15:44", "data": [] } ~~~ #### 删除 ~~~[api] post:/admin/integral/goods/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-01 12:17:15", "data": [] } ~~~ #### 批量上架 ~~~[api] post:/admin/integral/goods/sales *array:ids#ID集合 <<< success { "code": 1, "msg": "success", "time": "2018-01-12 20:55:58", "data": [] } <<< example { "ids": [1, 2] } ~~~