🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 列表 ~~~[api] get:/dealer/goods/template/index string:search#搜索关键词 number:cateId#分类ID number:brandsId#品牌ID number:p=1#当前页数 numbner:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-08-10 11:36:49", "data": [ { "id": 1, "cate_id": 1, "brands_id": 1, "name": "商品", "weight": 0, "volume": 0, "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "", "price": "100.00", "market_price": "200.00", "inventory": 100, "view_count": 0, "sale_count": 0, "sort": 0, "is_free_shipping": 0, "is_hot": 0, "is_new": 0, "is_real": 1, "is_sale": 1, "is_trash": 0, "status": 1, "created_at": "2018-08-09 09:56:42", "updated_at": "2018-08-09 14:02:25", "saled_at": "2018-08-09 14:02:25", "category": { "id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "name": "分类一", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "is_show": 0, "is_hot": 0, "status": 1, "created_at": "2018-08-07 15:52:44", "updated_at": "2018-08-07 16:09:17", "status_text": "正常" }, "brands": { "id": 1, "cate_id": 1, "name": "品牌1", "description": "", "logo": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "status": 1, "created_at": "2018-08-07 17:03:46", "updated_at": "2018-08-07 17:55:01", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 下载 ~~~[api] post:/dealer/goods/template/download *number:template_id#模板商品ID *number:stores_id#门店ID <<< success { "code": 1, "msg": "", "time": "2018-08-11 18:41:17", "data": { "cate_id": 1, "brands_id": 1, "name": "商品一", "weight": 0, "volume": 0, "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/WeJqEtDugxl1bKY5bHwFEQvtqwdiySNL.png", "banner": "a:1:{i:0;s:97:\"http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/w9jMZITTAEvaInXLuFi7VMpe5CxuuaMA.png\";}", "summary": "商品一", "content": "商品一", "price": "1.00", "market_price": "1.00", "inventory": 100, "view_count": 0, "sale_count": 0, "sort": 0, "is_free_shipping": 1, "is_hot": 0, "is_new": 0, "is_real": 1, "is_sale": 1, "status": 1, "created_at": "2018-08-11 11:48:46", "updated_at": "2018-08-11 11:48:46", "saled_at": "2016-01-01 00:00:00", "dealer_id": 1, "stores_id": 1, "template_id": 1, "sn": "20180811184117847251", "id": "1", "status_text": "正常" } } <<< example { "template_id": 1, "stores_id": 1 } ~~~