ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 列表 ~~~[api] get:/admin/stores/category/index number:parentId=0#父ID <<< success { "code": 1, "msg": "", "time": "2018-06-10 22:35:16", "data": [ { "id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "type": 1, "name": "store1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "template_style": 1, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "sort": 0, "is_support_two": 0, "is_support_express": 0, "is_support_self_pickup": 0, "is_support_delivery": 0, "is_support_make_delivery": 0, "is_self_delivery": 0, "status": 1, "created_at": "2018-06-10 22:26:52", "updated_at": "2018-06-10 22:31:43", "children": [], "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 1000 } } ~~~ #### 详情 ~~~[api] get:/admin/stores/category/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-10 22:34:29", "data": { "id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "type": 1, "name": "store1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "template_style": 1, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "sort": 0, "is_support_two": 0, "is_support_express": 0, "is_support_self_pickup": 0, "is_support_delivery": 0, "is_support_make_delivery": 0, "is_self_delivery": 0, "status": 1, "created_at": "2018-06-10 22:26:52", "updated_at": "2018-06-10 22:31:43", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/admin/stores/category/create *number:parent_id=0#父ID *number:type#门店类型,1=>B2C,2=>O2O,3=>O2O(支持预约配送) *string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 number:template_style=1#模板样式,1=>1列(O2O),2=>2列(B2C) number:delivery_scope=1#配送范围(O2O商家),1=>直径,2=>区域画点 number:delivery_time=0#配送时间限定(小时,O2O商家) number:sort=0#排序 number:is_support_two=0#是否支持二级分类 number:is_support_express=0#是否支持快递 number:is_support_self_pickup=0#是否支持自取 number:is_support_delivery=0#是否支持配送 number:is_support_make_delivery=0#是否支持预约配送 number:is_self_delivery=0#是否自配送 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-10 17:29:38", "data": [] } <<< example { "parent_id": 0, "type": 2, "name": "商超便利", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "template_style": 1, "delivery_scope": 1, "delivery_time": 2, "sort": 0, "is_support_two": 0, "is_support_express": 0, "is_support_self_pickup": 1, "is_support_delivery": 1, "is_support_make_delivery": 0, "is_self_delivery": 0, "status": 1 } <<< example { "parent_id": 0, "type": 1, "name": "家电", "template_style": 2, "is_support_express": 1 } ~~~ #### 更新 ~~~[api] post:/admin/stores/category/update/id/:id number:type#门店类型,1=>B2C,2=>O2O,3=>O2O(支持预约配送) string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 number:template_style=1#模板样式,1=>1列(O2O),2=>2列(B2C) number:delivery_scope=1#配送范围(O2O商家),1=>直径,2=>区域画点 number:delivery_time=0#配送时间限定(小时,O2O商家) number:sort=0#排序 number:is_support_two=0#是否支持二级分类 number:is_support_express=0#是否支持快递 number:is_support_self_pickup=0#是否支持自取 number:is_support_delivery=0#是否支持配送 number:is_support_make_delivery=0#是否支持预约配送 number:is_self_delivery=0#是否自配送 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-10 17:32:47", "data": [] } ~~~ #### 删除 ~~~[api] post:/admin/stores/category/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 17:40:13", "data": [] } ~~~