define({ "api": [ { "type": "get", "url": "/api/agent/version", "title": "获取配置信息(version)", "description": "

获取配置信息(version)

", "group": "Agent", "permission": [ { "name": "Passport" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"version\": []版本信息\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n可能出现的错误代码:\n1000 运营商非法", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CompanyController.php", "groupTitle": "Agent", "name": "GetApiAgentVersion" }, { "type": "get", "url": "/api/album/add_agent", "title": "申请经销商(add_agent)", "description": "

申请经销商(add_agent)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "realname", "description": "

姓名

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "address", "description": "

地址

" }, { "group": "Parameter", "type": "double", "optional": true, "field": "lat", "description": "

lat

" }, { "group": "Parameter", "type": "double", "optional": true, "field": "lon", "description": "

lon

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "phone", "description": "

电话

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumAdd_agent" }, { "type": "get", "url": "/api/album/add_favorite", "title": "添加收藏(add_favorite)", "description": "

添加收藏(favorite_list)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "product_id", "description": "

商品id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumAdd_favorite" }, { "type": "get", "url": "/api/album/cat", "title": "分类列表(cat)", "description": "

画册分类(cat)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "parent_id", "description": "

一级菜单传0 二级菜单的id从一级菜单里面获取

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 9,\n \"name\": \"圣地亚哥\",\n \"parent_id\": 0,\n \"level\": \"00\",\n \"pic_url\": \"http://admin.xcx.com/upload/images/20180518/af6cc8fd71241744ccd638afc6ac25f2.png\",\n \"created_at\": \"2018-05-19 14:55:48\",\n \"updated_at\": \"2018-05-19 14:55:48\",\n \"store_id\": 0,\n \"deleted_at\": null,\n \"sort\": 0\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumCat" }, { "type": "get", "url": "/api/album/checklogin", "title": "登陆应用(checklogin)", "description": "

登陆应用(checklogin)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumChecklogin" }, { "type": "get", "url": "/api/album/customer-goods", "title": "获取客户浏览商品统计(customer-goods)", "description": "

获取客户浏览商品统计(customer-goods)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"name\":\n \"count\":\n },\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumCustomerGoods" }, { "type": "get", "url": "/api/album/favorite_del", "title": "收藏删除(favorite_del)", "description": "

收藏删除(favorite_del)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "favorite_id", "description": "

收藏id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[]//返回状态\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumFavorite_del" }, { "type": "get", "url": "/api/album/favorite_list", "title": "收藏列表(favorite_list)", "description": "

收藏列表(favorite_list)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 4,\n \"user_id\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-10-29 15:51:47\",\n \"updated_at\": \"2018-10-29 15:53:15\",\n \"product_id\": 3,\n \"store_id\": 0,\n \"goods\": {\n \"id\": 3,\n \"store_id\": 0,\n \"cat_id\": 9,\n \"specifications_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"style\": \"纯白\",\n \"sort\": 11,\n \"cover_pic\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"hot_cake\": 1,\n \"news\": 1,\n \"detail\": \"

达达娃达娃达娃大青蛙大全大是大非如果v率v恶策但是许多女性的项目部的不行么法可没副本副本副本么方便

\",\n \"created_at\": \"2018-05-19 15:09:04\",\n \"updated_at\": \"2018-05-19 15:09:04\",\n \"deleted_at\": null,\n \"install_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"简约\",\n \"detail_pic\": \"\"\n }\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumFavorite_list" }, { "type": "get", "url": "/api/album/get-agent-address", "title": "获取经销商地址(get-agent-address)", "description": "

获取经销商地址(get-agent-address)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"realname\":\n \"phone\":\n \"address\":\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumGetAgentAddress" }, { "type": "get", "url": "/api/album/get-banner", "title": "获取banner和視頻(get-banner)", "description": "

获取banner和視頻(get-banner)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"video\":{\n 'url':22222,\n 'name':22222,\n 'type':22222,\n 'agent_id':22222,\n }\n \"banner\":{\n 'url':22222,\n 'name':22222,\n 'type':22222,\n 'agent_id':22222,\n },\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumGetBanner" }, { "type": "get", "url": "/api/album/get-customer", "title": "获取客户信息(get-customer)", "description": "

获取客户信息(get-customer)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "openid_id", "description": "

open_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"purpose_level\":\n \"comment\":\n \"address\":\n \"phone\":\n \"tips\":\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumGetCustomer" }, { "type": "get", "url": "/api/album/get-user-info", "title": "获取客户详细(get-user-info)", "description": "

获取客户详细(get-user-info)

", "group": "Album", "permission": [ { "name": "AUTH" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"username\":\n \"is_dealer\":\n ...\n },\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumGetUserInfo" }, { "type": "get", "url": "/api/album/goods", "title": "商品列表(goods)", "description": "

商品列表(goods)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "cat_id", "description": "

分类id

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "keywords", "description": "

关键词.

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "style", "description": "

风格

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"goods\": [\n {\n \"id\": 3,\n \"cover_pic\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"简约\",\n \"style\": \"纯白\",\n \"hot_cake\": 1,\n \"news\": 1,\n \"price\": \"\"\n }\n ],\n \"name\": 品牌名\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumGoods" }, { "type": "get", "url": "/api/album/goods-detail", "title": "商品详细(goods-detail)", "description": "

商品列表(goods-detail)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "goods_id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 3,\n \"store_id\": 0,\n \"cat_id\": 9,\n \"specifications_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"style\": \"纯白\",\n \"sort\": 11,\n \"cover_pic\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"hot_cake\": 1,\n \"news\": 1,\n \"detail\": \"

达达娃达娃达娃大青蛙大全大是大非如果v率v恶策但是许多女性的项目部的不行么法可没副本副本副本么方便

\",\n \"created_at\": \"2018-05-19 15:09:04\",\n \"updated_at\": \"2018-05-19 15:09:04\",\n \"deleted_at\": null,\n \"install_img\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"简约\",\n \"detail_pic\": \"\"\n \"price\": \"\",\n \"price_default\": \"\",\n \"mobile\": \"\",\n \"address\": \"\",\n \"realname\": \"\",\n \"is_favorite\": 1,\n \"favorite_id\": 4\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumGoodsDetail" }, { "type": "get", "url": "/api/album/save_form_id", "title": "添加Form_id(save_form_id)", "description": "

添加Form_id(save_form_id)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "form_id", "description": "

form_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []//返回信息\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumSave_form_id" }, { "type": "get", "url": "/api/album/set-price", "title": "经销商修改价格(set-price)", "description": "

画册(set-price)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "goods_id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" }, { "group": "Parameter", "type": "double", "optional": true, "field": "price", "description": "

价格

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n \"data\":修改后价格\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumSetPrice" }, { "type": "get", "url": "/api/album/style", "title": "属性列表(style)", "description": "

分类样式(style)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 2,\n \"name\": \"1111\",\n \"deleted_at\": null,\n \"created_at\": \"2018-06-05 17:35:08\",\n \"updated_at\": \"2018-06-05 17:35:08\",\n \"store_id\": 0\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "GetApiAlbumStyle" }, { "type": "post", "url": "/api/album/agent_price_set", "title": "厂家价格设置(agent_price_set)", "description": "

厂家价格设置(agent_price_set)

", "group": "Album", "permission": [ { "name": "AUTH" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "point", "description": "

价格设置比例 为0不设置

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "is_show_ma_price", "description": "

厂家价格是否可见 0 不可见 1 可见

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumAgent_price_set" }, { "type": "post", "url": "/api/album/customer-goods-detail", "title": "获取客户浏览商品详细(customer-goods-detail)", "description": "

获取客户浏览商品详细(customer-goods-detail)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "open_id", "description": "

openid

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"name\":\n \"time\":\n \"style\":\n \"cat\":\n },\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumCustomerGoodsDetail" }, { "type": "post", "url": "/api/album/get-cart-of-watch", "title": "客户浏览情况概览(get-cart-of-watch)", "description": "

客户浏览情况概览(get-cart-of-watch)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n \"count_today\":0,\n \"count_all\":0,\n \"count_share\":0,\n \"user\": {\n \"username\":\"王小贱\",\n \"avatar\":\"awdawdawdawdawdawd\",头像\n \"phone\":\"1123123123123\"\n \"open_id\":\"1123123123123\"\n }\n \"count\":6,\n \"action\":[\n \"type1\":1,\n \"type2\":1,\n \"type3\":1,\n \"type4\":1,\n \"type5\":1,\n \"type6\":1,\n \"type7\":1,\n ]\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumGetCartOfWatch" }, { "type": "post", "url": "/api/album/get-count-favorite", "title": "获取客户收藏商品详细(get-count-favorite)", "description": "

获取客户收藏商品详细(get-count-favorite)

", "group": "Album", "permission": [ { "name": "AUTH" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"name\":\n \"count\":\n \"product_id\":\n },\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumGetCountFavorite" }, { "type": "post", "url": "/api/album/get-watch-recored", "title": "查看客户浏览情况(get-watch-recored)", "description": "

查看客户浏览情况(get-watch-recored)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "type", "description": "

查询方式 1 按用户 2 按时间 3 按类型

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "user_id", "description": "

user_id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "action", "description": "

行为类型 1 收藏 2查看类目 3查看商品 4登陆 5点击图片 6 点击导航 7一键拨号

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "start_time", "description": "

查询开始时间

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "end_time", "description": "

查询结束时间

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n \"type1\":{ 1 收藏 2查看类目 3查看商品 4登陆 5点击图片 6 点击导航 7一键拨号\n \"time\": 2018-1-1 10:10:12,\n \"action\": '做了什么什么都做',\n \"user\": [\n \"username\":\"王小贱\",\n \"avatar\":\"awdawdawdawdawdawd\",头像\n \"phone\":\"1123123123123\"\n ]\n }\n ...\n \"count\":6;\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumGetWatchRecored" }, { "type": "post", "url": "/api/album/get_data_cat", "title": "获取分类访问数据(get_data_cat)", "description": "

获取分类访问数据(get_data_cat)

", "group": "Album", "permission": [ { "name": "需要登录" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "parent_id", "description": "" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"1\": [\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n ],\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumGet_data_cat" }, { "type": "post", "url": "/api/album/get_data_cat_single", "title": "单用户获取分类访问数据(get_data_cat_single)", "description": "

单用户获取分类访问数据(get_data_cat_single)

", "group": "Album", "permission": [ { "name": "需要登录" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "open_id", "description": "" }, { "group": "Parameter", "type": "int", "optional": true, "field": "parent_id", "description": "" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"1\": [\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n ],\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumGet_data_cat_single" }, { "type": "post", "url": "/api/album/get_data_goods", "title": "获取访问数据(get_data_goods)", "description": "

获取访问数据(get_data_goods)

", "group": "Album", "permission": [ { "name": "需要登录" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"1\": [\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n ],\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumGet_data_goods" }, { "type": "post", "url": "/api/album/get_statistical", "title": "获取分享记录(get-statistical)", "description": "

获取分享记录(get-statistical)

", "group": "Album", "permission": [ { "name": "AUTH" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "open_id", "description": "

open_id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "type", "description": "

1 尺寸统计 2拨打电话 3 分享

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[\n {\n 'content':xxxxx,\n 'time':xxx-xx-xx,\n },\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumGet_statistical" }, { "type": "post", "url": "/api/album/set-customer", "title": "设置客户信息(set-customer)", "description": "

设置客户信息(set-customer)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "openid_id", "description": "

openid

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "key", "description": "

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "value", "description": "

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"purpose_level\":\n \"address\":\n \"comment\":\n \"phone\":\n \"tips\":\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumSetCustomer" }, { "type": "post", "url": "/api/album/set-phone", "title": "获取用户号码(set-phone)", "description": "

获取用户号码(set-phone)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "code", "description": "

code

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "iv", "description": "

偏移量

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "encrypted", "description": "

加密参数

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumSetPhone" }, { "type": "post", "url": "/api/album/set-watch", "title": "获取用户操作记录(set-watch)", "description": "

获取用户操作记录(set-watch)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id 模拟值为0

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "detail", "description": "

详细

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "type", "description": "

5点击图片 6 点击导航 7一键拨号

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n \"msg\":返回信息,\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumSetWatch" }, { "type": "post", "url": "/api/album/statistical", "title": "记录分享次数(statistical)", "description": "

记录分享次数(statistical)

", "group": "Album", "permission": [ { "name": "AUTH" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "goods_id", "description": "

商品id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"success\",\n \"data\":[]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumStatistical" }, { "type": "post", "url": "/api/album/xyx_login", "title": "登陆(xyx_login)", "description": "

登陆(xyx_login)

", "group": "Album", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "code", "description": "" }, { "group": "Parameter", "type": "int", "optional": true, "field": "agent_id", "description": "

经销商id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImIyNGI3MzY3MDNmZDg3MGFjNTg2MWIxNDUzMDcyYjljYzFmNmJhMzE2NTAxZWVlNGYzM2M5MTIzNzFmNGYzZjg2MTY1M2YxMjE2YzE4OTFiIn0.eyJhdWQiOiI5IiwianRpIjoiYjI0YjczNjcwM2ZkODcwYWM1ODYxYjE0NTMwNzJiOWNjMWY2YmEzMTY1MDFlZWU0ZjMzYzkxMjM3MWY0ZjNmODYxNjUzZjEyMTZjMTg5MWIiLCJpYXQiOjE1NDA3OTYyMTYsIm5iZiI6MTU0MDc5NjIxNiwiZXhwIjoxNTcyMzMyMjE1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Ruihvl_HMCAHx9XDfeckz48Q_72kfG7vWDsqDrZWbrjq-yuNpM3LrUF-nlsKjedo97BwU_Apz-jnGVqr0ONKZlH-aBKDmIgM2aUZfFADsHhHNJH_oU2fMe1bOrjfUp-PJxfVWQS8c8h5RYmeqtzAYCKaD4P7OZbLmOX0YosKghpaGtiyE65s6jtrOXRhAzXAhYsZToQNBMokFVRqGih9EWuVp6EVwRtI3cb4IV6iQf08cX9DGlLLBJJzLWR5ZWgxJLAGrj5iMCWBl4JKVR8Fsy-xnx3EtrB7ODpJH6hB_u3XnUSAFuaG-KzMPLsj45iqg2hy53er2xtcfAowQFsPoAbZZu0n8c9hWt4GLemR6N1iZ3LBViv3tL5BK52pinQzAnmvltAhJP1YhfTOOjzkxcYVh2JeJagufEoxeeUarMMn21gQSFEzKFCimI7zZQxhT9leLpUn51DLD8Mu87NpYb3JN-JFbOlIDA7bDN3bNto7uuSuC4eBwPo3Ge0StuW4kjHsDTcrVF2He_8FdrPcPpGcvQsXQgv4vwlEhbL8dTlrOodum7H_tY_qUxUG1pEg6bfpn_82ej-AOSc9xi0nrhdcS9y_Z68rcwOJu8esI1pXm9TeQdZIDG85y_t74At8XN6oFcIM__6_dTne_3DHwijW-uOLupNky-5J4ILmZck\",\n \"user\": {\n \"user_id\": 1,\n \"is_agent\": 1,\n \"agent_id\": 4\n }\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumController.php", "groupTitle": "Album", "name": "PostApiAlbumXyx_login" }, { "type": "post", "url": "/api/album_post/del", "title": "删除海报(del) 已废弃", "description": "

删除海报(del)

", "group": "Album_Post", "permission": [ { "name": "需要登录" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": true, "field": "url", "description": "

图片

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php", "groupTitle": "Album_Post", "name": "PostApiAlbum_postDel" }, { "type": "post", "url": "/api/album_post/download", "title": "下载海报(download)", "description": "

生成海报(download)

", "group": "Album_Post", "permission": [ { "name": "需要登录" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "poster_id", "description": "

海报id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": []\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php", "groupTitle": "Album_Post", "name": "PostApiAlbum_postDownload" }, { "type": "post", "url": "/api/album_post/info", "title": "获取海报数据(info)", "description": "

获取海报数据(info)

", "group": "Album_Post", "permission": [ { "name": "需要登录" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n 'posters':'asdawd', //海报\n 'words':'asdawd', //话术\n 'introduce':'222', //介绍\n 'share':'xxx' //分享图片\n 'phone':'xxx' //电话\n 'username':'xxx' //姓名\n 'title':'xxx' //分享标题\n 'qrcode':'xxx' //二维码\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumPosterController.php", "groupTitle": "Album_Post", "name": "PostApiAlbum_postInfo" }, { "type": "get", "url": "/api/attachment/delete/{md5}", "title": "删除文件(图片)", "description": "

删除文件(图片)

", "group": "Attachment", "permission": [ { "name": "Passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "md5", "description": "

图片md5码

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"result\": true/false\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 205 ATTACHMENT_DELETE_FAILED 删除附件文件失败\n 206 ATTACHMENT_RECORD_DELETE_FAILED 删除附件记录失败\n 1203 ATTACHMENT_NOT_EXIST 附件不存在", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AttachmentController.php", "groupTitle": "Attachment", "name": "GetApiAttachmentDeleteMd5" }, { "type": "get", "url": "/api/attachment/download/{md5}", "title": "下载文件(图片)", "description": "

下载文件(图片)(get code)

", "group": "Attachment", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "md5", "description": "

图片md5码

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n 文件二进制码\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 404 Not found", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AttachmentController.php", "groupTitle": "Attachment", "name": "GetApiAttachmentDownloadMd5" }, { "type": "post", "url": "/api/attachment/upload", "title": "通用上传接口", "description": "

通用上传接口

", "group": "Attachment", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "tag", "description": "

附件标签 avatar video dream

" }, { "group": "Parameter", "type": "File", "optional": false, "field": "file", "description": "

附件(可以多个,使用file.xxx,可返回多个)[默认大小【10M】, 类型图片png jpg gif,视频类型mp4]

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": [\n \"md5\": \"57c0fe723e1d7f7b0e45fd455aee19f2\",\n \"url\": \"http://dev.xxg.com/upload/upload/20180727/57c0fe723e1d7f7b0e45fd455aee19f2.jpg\"\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 200 SAVE_USER_FAILED 保存用户数据失败\n 201 ATTACHMENT_MKDIR_FAILED 创建附件目录失败\n 202 ATTACHMENT_UPLOAD_INVALID 上传附件文件无效\n 203 ATTACHMENT_SAVE_FAILED 保存附件失败\n 204 ATTACHMENT_MOVE_FAILED 移动附件失败\n 205 ATTACHMENT_DELETE_FAILED 删除附件文件失败\n 206 ATTACHMENT_RECORD_DELETE_FAILED 删除附件记录失败\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 1101 INCORRECT_VERIFY_CODE 输入验证码错误\n 1105 USER_DOES_NOT_EXIST 用户不存在\n 1200 ATTACHMENT_UPLOAD_FAILED 附件上传失败\n 1201 ATTACHMENT_SIZE_EXCEEDED 附件大小超过限制\n 1202 ATTACHMENT_MIME_NOT_ALLOWED 附件类型不允许\n 1203 ATTACHMENT_NOT_EXIST 附件不存在", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AttachmentController.php", "groupTitle": "Attachment", "name": "PostApiAttachmentUpload" }, { "type": "post", "url": "/api/auth/login", "title": "微信登陆入口(login)", "description": "

微信登陆入口(login)

", "group": "Auth", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "code", "description": "

登录凭证

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "nickname", "description": "

微信昵称

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "avatar", "description": "

微信头像

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjdjYWUyYzFmYTUwMTIyZDI0ZTRiYTZhZGZhNmQxYmZlOWNiMzIxMTBmYWJlZjNjYzIyNmViZjRmNGExNWM3NjllNmU2ZTNiYWE5OGNhOWUzIn0.eyJhdWQiOiIxIiwianRpIjoiN2NhZTJjMWZhNTAxMjJkMjRlNGJhNmFkZmE2ZDFiZmU5Y2IzMjExMGZhYmVmM2NjMjI2ZWJmNGY0YTE1Yzc2OWU2ZTZlM2JhYTk4Y2E5ZTMiLCJpYXQiOjE0NzU0MTE1NTgsIm5iZiI6MTQ3NTQxMTU1OCwiZXhwIjo0NjMxMDg1MTU4LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.E9YGEzuRUOk02aV1EiWLJ_pD0hKoCyW0k_sGy63hM3u5X8K_HI1kVhaU6JNLqLZeszIAroTEDB8XMgZKAqTLlwtL8PLCJcuDoxfk1BRHbfjhDheTsahBysKGalvNEpzRCrGlao0mS0Cg9qDpEsndtypPFS8sfaflToOzbJjiSK2DvQiHSH8xZI3zHJTezgZMz-pB_hPTxp8ajdv0ve1gWtWjs3vERr0Y91X4hngO8X7LuXtAYtfxGZRIye12YE7TuLBMYzj8CCfiRt7Smhyf4palNW5mzKlZpa2l87n6NQ14Iy4oMzQ2PON1j_swrosuE2yZohGOn6fDdSCBRdJ6dLD_emjBdQCQOoB63R7BbhFZgvFX25TjzFJ7r9AdVMiGmebuRKEVSZV_JCGu1C71OIbQk-UK35s00gSr2fmJGBbN2cZTXBRTJpfuMZ_ihFYEZrvVq_Ih2X0xkd36JUuxaUld1BXRgPZvH-9jBuhe0YW2OOlgwpdm6ZB8BMcuS4ftLoi6FipgzFqfIuy-0ZqPMDnJaG7Gycrdpxza00mgOFxYxJtqwZNsUWFRZEVU881l6VC_cy294YXSPQxUwEoyKg-G5Pm8AEB9bqv5z4EU4B8-XTd3zKNqtNba_snHbc711i4EytCiZfYSjNB1hwenq45YYOAhPTwOpFI0kxyRazc\",\n \"user\": {\n \"id\": 1,\n \"name\": \"15888888888\",\n \"email\": \"abcdefg@gmail.com\",\n \"phone\": \"15888888888\",\n \"avatar\": null,\n \"last_ip\": null,\n \"created_at\": \"2016-09-30 00:45:13\",\n \"updated_at\": \"2016-09-29 16:43:36\"\n }\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 1102 INCORRECT_USER_OR_PASS 用户名或密码不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AuthController.php", "groupTitle": "Auth", "name": "PostApiAuthLogin" }, { "type": "get", "url": "/api/album_boss/boss_interactive", "title": "经销商互动排名(boss_interactive)", "description": "

经销商互动排名(boss_interactive)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"realname\" : 释迦摩尼,\n \"interactive\" : 111\n \"avatar\" : 111\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "GetApiAlbum_bossBoss_interactive" }, { "type": "get", "url": "/api/album_boss/get_top", "title": "经销商排行榜(get_top)", "description": "

经销商排行榜(get_top)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"agent\": [\n {\n \"id\": 3,\n \"avatar\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"张三\",\n \"get_count\": \"客户数量\",\n }\n ],\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "GetApiAlbum_bossGet_top" }, { "type": "post", "url": "/api/album_boss/agent_analysis", "title": "经销商分析(agent_analysis)", "description": "

经销商分析(agent_analysis)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"realname\" : 释迦摩尼,\n \"pointCount\" : 111\n \"callCount\" : 111\n \"favoriteCount\" : 111\n \"get_count\" : 111\n \"share_times\" : 111\n \"newCount\" : 111\n }\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_analysis" }, { "type": "post", "url": "/api/album_boss/agent_customer", "title": "经销商客户(agent_customer)", "description": "

经销商客户(agent_customer)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "agent_id", "description": "

经销商id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "pageNum", "description": "

分页

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"agent\": [\n {\n \"id\": 3,\n \"avatar\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"张三\",\n \"address\": \"四川省\",\n \"phone\": \"8208208820\",\n \"lon\": \"100.123123\",\n \"lat\": \"123.123123\",\n }\n ],\n \"customer\": [\n {\n \"id\": 3,\n \"avatar\": \"http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg\",\n \"name\": \"张三\",\n \"address\": \"四川省甘肃市\"\n }\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_customer" }, { "type": "post", "url": "/api/album_boss/agent_overview_active", "title": "经销商总览活跃客户(agent_overview_active)", "description": "

经销商总览活跃客户(agent_overview_active)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"activeCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\n }\n ],\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_overview_active" }, { "type": "post", "url": "/api/album_boss/agent_overview_call", "title": "经销商总览咨询(agent_overview_call)", "description": "

经销商总览咨询(agent_overview_call)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "day", "description": "

天数

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"callCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\n }\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_overview_call" }, { "type": "post", "url": "/api/album_boss/agent_overview_favorite", "title": "经销商总览兴趣占比(agent_overview_favorite)", "description": "

经销商总览兴趣占比(agent_overview_favorite)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "parent_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "start", "description": "

开始时间

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "end", "description": "

结束时间

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"arrFavorite\": [\n {\n 'name':'asdawd',\n 'point':'asdawd',\n 'num':'1',\n }\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_overview_favorite" }, { "type": "post", "url": "/api/album_boss/agent_overview_funnel", "title": "经销商总览漏斗(agent_overview_funnel)", "description": "

经销商总览漏斗(agent_overview_funnel)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"customerFollow\":11,\n \"shareCount\":11,\n \"totalCustomerCount\":11,\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_overview_funnel" }, { "type": "post", "url": "/api/album_boss/agent_overview_left", "title": "经销商总览左侧(agent_overview_left)", "description": "

经销商总览左侧(agent_overview_left)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "start", "description": "

开始时间

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "end", "description": "

结束时间

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"customerFollow\":11,\n \"downloadCount\":11,\n \"shareCount\":11,\n \"newCustomerCount\":11,\n \"totalCustomerCount\":11,\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_overview_left" }, { "type": "post", "url": "/api/album_boss/agent_overview_new", "title": "经销商总览新增客户(agent_overview_new)", "description": "

经销商总览新增客户(agent_overview_new)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "day", "description": "

天数

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"newCustomers\": [\n {\n \"day\" : 03/25,\n \"num\" : 111\n }\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_overview_new" }, { "type": "post", "url": "/api/album_boss/agent_statistical", "title": "经销商数据(agent_statistical)", "description": "

经销商数据(agent_statistical)

", "group": "Boss", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "agent_id", "description": "

经销商id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "start", "description": "

开始时间

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "end", "description": "

结束时间

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"favoriteCount\":11,\n \"downloadCount\":11,\n \"shareCount\":11,\n \"newCustomerCount\":11,\n \"totalCustomerCount\":11,\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AlbumBossController.php", "groupTitle": "Boss", "name": "PostApiAlbum_bossAgent_statistical" }, { "type": "get", "url": "/api/car/delete", "title": "删除", "description": "

删除

", "group": "Car", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "ids", "description": "

主键id 数组

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": 2005\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CarController.php", "groupTitle": "Car", "name": "GetApiCarDelete" }, { "type": "get", "url": "/api/car/index", "title": "购物车", "description": "

购物车

", "group": "Car", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": " HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"goods_num\": 2, 加入购物车商品的数量\n \"created_at\": null,\n \"goods\": {\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"status\": 1,\n \"price\": 101100, 商品价格(分)\n \"sale_number\": 91, 已售数量\n \"stock\": 200, 总库存\n }\n },\n ],\n \"first_page_url\": \"http://www.s1.com/api/car/index?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/car/index?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/car/index\",\n \"per_page\": 15,\n \"prev_page_url\": null,\n \"to\": 2,\n \"total\": 2\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CarController.php", "groupTitle": "Car", "name": "GetApiCarIndex" }, { "type": "post", "url": "/api/car/update", "title": "编辑", "description": "

编辑(修改购物车商品数量)

", "group": "Car", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "number", "description": "

购买数量

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": " HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": 2005\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CarController.php", "groupTitle": "Car", "name": "PostApiCarUpdate" }, { "type": "get", "url": "/api/card/honor", "title": "个人荣誉(honor)", "description": "

个人荣誉(honor)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"honor\": []//个人荣誉\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardHonor" }, { "type": "get", "url": "/api/card/index", "title": "名片主页(index)", "description": "

公司详情(index)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"banner\": []//轮播图\n \"project\": []//经营项目\n \"trend\": []//个人动态\n \"info\": []//个人详情\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardIndex" }, { "type": "get", "url": "/api/card/info", "title": "个人详情(info)", "description": "

个人详情(info)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"info\": []//个人详情\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardInfo" }, { "type": "get", "url": "/api/card/progress", "title": "个人经历(progress)", "description": "

个人经历(progress)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"progress\": []//个人经历\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardProgress" }, { "type": "get", "url": "/api/card/project", "title": "经营项目(project)", "description": "

经营项目(project)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"project\": []//经营项目\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardProject" }, { "type": "get", "url": "/api/card/projectDetail", "title": "经营项目详情(projectDetail)", "description": "

经营项目详情(projectDetail)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "pro_id", "description": "

项目ID

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"project\": []//经营项目\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardProjectdetail" }, { "type": "get", "url": "/api/card/setting", "title": "基础设置", "description": "

基础设置

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardSetting" }, { "type": "get", "url": "/api/card/trend", "title": "所有动态(trend)", "description": "

所有动态(trend)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"trend\": []//所有动态\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardTrend" }, { "type": "get", "url": "/api/card/trendDetail", "title": "个人动态详情(trendDetail)", "description": "

个人动态详情(trendDetail)

", "group": "Card", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "user_id", "description": "

user_id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "trend_id", "description": "

动态ID

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"trend\": []//经营项目\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CardController.php", "groupTitle": "Card", "name": "GetApiCardTrenddetail" }, { "type": "get", "url": "/api/cate/index", "title": "分类", "description": "

分类

", "group": "Cate", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "page", "defaultValue": "1", "description": "

页码(分页参数)

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "id", "description": "

分类 id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"cates\": [\n {\n \"id\": 1,\n \"name\": \"首页分类1\",\n \"pic\": \"/upload/goods/cate/20171013/2454820f914e59dd4a90b575cd47e03c.jpg\",\n },\n {\n \"id\": 3,\n \"name\": \"首页分类2\",\n \"pic\": \"/upload/goods/cate/20171013/0e67c1d32c450c5ccd0a9aae5ec9ab96.jpg\",\n }\n ],\n \"goods\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n }\n ],\n \"first_page_url\": \"http://www.s1.com/api/cate/index?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/cate/index?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/cate/index\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CateController.php", "groupTitle": "Cate", "name": "GetApiCateIndex" }, { "type": "get", "url": "/api/company/info", "title": "公司详情(info)", "description": "

公司详情(info)

", "group": "Company", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"info\": []//公司详情\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/CompanyController.php", "groupTitle": "Company", "name": "GetApiCompanyInfo" }, { "type": "get", "url": "/api/find/index", "title": "发现", "description": "

发现

", "group": "Find", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "page", "description": "

分页参数

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": " HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"test\",\n \"pic\": \"/upload/article/20171013/91a15c6f30ad510db5165dad5ac1fff9.jpg\",\n \"info\": \"驱蚊器翁\",\n \"viewed\": 0,\n \"sort\": 1,\n \"created_at\": \"2017-10-13 03:34:02\",\n \"updated_at\": \"2017-10-13 03:34:02\"\n },\n ],\n \"first_page_url\": \"http://www.s1.com/api/find/index?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/find/index?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/find/index\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 3,\n \"total\": 3\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FindController.php", "groupTitle": "Find", "name": "GetApiFindIndex" }, { "type": "get", "url": "/api/furniture/add_comments", "title": "添加新闻评论", "description": "

添加新闻评论(news_list)

", "group": "Furniture", "permission": [ { "name": "Passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户ID

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "news_id", "description": "

新闻ID

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "content", "description": "

评论内容

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "comments_id", "description": "

被回复的评论ID。对新闻评论:0; 对评论回复:被回复的评论的具体ID

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"res\": []//结果\n\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 401 token已过期,请重新登录", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureAdd_comments" }, { "type": "get", "url": "/api/furniture/addtolike", "title": "新闻点赞", "description": "

新闻点赞

", "group": "Furniture", "permission": [ { "name": "None" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户ID

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "news_id", "description": "

新闻ID

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "like", "description": "

喜欢 (参数:1)

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"res\": []//结果\n\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureAddtolike" }, { "type": "get", "url": "/api/furniture/getmorecomments", "title": "获取全部评论/回复", "description": "

获取全部评论/回复(getmorecomments)

", "group": "Furniture", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

评论/回复 id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n comments\": {\n \"id\": 13,\n \"store_id\": 2,\n \"user_id\": 6,\n \"comments_id\": 0, //被评论id 0:表示对新闻评论\n \"content\": \"adff\",\n \"created_at\": \"2018-06-14 15:49:38\",\n \"updated_at\": \"2018-06-14 15:49:38\",\n \"news_id\": 5, //新闻id\n \"deleted_at\": null,\n \"sys_reply\": \"\",\n \"username\": \"Wesley\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLnEDDuGRN9Dl7icBbph1JRvmQ7x2D4tiaGGVHApGAu9FCy9yb1bOcboIctAjRsyic4Ucn3z7K3QCUyg/132\",\n },\n \"comments_replys\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 13,\n \"store_id\": 2,\n \"user_id\": 6,\n \"comments_id\": 13, //被评论id 0:表示对新闻评论\n \"content\": \"adff\",\n \"created_at\": \"2018-06-14 15:49:38\",\n \"updated_at\": \"2018-06-14 15:49:38\",\n \"news_id\": 5, //新闻id\n \"deleted_at\": null,\n \"sys_reply\": \"\",\n \"username\": \"Wesley\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLnEDDuGRN9Dl7icBbph1JRvmQ7x2D4tiaGGVHApGAu9FCy9yb1bOcboIctAjRsyic4Ucn3z7K3QCUyg/132\",\n \"replys\": {\n \"current_page\": 1,\n \"data\": [],\n \"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"from\": null,\n \"last_page\": 1,\n \"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://localhost:8082/api/furniture/news_detail\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": null,\n \"total\": 0\n}\n}\n],\n\"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"from\": 1,\n\"last_page\": 1,\n\"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"next_page_url\": null,\n\"path\": \"http://localhost:8082/api/furniture/news_detail\",\n\"per_page\": 5,\n\"prev_page_url\": null,\n\"to\": 1,\n\"total\": 1\n\n }\n}", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureGetmorecomments" }, { "type": "get", "url": "/api/furniture/goods_list", "title": "获取产品列表", "description": "

获取产品列表(goods_list)

", "group": "Furniture", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id 模拟值为1

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n...\n {\n \"id\": 1,\n \"goods_id\":12 //要跳转的小程序id\n \"name\": \"床垫测试\",\n \"img\": \"http://s1.xcx.com/upload/img/20180720/70f926022b933658d269106172e18bf0.png\",\n \"sort\": 99,\n \"status\": 1,\n \"store_id\": 1,\n \"created_at\": \"2018-07-20 14:56:42\",\n \"updated_at\": \"2018-07-20 17:36:23\",\n \"price\": 199\n }\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/goods_list?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/goods_list?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://s1.xcx.com/api/furniture/goods_list\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": 4,\n \"total\": 4\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureGoods_list" }, { "type": "get", "url": "/api/furniture/newgoods_index", "title": "新品发布详情", "description": "

获取新品发布详情(news_index)

", "group": "Furniture", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id 模拟值为1

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

新品id 模拟值为1

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"newgoods\": {\n\"id\": 1,\n\"title\": \"新品测试1\", //标题\n\"thumb\": \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\", //缩略图\n\"content\": \"

这是一个新品测试

\", //详情\n\"comments_field_1\": \"外观\", //评价1字段名称\n\"comments_field_2\": \"实用性\",\n\"comments_field_3\": \"质感\",\n\"comments_field_4\": \"舒适度\",\n\"sort\": 100,\n\"created_at\": \"2018-12-20 10:13:14\",\n\"updated_at\": \"2018-12-20 10:13:14\",\n\"store_id\": 1,\n\"comments_avg_1\": \"5.0000\", //字段1平均分\n\"comments_avg_2\": \"4.0000\",\n\"comments_avg_3\": \"3.0000\",\n\"comments_avg_4\": \"3.0000\"\n},\n\"comments\": [\n{\n\"id\": 2,\n\"user_id\": 152,\n\"newgoods_id\": 1,\n\"comments_field_1\": 5, //字段1评分\n\"comments_field_2\": 4,\n\"comments_field_3\": 3,\n\"comments_field_4\": 3,\n\"content\": \"第一条评价\", //评价详情\n \"picture\": [ //图片\n \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\",\n \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\",\n \"https://t6.9026.com/upload/img/\"\n],\n\"response\": null, //商家回复\n\"created_at\": null,\n\"updated_at\": null,\n\"store_id\": 1,\n\"username\": \"哈哈哈\", //用户姓名\n\"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/yx8xw9O4WzvbGFLlqyRRNiciaNKM8V2wiasXrPCGUdB26D060FXUeIwiaAVzoOMibXUE9jhPkLsUz1UIpaTv71mYM4A/132\" //用户头像\n}\n]\n}\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureNewgoods_index" }, { "type": "get", "url": "/api/furniture/newgoods_list", "title": "新品发布列表", "description": "

获取新品发布列表(news_list)

", "group": "Furniture", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id 模拟值为1

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"current_page\": 1,\n\"data\": [\n {\n \"id\": 1, //id\n \"title\": \"新品测试1\", //标题\n \"thumb\": \"https://t6.9026.com/upload/img/20181119/4ee5baa103921e9d40e1c291d3c64f29.jpg\", //缩略图\n \"content\": \"

这是一个新品测试

\", //详情\n \"comments_field_1\": \"外观\", //用户自定义的评价字段\n \"comments_field_2\": \"实用性\",\n \"comments_field_3\": \"质感\",\n \"comments_field_4\": \"舒适度\",\n \"sort\": 100,\n \"created_at\": \"2018-12-20 10:13:14\",\n \"updated_at\": \"2018-12-20 10:13:14\",\n \"store_id\": 1,\n \"comments_total\": 2, //评价总量\n }\n ],\n \"first_page_url\": \"http://local.furniture.com/api/furniture/newgoods_list?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://local.furniture.com/api/furniture/newgoods_list?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://local.furniture.com/api/furniture/newgoods_list\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureNewgoods_list" }, { "type": "get", "url": "/api/furniture/news_detail", "title": "获取新闻详情", "description": "

获取新闻详情(news_detail)

", "group": "Furniture", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "newsid", "description": "

新闻id

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n news\": {\n \"id\": 5,\n \"store_id\": 2,\n \"title\": \"测试时\",\n \"thumb\": null,\n \"content\": \"

啊师傅阿凡达

\",\n \"bad\": 0, //淘汰\n \"commonly\": 0, //一般\n \"like\": 0, //喜欢\n \"viewed\": 0, //浏览次数\n \"sort\": 87,\n \"created_at\": \"2018-05-28 09:33:01\",\n \"updated_at\": \"2018-05-28 09:33:01\",\n \"avatar\": \"https://u3.9026.com/upload/common/20171013/137d21eb6dbaca67475c8ca27640dcfc.png\"\n },\n \"news_comments\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 13,\n \"store_id\": 2,\n \"user_id\": 6,\n \"comments_id\": 0, //被评论id 0:表示对新闻评论\n \"content\": \"adff\",\n \"created_at\": \"2018-06-14 15:49:38\",\n \"updated_at\": \"2018-06-14 15:49:38\",\n \"news_id\": 5, //新闻id\n \"deleted_at\": null,\n \"sys_reply\": \"\",\n \"username\": \"Wesley\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLnEDDuGRN9Dl7icBbph1JRvmQ7x2D4tiaGGVHApGAu9FCy9yb1bOcboIctAjRsyic4Ucn3z7K3QCUyg/132\",\n \"replys\": {\n \"current_page\": 1,\n \"data\": [],\n \"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"from\": null,\n \"last_page\": 1,\n \"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://localhost:8082/api/furniture/news_detail\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": null,\n \"total\": 0\n}\n}\n],\n\"first_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"from\": 1,\n\"last_page\": 1,\n\"last_page_url\": \"http://localhost:8082/api/furniture/news_detail?page=1\",\n\"next_page_url\": null,\n\"path\": \"http://localhost:8082/api/furniture/news_detail\",\n\"per_page\": 5,\n\"prev_page_url\": null,\n\"to\": 1,\n\"total\": 1\n\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureNews_detail" }, { "type": "get", "url": "/api/furniture/news_list", "title": "获取新闻列表", "description": "

获取新闻列表(news_list)

", "group": "Furniture", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id 模拟值为1

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1, //当前页\n \"data\": [\n...\n {\n \"id\": 1,\n \"store_id\": 1,\n \"title\": \"123123\",\n \"thumb\": \"http://s1.xcx.com/upload/agent_pic/20180702/19b0e148f1c9f2b6c3667c81bb06a687.jpg\",\n \"content\": \"

1232123123123

\",\n \"bad\": 0,\n \"commonly\": 0,\n \"like\": 0,\n \"viewed\": 133,\n \"sort\": 127,\n \"created_at\": \"2018-05-24 15:21:42\",\n \"updated_at\": \"2018-07-20 16:58:48\"\n },\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/news_list?page=1\", //首页url\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/news_list?page=1\", //尾页url\n \"next_page_url\": null, //下一页url\n \"path\": \"http://s1.xcx.com/api/furniture/news_list\",\n \"per_page\": 5,\n \"prev_page_url\": null, //上一页url\n \"to\": 3,\n \"total\": 3\n\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "GetApiFurnitureNews_list" }, { "type": "post", "url": "/api/furniture/newgoods_addbooking", "title": "新品发布添加预售", "description": "

添加预售(newgoods_addbooking)

", "group": "Furniture", "permission": [ { "name": "passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id 模拟值为1

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "newgoods_id", "description": "

新品id 模拟值为1

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "phone", "description": "

电话

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "receiver_name", "description": "

姓名

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "receiver_address", "description": "

地址

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"store_id\": \"1\",\n\"newgoods_id\": \"1\",\n\"phone\": 15178654534,\n\"receiver_name\": '陈',\n\"receiver_address\": '丽都路700号',\n\"updated_at\": \"2018-12-20 16:56:46\",\n\"created_at\": \"2018-12-20 16:56:46\",\n\"id\": 3\n}\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "PostApiFurnitureNewgoods_addbooking" }, { "type": "post", "url": "/api/furniture/newgoods_addcomment", "title": "新品发布添加评论", "description": "

添加评论(newgoods_addcomment)

", "group": "Furniture", "permission": [ { "name": "passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "store_id", "description": "

商户id 模拟值为1

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "newgoods_id", "description": "

新品id 模拟值为1

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "comments_field_1", "description": "

字段1评分 1-5

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "comments_field_2", "description": "

字段1评分 1-5

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "comments_field_3", "description": "

字段1评分 1-5

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "comments_field_4", "description": "

字段1评分 1-5

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "content", "description": "

评论详情

" }, { "group": "Parameter", "type": "array", "optional": true, "field": "picture", "description": "

图片

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n\"store_id\": \"1\",\n\"newgoods_id\": \"1\",\n\"comments_field_1\": \"3\",\n\"comments_field_2\": \"4\",\n\"comments_field_3\": \"5\",\n\"comments_field_4\": \"2\",\n\"user_id\": 151,\n\"updated_at\": \"2018-12-20 16:56:46\",\n\"created_at\": \"2018-12-20 16:56:46\",\n\"id\": 3\n}\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "PostApiFurnitureNewgoods_addcomment" }, { "type": "post", "url": "/api/furniture/setting", "title": "首页基本设置", "description": "

首页基本设置

", "group": "Furniture", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "

店铺ID

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"setting\": {\n \"name\": \"某某厂家\",\n \"goods_app_id\": \"afdasfa\", //商品要跳转的appid\n \"goods_app_path\": \"page/goods/goods\", //商品要跳转的url\n \"illustrated_name\": \"在线画册\",\n \"avatar\": \"http://s1.xcx.com/upload/s1test/20180716/bb123f13bf8a42f0a86b55e7bf861400.png\",\n \"notice\": \"这是一条公告测试!\",\n \"advertising_pic\": \"\"\n },\n \"banner\": [ //轮播图\n...\n {\n \"id\": 4,\n \"store_id\": 1,\n \"pic_url\": \"https://u3.9026.com/upload/temp_pic/20171013/da1d53cd93bfa4c8ed34939314ca18fb.jpg\",\n \"title\": \"轮播图测试\",\n \"page_url\": \"news/news\",\n \"sort\": 87,\n }\n...\n ],\n \"navbar\": [ //底部导航栏\n...\n {\n \"id\": 9,\n \"store_id\": 1,\n \"name\": \"联系我们\",\n \"url\": \"/pages/index/index\",\n \"open_type\": \"1\",\n \"pic_url\": \"http://s1.xcx.com/upload/agent_show/20180702/7e638f0ca464f8096fba8a658b49d556.png\",\n \"sort\": 100,\n \"created_at\": \"2018-07-16 16:05:29\",\n \"updated_at\": \"2018-07-20 18:08:37\",\n \"deleted_at\": null,\n \"mobile\": \"13407570861\",\n \"address\": null,\n \"app_id\": null,\n \"state\": 0,\n \"lon\": null,\n \"lat\": null\n }\n...\n ],\n\"menus\": [ //顶部导航栏\n...\n {\n \"id\": 9,\n \"store_id\": 1,\n \"name\": \"联系我们\",\n \"url\": \"/pages/index/index\",\n \"open_type\": \"1\",\n \"pic_url\": \"http://s1.xcx.com/upload/agent_show/20180702/7e638f0ca464f8096fba8a658b49d556.png\",\n \"sort\": 100,\n \"created_at\": \"2018-07-16 16:05:29\",\n \"updated_at\": \"2018-07-20 18:08:37\",\n \"deleted_at\": null,\n \"mobile\": \"13407570861\",\n \"address\": null,\n \"app_id\": null,\n \"state\": 1,\n \"lon\": null,\n \"lat\": null\n }\n...\n ]\n\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture", "name": "PostApiFurnitureSetting" }, { "type": "get", "url": "/api/furniture/getattr", "title": "获取产品属性", "description": "

获取产品属性

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": true, "field": "id", "description": "

默认获取品类,传品类id获取该品类的型号,传型号id获取该型号的颜色

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n...\n {\n \"id\": 1,\n \"name\": \"冰箱\",\n \"pid\": 0,\n \"attr_type\": 0,\n \"sort\": 100,\n \"store_id\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-06-28 02:55:26\",\n \"updated_at\": \"2018-06-28 02:59:29\"\n },\n...\n ]\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureGetattr" }, { "type": "get", "url": "/api/furniture/getfurnitureads", "title": "获取首页广告", "description": "

获取首页广告

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"furniture_ads_pic\": \"http://s1.xcx.com/upload/img/20180720/70f926022b933658d269106172e18bf0.png\"\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureGetfurnitureads" }, { "type": "get", "url": "/api/furniture/getorder", "title": "获取订单信息", "description": "

获取订单

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": true, "field": "user_id", "description": "

(填写user_id,查询用户个人订单,不填则查询店铺订单)

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "status", "description": "

(可填) (选填 0:待审核;1:待生产;2:生产中;3:待发货;4:运输中/未签收 5:已签收/待评价 6:已评价 7:已取消 null:全部订单 8:生产部全部订单/个人待发货订单 9:包装部全部订单)

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "expected", "description": "

(1:查询逾期的订单)

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n...\n {\n \"id\": 1,\n \"sno\": \"s1001\",\n \"qrcode\": \"qr.png\",\n \"status\": 1,\n \"category\": \"冰箱\",\n \"type\": \"s1002\",\n \"color\": \"白色\",\n \"picture\": \"1.ipg\",\n \"question\": \"问题测试\",\n \"customer_name\": \"wesley\",\n \"customer_phone\": \"18380257014\",\n \"customer_address\": \"成都市新都区\",\n \"user_id\": 1,\n \"producer_id\": null,\n \"packer_id\": null,\n \"price\": 50,\n \"expected_time\": \"2018-07-05\",\n \"remark\": null,\n \"store_id\": 1,\n \"created_at\": \"2018-07-03 17:18:26\",\n \"updated_at\": \"2018-07-05 14:53:42\"\n }\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://s1.xcx.com/api/furniture/getorder\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": 2,\n \"total\": 2 //订单数量\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureGetorder" }, { "type": "get", "url": "/api/furniture/getorderdetail", "title": "获取订单详情", "description": "

获取订单详情

", "group": "Furniture_Service", "permission": [ { "name": "Passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": false, "field": "order_id", "description": "" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"order\": { //订单详情\n \"id\": 1,\n \"sno\": \"s1001\",\n \"qrcode\": \"qr.png\",\n \"status\": 1,\n \"category\": \"冰箱\",\n \"type\": \"s1002\",\n \"color\": \"白色\",\n \"question\": \"问题测试\",\n \"customer_name\": \"wesley\",\n \"customer_phone\": \"18380257014\",\n \"customer_address\": \"成都市新都区\",\n \"user_id\": 1,\n \"producer_id\": null,\n \"packer_id\": null,\n \"price\": 50,\n \"expected_time\": \"2018-07-05\",\n \"remark\": null, //备注\n \"store_id\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-03 17:18:26\",\n \"updated_at\": \"2018-07-05 14:53:42\",\n \"pcture\": [\n \"1.png\",\n \"2.png\"\n ]\n },\n \"progress\": [ //订单进度\n...\n {\n \"created_at\": \"2018-08-02 17:31:14\",\n \"description\": \"订单已提交,等待审核\",\n \"status\": 0\n }\n...\n ],\n \"parts\": [ //订单配件\n...\n {\n \"name\": \"螺丝刀\",\n \"count\": 1\n },\n...\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureGetorderdetail" }, { "type": "get", "url": "/api/furniture/getprogress", "title": "订单进度统计", "description": "

订单进度统计

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": true, "field": "user_id", "description": "

(查询用户个人各个订单状态数量时带上此参数)

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "status", "description": "

( 0:待审核;1:待生产;2:生产中;3:待发货;4:未签收,不填写则返回所有状态下的订单数量)

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "expected", "description": "

1:逾期)

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK 所有状态统计\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"\"count\": [\n {\n \"status\": 0, //订单状态\n \"total\": 1 //改状态订单数量\n },\n {\n \"status\": 1,\n \"total\": ''\n },\n \"status\": 2,\n \"total\": ''\n },\n \"status\": 3,\n \"total\": ''\n },\n \"status\": 4,\n \"total\": ''\n },\n {\n \"expected\": 1,\n \"total\": 1\n }\n ]\n }\n}", "type": "json" }, { "title": "Success-Response:", "content": "HTTP/1.1 200 OK 具体状态下统计图\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"count\": [\n...\n {\n \"customer_name\": \"\", //联系人姓名\n \"days\": \"\" //该状态维持天数\n }\n...\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureGetprogress" }, { "type": "get", "url": "/api/furniture/getreviewcount", "title": "评价统计", "description": "

评价统计

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": true, "field": "days", "description": "

(必填 0:今天;7:7天内;30:30天内

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK 所有状态统计\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"verifier\": [ //客服部\n {\n \"verifier_review\": 0, 评价等级:0:好评 1:中评 2:差评\n \"verifier\": 7 评价数量\n },\n {\n \"verifier_review\": 1,\n \"verifier\": 5\n },\n ],\n \"producer\": [ //生产部\n {\n \"producer_review\": 0,\n \"producer\": 1\n },\n ...\n ],\n \"packer\": [ //包装部\n {\n \"producer_review\": 0,\n \"producer\": 1\n },\n ...\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureGetreviewcount" }, { "type": "get", "url": "/api/furniture/ordercount", "title": "按产品/品类统计", "description": "

按产品/品类统计

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": true, "field": "type", "description": "

按产品统计,可选值:1

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "category", "description": "

按品类统计,与type二选一,不能与type同时传值。可选值:1(所有品类)具体品类的值(统计具体品类)

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "days", "description": "

可选:0,7,30

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK 所有状态统计\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n...\n {\n \"days\": \"2018-07-03\", //日期\n \"count\": 2, //数量\n \"category\": \"冰箱\", //品类\n \"type\": \"s1002\" //产品型号\n },\n...\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureOrdercount" }, { "type": "get", "url": "/api/furniture/searchlist", "title": "产品订单搜索列表页", "description": "

产品订单搜索列表页

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": true, "field": "keyword", "description": "

搜索关键字

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n...\n {\n \"id\": 1,\n \"sno\": \"s1001\",\n \"qrcode\": \"qr.png\",\n \"status\": 1,\n \"category\": \"冰箱\",\n \"type\": \"s1002\",\n \"color\": \"白色\",\n \"picture\": \"1.ipg\",\n \"question\": \"问题测试\",\n \"customer_name\": \"wesley\",\n \"customer_phone\": \"18380257014\",\n \"customer_address\": \"成都市新都区\",\n \"user_id\": 1,\n \"producer_id\": null,\n \"packer_id\": null,\n \"price\": 50,\n \"expected_time\": \"2018-07-05\",\n \"remark\": null,\n \"store_id\": 1,\n \"created_at\": \"2018-07-03 17:18:26\",\n \"updated_at\": \"2018-07-05 14:53:42\"\n }\n...\n ],\n \"first_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://s1.xcx.com/api/furniture/getorder?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://s1.xcx.com/api/furniture/getorder\",\n \"per_page\": 5,\n \"prev_page_url\": null,\n \"to\": 2,\n \"total\": 2 //订单数量\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "GetApiFurnitureSearchlist" }, { "type": "post", "url": "/api/furniture/addreview", "title": "添加评论", "description": "

添加评论

", "group": "Furniture_Service", "permission": [ { "name": "Passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "int", "optional": false, "field": "order_id", "description": "" }, { "group": "Parameter", "type": "int", "optional": false, "field": "verifier_review", "description": "

客服部评论:0:好评;1:中评:2:差评

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "producer_review", "description": "

生产部部评论:0:好评;1:中评:2:差评

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "packer_review", "description": "

包装部评论:0:好评;1:中评:2:差评

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "description", "description": "

评论描述

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "picture", "description": "

图片

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK 添加评论成功\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"store_id\": \"1\",\n \"verifier_review\": \"0\",\n \"producer_review\": \"0\",\n \"packer_review\": \"1\",\n \"order_id\": \"1\",\n \"updated_at\": \"2018-07-26 15:03:33\",\n \"created_at\": \"2018-07-26 15:03:33\",\n \"id\": 5\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "PostApiFurnitureAddreview" }, { "type": "post", "url": "/api/furniture/createorder", "title": "创建售后订单", "description": "

创建售后订单

", "group": "Furniture_Service", "permission": [ { "name": "Passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "

Store_id

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "category", "description": "

产品类别

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "type", "description": "

产品型号

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "color", "description": "

产品颜色

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "question", "description": "

问题描述

" }, { "group": "Parameter", "type": "string", "optional": true, "field": "picture", "description": "

图片

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "customer_name", "description": "

联系人姓名

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "customer_phone", "description": "

联系人电话

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "customer_address", "description": "

联系人地址

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"category\": [\n\n ]\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "PostApiFurnitureCreateorder" }, { "type": "post", "url": "/api/furniture/getphonenumber", "title": "获取手机号", "description": "

获取手机号

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": false, "field": "session_key", "description": "" }, { "group": "Parameter", "type": "string", "optional": false, "field": "iv", "description": "" }, { "group": "Parameter", "type": "string", "optional": false, "field": "encryptData", "description": "" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"decryptedData\": [\n\n ]\n\n }\n\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "PostApiFurnitureGetphonenumber" }, { "type": "post", "url": "/api/furniture/printorder", "title": "打印订单", "description": "

打印订单

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": false, "field": "order_id", "description": "" }, { "group": "Parameter", "type": "int", "optional": false, "field": "role", "description": "

1:生产部

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"code\": 200,\n \"msg\": \"打印成功!\"\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "PostApiFurniturePrintorder" }, { "type": "post", "url": "/api/furniture/saveformid", "title": "保存formid", "description": "

保存formid

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "string", "optional": false, "field": "openid", "description": "" }, { "group": "Parameter", "type": "string", "optional": false, "field": "formid", "description": "" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"code\": 200,\n \"msg\": \"添加成功\"\n}\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "PostApiFurnitureSaveformid" }, { "type": "post", "url": "/api/furniture/service_login", "title": "登陆(login)", "description": "

登陆(login)

", "group": "Furniture_Service", "permission": [ { "name": "none" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "code", "description": "

小程序登录生成的code

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "nickName", "description": "

微信昵称

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "avatar", "description": "

微信头像

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n\"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjUzMzYwMzNlNzIwOTE3YjE0NDc4YjgxMWY5MmI4MjBmMThlNDgxNjJjZGFkYmEwNGI3ZjliZTNmZjRlMTY2YjU4NGU4MzJhN2RmYzY2ZTcxIn0.eyJhdWQiOiIxIiwianRpIjoiNTMzNjAzM2U3MjA5MTdiMTQ0NzhiODExZjkyYjgyMGYxOGU0ODE2MmNkYWRiYTA0YjdmOWJlM2ZmNGUxNjZiNTg0ZTgzMmE3ZGZjNjZlNzEiLCJpYXQiOjE1MzI0MjA3NDAsIm5iZiI6MTUzMjQyMDc0MCwiZXhwIjoxNTYzOTU2NzQwLCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.YnuRiJI9jlt-KeQ480UEpLWCUU8FEJvlTRtAdjOlP0BWmcdo0E9rGS4hriYnpfJOn09Cw0aRYuc4dgQYL_JWD2fodlGg1LRIvPTOtvM5TiwM86kQJawvfFw7X7p9nOhxrFa5Tyir0cdTcV0SmQbq8KIptjdR8j7wUTByKhONexBXtNnlZSpw70ckTQrAstkn97IDwPo04hhGhf6eDPc8ler0HONiAVqbRvvNG6yHShJarP1hxyXrYN2BM0N7dtLD_8Sr8XaXL6ie4rRFVM4fNwpn74DkiDwXY6-5Xet6mzPvvzARAmU5vJ7JHhcL1N7m7poNp6YCx_mZAZ1z8PGDKrtQWoVeAmIxo7qtI6jvgvUpEFnJQ-KHCunXflNBL-vIYW4o3llnYqku1pcBdAUfkYLjYUgB3EZio280_8q-6Q24VAMiHZ58AjYvHHJJssdOa3dVHGD9Iq2z1dWR6gmZ4MgGCunCcAe9L_CbDm7VtMq3nKj4a1WScRiMD5nlKAHgy4O32rtNXqDr5T-eV-QNa4ZOv4VZ1AR-WE4RkO4ArKPaFxgSa9mak98PU8NHcPaJ_B3eDbvtwtMloTXWSQP08cmUPXKjEwXvszdkUt-ZWirw5Sd22h3qMdCI3gcvzT4_rnDKCEk37P09fUIK8LZrS4s2xOhueHziMzheAF0QekI\",\n \"user\": {\n \"id\": 2,\n \"store_id\": 1,\n \"username\": \"roger\",\n \"role\": 0, //用户类型:0:普通用户;1:生产部 2:包装部 3:经理\n \"wechat_open_id\": \"olAS94uwfTdsL3nDnvG67p_v5Vks\",\n \"avatar\": \"https://wx.qlogo.cn/mmopen/vi_32/IOcxico8l4A7W3qxDeA53Id5kVAj2ibUGvQib9QibicTp5c1RNshDj6EKz2PKWp3reHfib0xxT4wa7jJzcb7a4EggkVw/132\",\n \"is_dealer\": 0 //是否经销商 0:不是 1:是\n },\n \"session_key\": 'pGgENkTGXLQD4hPuTF8yEw=='\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 40029 获取openid失败", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "PostApiFurnitureService_login" }, { "type": "post", "url": "/api/furniture/updatestatus", "title": "更新订单状态", "description": "

更新订单状态

", "group": "Furniture_Service", "permission": [ { "name": "Passport" } ], "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "store_id", "description": "" }, { "group": "Parameter", "type": "int", "optional": false, "field": "order_id", "description": "" }, { "group": "Parameter", "type": "int", "optional": false, "field": "status", "description": "

2:开始生产 3:生产完毕并入库 4:发货 5:确认收货 7:取消订单

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "remark", "description": "

备注,发货时可携带此参数

" } ] } }, "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK 更新状态成功\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"ok\":1\n }\n}", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/FurnitureController.php", "groupTitle": "Furniture_Service", "name": "PostApiFurnitureUpdatestatus" }, { "type": "get", "url": "/api/goods/addtocar", "title": "添加至购物车", "description": "

添加至购物车

", "group": "Goods", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "number", "description": "

商品数量

" }, { "group": "Parameter", "type": "array", "optional": false, "field": "attr", "description": "

商品属性

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/GoodsController.php", "groupTitle": "Goods", "name": "GetApiGoodsAddtocar" }, { "type": "get", "url": "/api/goods/chose_attr", "title": "选择属性", "description": "

选择属性

", "group": "Goods", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

商品id

" }, { "group": "Parameter", "type": "array", "optional": false, "field": "attr", "description": "

商品属性

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/GoodsController.php", "groupTitle": "Goods", "name": "GetApiGoodsChose_attr" }, { "type": "get", "url": "/api/goods/collection", "title": "收藏/取消", "description": "

收藏/取消

", "group": "Goods", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "value", "description": "

0或1 0(取消收藏)

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/GoodsController.php", "groupTitle": "Goods", "name": "GetApiGoodsCollection" }, { "type": "get", "url": "/api/goods/show", "title": "商品详情", "description": "

商品详情

", "group": "Goods", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

商品id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 1,\n \"appid\": \"dsfbdffd32434dfvdf\",\n \"cate_id\": 4,\n \"is_home_cate\": 1,\n \"home_cate_id\": 3,\n \"attr_id\": 0,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"weight\": 1001,\n \"stock\": 10081,\n \"status\": 1,\n \"market_price\": 100100,\n \"price\": 101100,\n \"cost_price\": 99100,\n \"junior_price\": 0,\n \"middle_price\": 0,\n \"top_price\": 0,\n \"sale_number\": 91,\n \"info\": \"好东西1\",\n \"is_address\": 1,\n \"sort\": 11,\n \"is_favorite\": 1, 或 0 1已经收藏\n \"ground_time\": \"2017-10-13 10:29:19\",\n \"draw_time\": \"0000-00-00 00:00:00\",\n \"created_at\": \"2017-10-13 02:29:19\",\n \"updated_at\": \"2017-10-13 03:02:21\",\n \"deleted_at\": null,\n 'attr_info':null 已经选择的属性\n \"attr\": { 属性\n \"规格\": [\n \"ML\",\n \"L\",\n \"XL\",\n \"XXL\"\n ],\n \"颜色\": [\n \"黑色\",\n \"白色\"\n ]\n },\n \"images\": [ 图片\n {\n \"url\": \"/upload/s1/goods/shows/20171013/46072732d071540939acd5e875f383dd.jpg\",\n },\n ],\n \"comments\": [ 评论\n {\n \"id\": 1,\n \"wx_user_id\": 1,\n \"wx_user_avatar\": \"0\", 头像\n \"wx_user_nickname\": \"0\", 昵称\n \"comment\": \"dsgdsfdfsdfbf\",\n \"created_at\": null,\n \"updated_at\": null\n }\n ]\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/GoodsController.php", "groupTitle": "Goods", "name": "GetApiGoodsShow" }, { "type": "post", "url": "/api/goods/comment", "title": "评价/回复评价", "description": "

评价

", "group": "Goods", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "goods_id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "level", "description": "

评论星级(321好中差)

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "comment", "description": "

评论内容不能为空

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "comment_id", "description": "

评论id

" }, { "group": "Parameter", "type": "array", "optional": true, "field": "images", "description": "

上传图片

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/GoodsController.php", "groupTitle": "Goods", "name": "PostApiGoodsComment" }, { "type": "get", "url": "/api/home/index", "title": "首页", "description": "

首页

", "group": "Home", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "head_cate_id", "description": "

头部分类id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"banner\": [ 轮播图\n {\n \"id\": 1002,\n \"value\": \"/upload/banner/20171015/cd985cb0aac48ca5ea7b34c366c711fa.jpg\",\n \"sort\": 1,\n }\n ],\n \"cates\": [ 分类\n {\n \"id\": 4,\n \"name\": \"商品分类2\",\n \"pic\": \"/upload/goods/cate/20171013/923996f99388fa90acfee1bf31a909fa.jpg\",\n \"status\": 1,\n \"sort\": 11,\n \"goods\": [\n {\n \"id\": 1,\n \"is_home_cate\": 1,\n \"home_cate_id\": 3,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"status\": 1,\n }\n ]\n }\n ],\n \"goods\": [ 商品\n {\n \"id\": 1,\n \"name\": \"首页分类1\",\n \"pic\": \"/upload/goods/cate/20171013/2454820f914e59dd4a90b575cd47e03c.jpg\",\n \"goods\": [\n {\n \"id\": 1,\n \"is_home_cate\": 1,\n \"home_cate_id\": 3,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"status\": 1,\n }\n ]\n },\n ]\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/HomeController.php", "groupTitle": "Home", "name": "GetApiHomeIndex" }, { "type": "get", "url": "/api/home/search", "title": "搜索", "description": "

搜索

", "group": "Home", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "keyword", "description": "

keyword

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"banner\": [\n {\n \"value\": \"/upload/banner/20171012/71a9962b9b9de1876c4d76ed6d879afd.jpg\",\n },\n ],\n \"cates\": [\n {\n \"name\": \"商品分类2\",\n \"pic\": \"/upload/goods/cate/20171013/923996f99388fa90acfee1bf31a909fa.jpg\",\n \"goods\": []\n }\n ],\n \"goods\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n }\n ],\n \"first_page_url\": \"http://www.s1.com/api/home/search?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/home/search?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/home/search\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/HomeController.php", "groupTitle": "Home", "name": "GetApiHomeSearch" }, { "type": "get", "url": "/api/my/address/area", "title": "返回省市区地址", "description": "

返回省市区地址

", "group": "My", "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AddressController.php", "groupTitle": "My", "name": "GetApiMyAddressArea" }, { "type": "get", "url": "/api/my/address/delete", "title": "地址删除", "description": "

地址删除

", "group": "My", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

主键id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AddressController.php", "groupTitle": "My", "name": "GetApiMyAddressDelete" }, { "type": "get", "url": "/api/my/address/edit", "title": "修改默认地址", "description": "

修改默认地址

", "group": "My", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

主键id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "status", "description": "

1

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AddressController.php", "groupTitle": "My", "name": "GetApiMyAddressEdit" }, { "type": "get", "url": "/api/my/address/index", "title": "地址列表", "description": "

地址列表

", "group": "My", "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"name1\",\n \"tel\": \"13880642880\",\n \"area\": \"330104\", 区域代码\n \"address\": \"蜀西路\",\n \"status\": \"1\", 1默认地址\n \"addr\": {\n \"merger_name\": \"中国,浙江省,杭州市,江干区\",\n }\n }\n ]\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AddressController.php", "groupTitle": "My", "name": "GetApiMyAddressIndex" }, { "type": "get", "url": "/api/my/address/show", "title": "地址详情", "description": "

地址详情

", "group": "My", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

收货人地址id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 1,\n \"name\": \"hahahahaha\",\n \"tel\": \"13880634889\",\n \"area\": \"330104\",\n \"address\": \"三泰魔方123\",\n \"status\": \"0\",\n \"addr\": {\n \"merger_name\": \"中国,浙江省,杭州市,江干区\",\n }\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AddressController.php", "groupTitle": "My", "name": "GetApiMyAddressShow" }, { "type": "get", "url": "/api/my/favorite", "title": "收藏", "description": "

收藏

", "group": "My", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "page", "defaultValue": "1", "description": "

分页参数

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 3,\n \"s1_goods_id\": 1,\n \"wx_user_id\": 1,\n \"created_at\": \"2017-10-19 16:36:16\",\n \"updated_at\": \"2017-10-19 16:36:16\",\n \"goods\": {\n \"id\": 1,\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n \"name\": \"商品1\"\n }\n }\n ],\n \"first_page_url\": \"http://www.s1.com/api/my/favorite?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://www.s1.com/api/my/favorite?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://www.s1.com/api/my/favorite\",\n \"per_page\": 15,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/MyController.php", "groupTitle": "My", "name": "GetApiMyFavorite" }, { "type": "get", "url": "/api/my/index", "title": "首页", "description": "

首页

", "group": "My", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"user\": {\n \"id\": 1,\n \"appid\": \"dsfbdffd32434dfvdf\",\n \"nickname\": \"nickname1\",\n \"openid\": \"openid123\",\n \"avatar\": \"/upload/wx_user/20171012/8cea5bda71481b13edbe54ae2509e063.jpg\",\n \"password\": \"password123\",\n \"score\": 1000123,\n \"level_id\": 1,\n \"balance\": \"\",\n \"remark\": null,\n \"status\": 1,\n \"created_at\": \"2017-10-12 15:56:20\",\n \"updated_at\": \"2017-10-12 15:56:46\",\n \"deleted_at\": null,\n \"favorite\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"number\": \"0011\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n }\n ]\n },\n \"order1\": [\n {\n \"id\": 13,\n \"amount\": \"1250100\",\n \"goods\": [\n {\n \"id\": 1,\n \"name\": \"商品1\",\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n },\n {\n \"id\": 2,\n \"name\": \"test\",\n \"pic\": \"/upload/s1/goods/face/20171013/cdfe1a254ac611d055cd9aacaa11c58a.png\",\n }\n ]\n },\n ],\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/MyController.php", "groupTitle": "My", "name": "GetApiMyIndex" }, { "type": "post", "url": "/api/my/address/update", "title": "地址编辑", "description": "

地址编辑

", "group": "My", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": true, "field": "id", "description": "

主键id 存在表示修改

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "name", "description": "

收货人姓名

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "tel", "description": "

收货人电话

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "area", "description": "

省市区地址

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "address", "description": "

详细地址

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "status", "description": "

1或0 1为默认地址

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/AddressController.php", "groupTitle": "My", "name": "PostApiMyAddressUpdate" }, { "type": "get", "url": "/api/order/create", "title": "创建订单", "description": "

创建订单

", "group": "Order", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "address_id", "description": "

收货地址id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "number", "description": "

商品数量

" }, { "group": "Parameter", "type": "array", "optional": true, "field": "attr", "description": "

商品属性 //购物车id列表或是商品id

" }, { "group": "Parameter", "type": "array", "optional": true, "field": "cart_id_list", "description": "

购物车id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"s1_order_id\": 15\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2004,\n \"message\": \"数据异常\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/OrderController.php", "groupTitle": "Order", "name": "GetApiOrderCreate" }, { "type": "get", "url": "/api/order/show", "title": "订单详情", "description": "

订单详情

", "group": "Order", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

订单id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"user_name\": \"hahahahaha\",\n \"address\": \"中国,浙江省,杭州市,江干区三泰魔方123\",\n \"trade_no\": \"123123\",\n \"order_time\": \"2017-10-13 09:55:00\",\n \"amount\": \"10000\",\n \"goods_number\": 2\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2009,\n \"message\": \"订单没有找到\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/OrderController.php", "groupTitle": "Order", "name": "GetApiOrderShow" }, { "type": "get", "url": "/api/order/sure", "title": "立即购买(或是购物车结算)", "description": "

立即购买(或是购物车结算)

", "group": "Order", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "appid", "description": "

appid

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "id", "description": "

商品id

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "number", "description": "

商品数量

" }, { "group": "Parameter", "type": "array", "optional": true, "field": "cart_id", "description": "

购物车id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"goods\": { 购买商品\n \"name\": \"商品1\",\n \"sure_number\": \"12\", 确认数量\n \"attr_info\": \"属性\", 已选属性\n \"pic\": \"/upload/s1/goods/face/20171013/effbecdc6d9de83d0128e3f08ec6d636.jpg\",\n },\n \"address\": { 默认地址\n \"name\": \"hahahahaha\",\n \"tel\": \"134324\",\n \"area\": \"23423423\",\n \"address\": \"address\",\n }\n }\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/OrderController.php", "groupTitle": "Order", "name": "GetApiOrderSure" }, { "type": "post", "url": "/api/order/pay", "title": "支付", "description": "

支付

", "group": "Order", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

订单id

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/OrderController.php", "groupTitle": "Order", "name": "PostApiOrderPay" }, { "type": "post", "url": "/api/order/refund", "title": "申请售后", "description": "

申请售后

", "group": "Order", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "order_id", "description": "

订单id

" }, { "group": "Parameter", "type": "int", "optional": false, "field": "refund_type", "description": "

售后类型

" }, { "group": "Parameter", "type": "int", "optional": true, "field": "refund_price", "description": "

价格

" }, { "group": "Parameter", "type": "string", "optional": false, "field": "refund_desc", "description": "

原因

" }, { "group": "Parameter", "type": "array", "optional": false, "field": "pic_list", "description": "

凭证

" } ] } }, "permission": [ { "name": "none" } ], "version": "0.1.0", "success": { "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }", "type": "json" } ] }, "error": { "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 2006,\n \"message\": \"操作失败\",\n \"data\": null\n }", "type": "json" } ] }, "filename": "app/Http/Controllers/Api/V1/OrderController.php", "groupTitle": "Order", "name": "PostApiOrderRefund" } ] });