多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#### 分类列表 ~~~[api] get:/dealer/stores/category/index number:parentId=0#父ID <<< success { "code": 1, "msg": "", "time": "2018-06-11 14:16:21", "data": [ { "id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "type": 1, "name": "cate1", "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", "children": [], "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 1000 } ~~~ #### 分类详情 ~~~[api] get:/dealer/stores/category/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-11 14:16:57", "data": { "id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "type": 1, "name": "cate1", "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": "正常" } } ~~~ #### 列表 ~~~[api] get:/dealer/stores/index/index string:search#搜索关键词 number:cateId#分类ID number:type#门店类型,1=>B2C,2=>O2O,3=>O2O(支持预约配送) number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-06-11 17:25:16", "data": [ { "id": 1, "dealer_id": 1, "cate_id": 1, "auditd_id": 1, "type": 1, "name": "门店1", "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": "\b123456200001011234", "idcard_image": "http://oss.dgyouduo.com/static/img/no-image.png", "business_license_number": "1234567890123456789", "business_license_image": "http://oss.dgyouduo.com/static/img/no-image.png", "industry_additional_image": "http://oss.dgyouduo.com/static/img/no-image.png", "province": 100000, "city": 110000, "district": 111000, "twon": 111100, "address": "详细地址", "longitude": "112.000001", "latitude": "30.000001", "business_hours_start": "7", "business_hours_end": "24", "template_style": 2, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "delivery_goods_min_price": "0.00", "delivery_price": "0.00", "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 17:20:12", "auditd_at": "2018-06-11 17:20:12", "category": { "id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "type": 1, "name": "分类1", "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": "正常" }, "is_audit_text": "审核通过", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/dealer/stores/index/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-11 17:21:06", "data": { "id": 1, "dealer_id": 1, "cate_id": 1, "auditd_id": 1, "type": 1, "name": "门店1", "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": "\b123456200001011234", "idcard_image": "http://oss.dgyouduo.com/static/img/no-image.png", "business_license_number": "1234567890123456789", "business_license_image": "http://oss.dgyouduo.com/static/img/no-image.png", "industry_additional_image": "http://oss.dgyouduo.com/static/img/no-image.png", "province": 100000, "city": 110000, "district": 111000, "twon": 111100, "address": "详细地址", "longitude": "112.000001", "latitude": "30.000001", "business_hours_start": "7", "business_hours_end": "24", "template_style": 2, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "delivery_goods_min_price": "0.00", "delivery_price": "0.00", "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 17:20:12", "auditd_at": "2018-06-11 17:20:12", "is_audit_text": "审核通过", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/dealer/stores/index/create *number:cate_id#分类ID *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#结束营业时间 string:delivery_setting#配送设定 float:delivery_goods_min_price=0.00#配送商品最小价格 float:delivery_price=0.00#配送价格 number:sort=0#排序 number:is_support_express=1#是否支持快递 number:is_support_self_pickup=1#是否支持自取 number:is_support_delivery=1#是否支持配送 number:is_self_delivery=1#是否自配送 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 17:59:46", "data": [] } <<< example { "cate_id": 1, "name": "士多店", "mobile": "18666864521", "business_hours_start": "6:00", "business_hours_end": "22:00" } ~~~ #### 更新 ~~~[api] post:/dealer/stores/index/update/id/:id number:cate_id#分类ID 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#结束营业时间 string:delivery_setting#配送设定 float:delivery_goods_min_price=0.00#配送商品最小价格 float:delivery_price=0.00#配送价格 number:sort=0#排序 number:is_support_express=1#是否支持快递 number:is_support_self_pickup=1#是否支持自取 number:is_support_delivery=1#是否支持配送 number:is_self_delivery=1#是否自配送 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 18:04:11", "data": [] } ~~~ #### 删除 ~~~[api] post:/dealer/stores/index/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 18:04:33", "data": [] } ~~~