💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 列表 ~~~[api] get:/admin/stores/index/index string:search#搜索关键词 number:dealerId#商家ID number:cateId#分类ID number:type=1#门店类型,1=>B2C商家,2=>O2O商家,3=>O2O商家(预约配送) number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-06-11 00:30:54", "data": [ { "id": 1, "dealer_id": 1, "cate_id": 1, "type": 1, "name": "stores1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "notice": "欢迎光临,很高兴为您服务", "mobile": "18666868868", "realname": "", "idcard_number": "", "idcard_image": "", "business_license_number": "", "business_license_image": "", "industry_additional_image": "", "province": 0, "city": 0, "district": 0, "twon": 0, "address": "", "longitude": "", "latitude": "", "business_hours_start": "7", "business_hours_end": "24", "template_style": 1, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "sort": 0, "is_support_two": 0, "is_support_express": 1, "is_support_self_pickup": 0, "is_support_delivery": 0, "is_support_make_delivery": 0, "is_self_delivery": 0, "is_audit": 1, "status": 1, "created_at": "2018-06-10 23:47:31", "updated_at": "2018-06-11 00:13:41", "category": { "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": 1, "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": "正常" }, "dealer": { "id": 1, "username": "dealer1", "mobile": "18666868866", "sort": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2018-06-10 22:16:56", "status_text": "正常" }, "is_audit_text": "审核通过", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/stores/index/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-11 00:14:27", "data": { "id": 1, "dealer_id": 1, "cate_id": 1, "type": 1, "name": "stores1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "notice": "欢迎光临,很高兴为您服务", "mobile": "18666868868", "realname": "", "idcard_number": "", "idcard_image": "", "business_license_number": "", "business_license_image": "", "industry_additional_image": "", "province": 0, "city": 0, "district": 0, "twon": 0, "address": "", "longitude": "", "latitude": "", "business_hours_start": "7", "business_hours_end": "24", "template_style": 1, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "sort": 0, "is_support_two": 0, "is_support_express": 1, "is_support_self_pickup": 0, "is_support_delivery": 0, "is_support_make_delivery": 0, "is_self_delivery": 0, "is_audit": 0, "status": 1, "created_at": "2018-06-10 23:47:31", "updated_at": "2018-06-11 00:13:41", "is_audit_text": "未审核", "status_text": "正常" } } ~~~ #### 创建 > 未提交的数据将继承其选择的分类数据 ~~~[api] post:/admin/stores/index/create *number:dealer_id#商家ID *number:cate_id#分类ID *number:type#门店类型,1=>B2C,2=>O2O,3=>O2O(支持预约配送) *string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 array:banner#横幅 string:notice=欢迎光临,很高兴为您服务#公告 string:mobile#手机号码 string:realname#真实姓名 string:idcard_number#身份证号码 string:idcard_image#身份证图片 string:business_license_number#营业执照号码 string:business_license_image#营业执照图片 string:industry_additional_image#行业附加图片 number:province#省份 number:city#城市 number:district#地区 number:twon#乡镇 string:address#地址 string:longitude#经度 string:latitude#纬度 string:business_hours_start#开始营业时间 string:business_hours_end#结束营业时间 number:template_style#模板样式,1=>1列(O2O),2=>2列(B2C) number:delivery_scope#配送范围(O2O商家),1=>直径,2=>区域画点 string:delivery_setting#配送设定 number:delivery_time#配送时间限定(小时,O2O商家) float:delivery_goods_min_price=0.00#配送商品最小价格 float:delivery_price=0.00#配送价格 number:sort=0#排序 number:is_support_two#是否支持二级分类 number:is_support_express=1#是否支持快递 number:is_support_self_pickup=1#是否支持自取 number:is_support_delivery=1#是否支持配送 number:is_support_make_delivery#是否支持预约配送 number:is_self_delivery=1#是否自配送 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~ #### 更新 ~~~[api] post:/admin/stores/index/update/id/:id number:dealer_id#商家ID number:cate_id#分类ID number:type#门店类型,1=>B2C,2=>O2O,3=>O2O(支持预约配送) string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 array:banner#横幅 string:notice=欢迎光临,很高兴为您服务#公告 string:mobile#手机号码 string:realname#真实姓名 string:idcard_number#身份证号码 string:idcard_image#身份证图片 string:business_license_number#营业执照号码 string:business_license_image#营业执照图片 string:industry_additional_image#行业附加图片 number:province#省份 number:city#城市 number:district#地区 number:twon#乡镇 string:address#地址 string:longitude#经度 string:latitude#纬度 string:business_hours_start#开始营业时间 string:business_hours_end#结束营业时间 number:template_style#模板样式,1=>1列(O2O),2=>2列(B2C) number:delivery_scope#配送范围(O2O商家),1=>直径,2=>区域画点 string:delivery_setting#配送设定 number:delivery_time#配送时间限定(小时,O2O商家) float:delivery_goods_min_price=0.00#配送商品最小价格 float:delivery_price=0.00#配送价格 number:sort=0#排序 number:is_support_two#是否支持二级分类 number:is_support_express=1#是否支持快递 number:is_support_self_pickup=1#是否支持自取 number:is_support_delivery=1#是否支持配送 number:is_support_make_delivery#是否支持预约配送 number:is_self_delivery=1#是否自配送 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~ #### 删除 ~~~[api] post:/admin/stores/index/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~