Files
CompanyProject/金壶/ydyd_service/doc/api_data.js
2024-09-27 01:32:49 +08:00

2 lines
174 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

define({ "api": [
{
"version": "1.0.0",
"type": "post",
"url": "/activity/group",
"title": "2.活动组合(朱晓伟)",
"name": "group",
"group": "Activity",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "id",
"description": "<p>活动id 例如 1,2,3,4</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "limit",
"description": "<p>每页多少条默认20</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "page",
"description": "<p>当前页默认1</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": [\n\t{\n\t\"id\": 8,\n\t\"activity_name\": \"爆款首推\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 3,\n\t\"is_self\": 0,\n\t\"is_new\": 0,\n\t\"cover_img\": \"\",\n\t\"is_goods_only\": 1,\n\t\"nid\": \"\",\n\t\"activity_desc\": \"\",\n\t\"activity_level\": 0,\n\t\"fid\": 0,\n\t\"sort_num\": 1,\n\t\"start_time\": null,\n\t\"end_time\": null,\n\t\"create_time\": \"2020-05-15 04:25:09\",\n\t\"update_time\": \"2020-05-15 16:25:50\",\n\t\"verify_status\": 0,\n\t\"online_status\": 1,\n\t\"create_user\": 1,\n\t\"admin_user_id\": 1,\n\t\"remark\": \"\",\n\t\"more_info\": null,\n\t\"list\": {\n\t\"code\": 200,\n\t\"msg\": \"success\",\n\t\"data\": {\n\t\"total\": 0,\n\t\"per_page\": 30,\n\t\"current_page\": 1,\n\t\"last_page\": 0,\n\t\"data\": []\n\t}\n\t}\n\t},\n\t{\n\t\"id\": 9,\n\t\"activity_name\": \"热卖推荐\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 3,\n\t\"is_self\": 0,\n\t\"is_new\": 0,\n\t\"cover_img\": \"\",\n\t\"is_goods_only\": 0,\n\t\"nid\": \"\",\n\t\"activity_desc\": \"\",\n\t\"activity_level\": 0,\n\t\"fid\": 0,\n\t\"sort_num\": 0,\n\t\"start_time\": null,\n\t\"end_time\": null,\n\t\"create_time\": \"2020-05-15 04:25:39\",\n\t\"update_time\": \"2020-05-15 16:25:53\",\n\t\"verify_status\": 0,\n\t\"online_status\": 1,\n\t\"create_user\": 1,\n\t\"admin_user_id\": 1,\n\t\"remark\": \"\",\n\t\"more_info\": null,\n\t\"list\": {\n\t\"code\": 200,\n\t\"msg\": \"success\",\n\t\"data\": {\n\t\"total\": 4,\n\t\"per_page\": 30,\n\t\"current_page\": 1,\n\t\"last_page\": 1,\n\t\"data\": [\n\t{\n\t\"price\": \"价格登录可见\",\n\t\"original_price\": \"价格登录可见\",\n\t\"goods_id\": 1917,\n\t\"goods_name\": \"百令胶囊\",\n\t\"show_price\": \"79.80\",\n\t\"is_online_sale\": 0,\n\t\"country_code\": \"Z10910036\",\n\t\"app_thumb\": \"\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1542437212405.jpg\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"keyword\": \"百令胶囊\",\n\t\"sketch\": \"肺肾两虚引起的咳嗽、气喘、咯血、腰背酸痛;慢性支气管炎的辅助治疗\",\n\t\"manufacturer_name\": \"杭州中美华东制药有限公司\",\n\t\"spec_desc\": \"0.5g*42s\",\n\t\"batch_type\": 1,\n\t\"supplier_id\": 1,\n\t\"supplier_sn\": \"\",\n\t\"batch_id\": 4112,\n\t\"retail_flag\": 1,\n\t\"retail_num\": 10,\n\t\"entirety_num\": 200,\n\t\"batch_number\": \"1912323\",\n\t\"stock_num\": 800,\n\t\"term_validity\": \"2022-11-30\",\n\t\"sale_num\": 200,\n\t\"sku_id\": 13444,\n\t\"area_id\": 0,\n\t\"price_type\": 0,\n\t\"is_buy\": 0\n\t},\n\t{\n\t\"price\": \"价格登录可见\",\n\t\"original_price\": \"价格登录可见\",\n\t\"goods_id\": 2649,\n\t\"goods_name\": \"厄贝沙坦片(苏适\",\n\t\"show_price\": \"21.40\",\n\t\"is_online_sale\": 0,\n\t\"country_code\": \"H20000511\",\n\t\"app_thumb\": \"\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1588042489382.png\",\n\t\"drug_form\": \"片剂\",\n\t\"keyword\": \"厄贝沙坦片\",\n\t\"sketch\": \"治疗原发性高血压。\\n合并高血压的2型糖尿病肾病的治疗。\",\n\t\"manufacturer_name\": \"深圳市海滨制药有限公司\",\n\t\"spec_desc\": \"0.15g*7s\",\n\t\"batch_type\": 1,\n\t\"supplier_id\": 1,\n\t\"supplier_sn\": \"\",\n\t\"batch_id\": 4075,\n\t\"retail_flag\": 1,\n\t\"retail_num\": 10,\n\t\"entirety_num\": 400,\n\t\"batch_number\": \"4190611051\",\n\t\"stock_num\": 1600,\n\t\"term_validity\": \"2021-05-10\",\n\t\"sale_num\": 0,\n\t\"sku_id\": 13407,\n\t\"area_id\": 0,\n\t\"price_type\": 0,\n\t\"is_buy\": 0\n\t},\n\t{\n\t\"price\": \"价格登录可见\",\n\t\"original_price\": \"价格登录可见\",\n\t\"goods_id\": 2376,\n\t\"goods_name\": \"参松养心胶囊\",\n\t\"show_price\": \"31.50\",\n\t\"is_online_sale\": 0,\n\t\"country_code\": \"Z20103032\",\n\t\"app_thumb\": \"\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1575344012699.jpg\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"keyword\": \"参松养心胶囊\",\n\t\"sketch\": \"益气养阴,活血通络,清心安神。用于治疗气阴两虚,心络瘀阻引起的冠心病室性早搏,症见心悸不安,气短乏力\",\n\t\"manufacturer_name\": \"北京以岭药业股份有限公司\",\n\t\"spec_desc\": \"0.4g*36s\",\n\t\"batch_type\": 1,\n\t\"supplier_id\": 1,\n\t\"supplier_sn\": \"\",\n\t\"batch_id\": 3383,\n\t\"retail_flag\": 0,\n\t\"retail_num\": 10,\n\t\"entirety_num\": 400,\n\t\"batch_number\": \"1905023\",\n\t\"stock_num\": 380,\n\t\"term_validity\": \"2022-04-30\",\n\t\"sale_num\": 50,\n\t\"sku_id\": 12715,\n\t\"area_id\": 0,\n\t\"price_type\": 0,\n\t\"is_buy\": 0\n\t},\n\t{\n\t\"price\": \"价格登录可见\",\n\t\"original_price\": \"价格登录可见\",\n\t\"goods_id\": 2358,\n\t\"goods_name\": \"酒石酸美托洛尔片\",\n\t\"show_price\": \"9.50\",\n\t\"is_online_sale\": 0,\n\t\"country_code\": \"H20065355\",\n\t\"app_thumb\": \"\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1574747304847.png\",\n\t\"drug_form\": \"片剂\",\n\t\"keyword\": \"酒石酸美托洛尔片\",\n\t\"sketch\": \"用于治疗高血压、心绞痛、心肌梗死、肥厚型心肌病、主动脉夹层、心律失常、甲状腺机能亢进、心脏神经官能症\",\n\t\"manufacturer_name\": \"石家庄以岭药业股份有限公司\",\n\t\"spec_desc\": \"25mg*10s*2板\",\n\t\"batch_type\": 1,\n\t\"supplier_id\": 1,\n\t\"supplier_sn\": \"\",\n\t\"batch_id\": 3328,\n\t\"retail_flag\": 0,\n\t\"retail_num\": 10,\n\t\"entirety_num\": 400,\n\t\"batch_number\": \"A1908002\",\n\t\"stock_num\": 400,\n\t\"term_validity\": \"2021-07-31\",\n\t\"sale_num\": 0,\n\t\"sku_id\": 12660,\n\t\"area_id\": 0,\n\t\"price_type\": 0,\n\t\"is_buy\": 0\n\t}\n\t]\n\t}\n\t}\n\t}\n\t]\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ActivityController.php",
"groupTitle": "活动管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/activity/group"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/activity/index",
"title": "1.活动详情(朱晓伟)",
"name": "index",
"group": "Activity",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "id",
"description": "<p>活动id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "limit",
"description": "<p>每页多少条默认20</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "page",
"description": "<p>当前页默认1</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"id\": 7,\n\t\"activity_name\": \"11123\",\n\t\"activity_belong\": 3,\n\t\"activity_type\": 2,\n\t\"goods_list\": {\n\t\"total\": 4,\n\t\"per_page\": 10,\n\t\"current_page\": 1,\n\t\"last_page\": 1,\n\t\"data\": [\n\t{\n\t\"goods_id\": 1761,\n\t\"name\": \"新的使用药品\",\n\t\"spec_desc\": \"16粒*4板\",\n\t\"unit\": \"盒\",\n\t\"drug_form\": \"颗粒剂\",\n\t\"sort_order\": 0,\n\t\"supplier_name\": \"安徽金壶医药\",\n\t\"manufacturer_name\": \" 山东齐都药业有限公司 \",\n\t\"batch_number\": \"2019090501\",\n\t\"retail_flag\": 0,\n\t\"batch_type\": 0,\n\t\"cost_price\": \"20.6000\",\n\t\"stock_num\": 5000,\n\t\"gba_id\": 12117,\n\t\"is_onshelf\": 0,\n\t\"area_id\": 0,\n\t\"price\": \"25.3000\",\n\t\"platform_royalty\": \"0.2000\",\n\t\"discount_price\": null,\n\t\"discount_num\": null,\n\t\"sort\": 0\n\t},\n\t{\n\t\"goods_id\": 1759,\n\t\"name\": \"111111yetete\",\n\t\"spec_desc\": \"0.5*16\",\n\t\"unit\": \"盒\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"sort_order\": 0,\n\t\"supplier_name\": \"安徽金壶医药\",\n\t\"manufacturer_name\": \"安国市天下康制药有限公司\",\n\t\"batch_number\": \"2019090501\",\n\t\"retail_flag\": 1,\n\t\"batch_type\": 0,\n\t\"cost_price\": \"20.6000\",\n\t\"stock_num\": 5000,\n\t\"gba_id\": 12115,\n\t\"is_onshelf\": 0,\n\t\"area_id\": 0,\n\t\"price\": \"24.9000\",\n\t\"platform_royalty\": \"0.2000\",\n\t\"discount_price\": null,\n\t\"discount_num\": null,\n\t\"sort\": 0\n\t},\n\t{\n\t\"goods_id\": 1140,\n\t\"name\": \"双氯芬酸钠缓释胶囊\",\n\t\"spec_desc\": \"50mg*20s\",\n\t\"unit\": \"盒\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"sort_order\": 8,\n\t\"supplier_name\": \"安徽金壶医药\",\n\t\"manufacturer_name\": \"中国药科大学制药有限公司\",\n\t\"batch_number\": \"1808301\",\n\t\"retail_flag\": 1,\n\t\"batch_type\": 1,\n\t\"cost_price\": \"19.3700\",\n\t\"stock_num\": 1800,\n\t\"gba_id\": 10867,\n\t\"is_onshelf\": 0,\n\t\"area_id\": 0,\n\t\"price\": \"20.4000\",\n\t\"platform_royalty\": \"0.0000\",\n\t\"discount_price\": null,\n\t\"discount_num\": null,\n\t\"sort\": 0\n\t},\n\t{\n\t\"goods_id\": 1140,\n\t\"name\": \"双氯芬酸钠缓释胶囊\",\n\t\"spec_desc\": \"50mg*20s\",\n\t\"unit\": \"盒\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"sort_order\": 8,\n\t\"supplier_name\": \"安徽金壶医药\",\n\t\"manufacturer_name\": \"中国药科大学制药有限公司\",\n\t\"batch_number\": \"1808301\",\n\t\"retail_flag\": 0,\n\t\"batch_type\": 1,\n\t\"cost_price\": \"19.3700\",\n\t\"stock_num\": 200,\n\t\"gba_id\": 10866,\n\t\"is_onshelf\": 0,\n\t\"area_id\": 0,\n\t\"price\": \"20.0000\",\n\t\"platform_royalty\": \"0.0000\",\n\t\"discount_price\": null,\n\t\"discount_num\": null,\n\t\"sort\": 0\n\t}\n\t]\n\t}\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ActivityController.php",
"groupTitle": "活动管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/activity/index"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/cart/add",
"title": "1.添加购物车(丁超)",
"name": "add",
"group": "Cart",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "gba_id",
"description": "<p>商品价格id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "batch_id",
"description": "<p>商品批次id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "goods_number",
"description": "<p>商品数量</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "add_type",
"description": "<p>是否立即购买buy,否:传空)</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\":{\n uc_id:1,\n errcode:0,\n errmsg:\"操作成功\",\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/CartController.php",
"groupTitle": "购物车",
"sampleRequest": [
{
"url": "http://api.ydyd.com/cart/add"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/cart/del",
"title": "3.删除购物车(朱晓伟)",
"name": "del",
"group": "Cart",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "id",
"description": "<p>购物车id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "batch_id",
"description": "<p>商品批次id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\":{\n\terrcode:0,\n\terrmsg:\"操作成功\",\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/CartController.php",
"groupTitle": "购物车",
"sampleRequest": [
{
"url": "http://api.ydyd.com/cart/del"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/cart/getList",
"title": "5.购物车列表(丁超)",
"name": "getList",
"group": "Cart",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errcode\": 0,\n \"data\": {\n \"available_goods\": [{\n \"id\": 102,\n \"price_id\": 12104,\n \"price\": \"50.0000\",\n \"price_type\": 0,\n \"batch_id\": 869,\n \"goods_id\": 470,\n \"name\": \"匹多莫德口服溶液\",\n \"spec_desc\": \"10ml:0.4g*6支\",\n \"unit\": \"盒\",\n \"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/pc_shop_thumb_url_1545011228838.jpg\",\n \"status\": 1,\n \"manufacturer_name\": \"江苏吴中医药集团有限公司苏州制药厂\",\n \"supplier_user_id\": 3,\n \"batch_number\": \"2017071008\",\n \"batch_status\": 1,\n \"stock_num\": 640,\n \"retail_flag\": 1,\n \"retail_num\": 10,\n \"entirety_num\": 80,\n \"batch_type\": 1,\n \"term_validity\": \"2019-07-09\",\n \"is_collect\": 0,\n \"num\": 80,\n \"can_select\": 1,\n \"total_price\": \"4000.00\"\n }, {\n \"id\": 101,\n \"price_id\": 12110,\n \"price\": \"10.4000\",\n \"price_type\": 0,\n \"batch_id\": 2142,\n \"goods_id\": 1741,\n \"name\": \"心脏病药\",\n \"spec_desc\": \"2*12ml\",\n \"unit\": \"支\",\n \"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/pc_shop_thumb_url_1562315863518.png\",\n \"status\": 1,\n \"manufacturer_name\": \"安徽仁和药业有限公司\",\n \"supplier_user_id\": 3,\n \"batch_number\": \"987654\",\n \"batch_status\": 1,\n \"stock_num\": 20,\n \"retail_flag\": 0,\n \"retail_num\": 20,\n \"entirety_num\": 200,\n \"batch_type\": 1,\n \"term_validity\": \"2019-08-10\",\n \"is_collect\": 0,\n \"num\": 20,\n \"can_select\": 0,\n \"warn_info\": \"库存不足\",\n \"total_price\": \"208.00\"\n }],\n \"inavailable_goods\": []\n }\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/CartController.php",
"groupTitle": "购物车",
"sampleRequest": [
{
"url": "http://api.ydyd.com/cart/getList"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/cart/multiDel",
"title": "4.批量删除购物车(朱晓伟)",
"name": "multiDel",
"group": "Cart",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "id_group",
"description": "<p>购物车id 例如1,2,3,4,5</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\":{\n\terrcode:0,\n\terrmsg:\"操作成功\",\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/CartController.php",
"groupTitle": "购物车",
"sampleRequest": [
{
"url": "http://api.ydyd.com/cart/multiDel"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/cart/update",
"title": "2.购物车商品数量(朱晓伟)",
"name": "update",
"group": "Cart",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "id",
"description": "<p>购物车id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "goods_number",
"description": "<p>商品数量</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\":{\n\terrcode:0,\n\terrmsg:\"操作成功\",\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/CartController.php",
"groupTitle": "购物车",
"sampleRequest": [
{
"url": "http://api.ydyd.com/cart/update"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Classification/index",
"title": "1.商品分类(李程)",
"name": "index",
"group": "Classification",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "name",
"description": "<p>分类名称</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "pid",
"description": "<p>父标签id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "nid",
"description": "<p>分类标示符</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "description",
"description": "<p>简述</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "index_show_flag",
"description": "<p>首页列表显示标志。0不显示1显示</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "index_show_order",
"description": "<p>首页列表显示顺序</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "icon_url",
"description": "<p>分类图标链接</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "deep",
"description": "<p>第几层</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\"code\": 200,\n\"message\": \"成功\",\n\"data\": {\n\"772\": {\n\"cate_id\": 772,\n\"nid\": \"ZSCY\",\n\"name\": \"中西成药\",\n\"pid\": 0,\n\"index_show_flag\": 1,\n\"index_show_order\": 5,\n\"list_show_flag\": 1,\n\"list_show_order\": 5,\n\"description\": \"ZSCY\",\n\"icon_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/cate_icon_url_1562747159811.png\",\n\"deep\": 0,\n\"sub_cate\": {\n\"778\": {\n\"cate_id\": 778,\n\"nid\": \"GMFS\",\n\"name\": \"感冒发烧\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 1,\n\"description\": \"GMFS\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"779\": {\n\"cate_id\": 779,\n\"nid\": \"CWYY\",\n\"name\": \"胃肠用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 2,\n\"description\": \"CWYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"780\": {\n\"cate_id\": 780,\n\"nid\": \"HXXT\",\n\"name\": \"呼吸系统\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 3,\n\"description\": \"HXXT\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"781\": {\n\"cate_id\": 781,\n\"nid\": \"GDYY\",\n\"name\": \"肝胆用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 4,\n\"description\": \"GDYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"782\": {\n\"cate_id\": 782,\n\"nid\": \"MNXT\",\n\"name\": \"泌尿系统\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 5,\n\"description\": \"MNXT\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"783\": {\n\"cate_id\": 783,\n\"nid\": \"XNXG\",\n\"name\": \"心脑血管\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 6,\n\"description\": \"XNXG\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"784\": {\n\"cate_id\": 784,\n\"nid\": \"NFMY\",\n\"name\": \"内分泌药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 7,\n\"description\": \"NFMY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"785\": {\n\"cate_id\": 785,\n\"nid\": \"FKYY\",\n\"name\": \"妇科用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 8,\n\"description\": \"FKYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"786\": {\n\"cate_id\": 786,\n\"nid\": \"NKYY\",\n\"name\": \"男科用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 9,\n\"description\": \"NKYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"787\": {\n\"cate_id\": 787,\n\"nid\": \"EKYY\",\n\"name\": \"儿科用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 10,\n\"description\": \"EKYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"788\": {\n\"cate_id\": 788,\n\"nid\": \"SJXT\",\n\"name\": \"神经系统\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 11,\n\"description\": \"SJXT\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"789\": {\n\"cate_id\": 789,\n\"nid\": \"FSDD\",\n\"name\": \"风湿跌打\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 12,\n\"description\": \"FSDD\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"790\": {\n\"cate_id\": 790,\n\"nid\": \"YYZB\",\n\"name\": \"营养滋补\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 13,\n\"description\": \"YYZB\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"791\": {\n\"cate_id\": 791,\n\"nid\": \"PFWY\",\n\"name\": \"皮肤科药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 14,\n\"description\": \"PFKY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"792\": {\n\"cate_id\": 792,\n\"nid\": \"KSSL\",\n\"name\": \"抗生素类\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 15,\n\"description\": \"KSSL\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"793\": {\n\"cate_id\": 793,\n\"nid\": \"WGKY\",\n\"name\": \"五官科药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 16,\n\"description\": \"WGKY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"794\": {\n\"cate_id\": 794,\n\"nid\": \"ZLYY\",\n\"name\": \"肿瘤用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 17,\n\"description\": \"ZLYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"795\": {\n\"cate_id\": 795,\n\"nid\": \"GMYY\",\n\"name\": \"过敏用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 18,\n\"description\": \"GMYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"796\": {\n\"cate_id\": 796,\n\"nid\": \"QRJD\",\n\"name\": \"清热解毒\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 19,\n\"description\": \"QRJD\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"797\": {\n\"cate_id\": 797,\n\"nid\": \"GSKYY\",\n\"name\": \"骨伤科用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 20,\n\"description\": \"GSKYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"798\": {\n\"cate_id\": 798,\n\"nid\": \"ZSJL\",\n\"name\": \"注射剂类\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 21,\n\"description\": \"ZSJL\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"799\": {\n\"cate_id\": 799,\n\"nid\": \"WSSKWZ\",\n\"name\": \"维生素矿物质\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 22,\n\"description\": \"WSSKWZ\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"800\": {\n\"cate_id\": 800,\n\"nid\": \"MZY\",\n\"name\": \"麻醉药\\/麻醉辅助用药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 23,\n\"description\": \"MZY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"801\": {\n\"cate_id\": 801,\n\"nid\": \"QTZXY\",\n\"name\": \"其他中西药\",\n\"pid\": 772,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 24,\n\"description\": \"QTZXY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n}\n}\n},\n\"773\": {\n\"cate_id\": 773,\n\"nid\": \"YLQX\",\n\"name\": \"医疗器械\",\n\"pid\": 0,\n\"index_show_flag\": 1,\n\"index_show_order\": 4,\n\"list_show_flag\": 1,\n\"list_show_order\": 4,\n\"description\": \"YLQX\",\n\"icon_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/cate_icon_url_1562747234968.png\",\n\"deep\": 0,\n\"sub_cate\": {\n\"802\": {\n\"cate_id\": 802,\n\"nid\": \"JTCB\",\n\"name\": \"家庭常备\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 1,\n\"description\": \"JTCB\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"803\": {\n\"cate_id\": 803,\n\"nid\": \"JCYQ\",\n\"name\": \"检测仪器\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 2,\n\"description\": \"JCYQ\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"804\": {\n\"cate_id\": 804,\n\"nid\": \"KFLL\",\n\"name\": \"康复理疗\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 3,\n\"description\": \"KFLL\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"805\": {\n\"cate_id\": 805,\n\"nid\": \"ZYLL\",\n\"name\": \"中医理疗\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 4,\n\"description\": \"ZYLL\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"806\": {\n\"cate_id\": 806,\n\"nid\": \"YYCL\",\n\"name\": \"医用材料\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 5,\n\"description\": \"YYCL\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"807\": {\n\"cate_id\": 807,\n\"nid\": \"YLYP\",\n\"name\": \"医疗用品\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 6,\n\"description\": \"YLYP\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"808\": {\n\"cate_id\": 808,\n\"nid\": \"BJQC\",\n\"name\": \"保健器械\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 7,\n\"description\": \"BJQC\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"809\": {\n\"cate_id\": 809,\n\"nid\": \"GYQC\",\n\"name\": \"供氧器材\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 8,\n\"description\": \"GYQC\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"810\": {\n\"cate_id\": 810,\n\"nid\": \"SSQC\",\n\"name\": \"手术器械\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 9,\n\"description\": \"SSQC\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"811\": {\n\"cate_id\": 811,\n\"nid\": \"GTJL\",\n\"name\": \"贴膏剂类\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 10,\n\"description\": \"GTJL\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"812\": {\n\"cate_id\": 812,\n\"nid\": \"QTQX\",\n\"name\": \"其它器械\",\n\"pid\": 773,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 11,\n\"description\": \"QTQX\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n}\n}\n},\n\"774\": {\n\"cate_id\": 774,\n\"nid\": \"ZYYP\",\n\"name\": \"中药饮片\",\n\"pid\": 0,\n\"index_show_flag\": 1,\n\"index_show_order\": 3,\n\"list_show_flag\": 1,\n\"list_show_order\": 3,\n\"description\": \"ZYYP\",\n\"icon_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/cate_icon_url_1562747245474.png\",\n\"deep\": 0,\n\"sub_cate\": {\n\"813\": {\n\"cate_id\": 813,\n\"nid\": \"ZYP\",\n\"name\": \"中药饮片\",\n\"pid\": 774,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 1,\n\"description\": \"ZYP\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"814\": {\n\"cate_id\": 814,\n\"nid\": \"ZYC\",\n\"name\": \"中药材\",\n\"pid\": 774,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 2,\n\"description\": \"ZYC\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"815\": {\n\"cate_id\": 815,\n\"nid\": \"C\",\n\"name\": \"茶\",\n\"pid\": 774,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 3,\n\"description\": \"C\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n}\n}\n},\n\"776\": {\n\"cate_id\": 776,\n\"nid\": \"YSBJ\",\n\"name\": \"养生保健\",\n\"pid\": 0,\n\"index_show_flag\": 1,\n\"index_show_order\": 2,\n\"list_show_flag\": 1,\n\"list_show_order\": 2,\n\"description\": \"YSBJ\",\n\"icon_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/cate_icon_url_1562747256744.png\",\n\"deep\": 0,\n\"sub_cate\": {\n\"816\": {\n\"cate_id\": 816,\n\"nid\": \"GSCJ\",\n\"name\": \"改善促进\",\n\"pid\": 776,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 1,\n\"description\": \"GSCJ\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"817\": {\n\"cate_id\": 817,\n\"nid\": \"PDYY\",\n\"name\": \"排毒养颜\",\n\"pid\": 776,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 2,\n\"description\": \"PDYY\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"818\": {\n\"cate_id\": 818,\n\"nid\": \"MYTJ\",\n\"name\": \"免疫调节\",\n\"pid\": 776,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 3,\n\"description\": \"MYTJ\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"819\": {\n\"cate_id\": 819,\n\"nid\": \"JFSS\",\n\"name\": \"减肥瘦身\",\n\"pid\": 776,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 4,\n\"description\": \"JFSS\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"820\": {\n\"cate_id\": 820,\n\"nid\": \"YYBC\",\n\"name\": \"营养补充\",\n\"pid\": 776,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 5,\n\"description\": \"YYBC\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"821\": {\n\"cate_id\": 821,\n\"nid\": \"HJPL\",\n\"name\": \"缓解疲劳\",\n\"pid\": 776,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 6,\n\"description\": \"HJPL\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"825\": {\n\"cate_id\": 825,\n\"nid\": \"YYDPC\",\n\"name\": \"药用代泡茶\",\n\"pid\": 776,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 0,\n\"description\": \"YYDPC\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n}\n}\n},\n\"777\": {\n\"cate_id\": 777,\n\"nid\": \"JSYP\",\n\"name\": \"计生用品\",\n\"pid\": 0,\n\"index_show_flag\": 1,\n\"index_show_order\": 1,\n\"list_show_flag\": 1,\n\"list_show_order\": 1,\n\"description\": \"JSYP\",\n\"icon_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/cate_icon_url_1562747451535.png\",\n\"deep\": 0,\n\"sub_cate\": {\n\"822\": {\n\"cate_id\": 822,\n\"nid\": \"BYYP\",\n\"name\": \"避孕用品\",\n\"pid\": 777,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 1,\n\"description\": \"BYYP\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"823\": {\n\"cate_id\": 823,\n\"nid\": \"JCYP\",\n\"name\": \"检测用品\",\n\"pid\": 777,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 2,\n\"description\": \"JCYP\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n},\n\"824\": {\n\"cate_id\": 824,\n\"nid\": \"QQYP\",\n\"name\": \"情趣用品\",\n\"pid\": 777,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 3,\n\"description\": \"QQYP\",\n\"icon_url\": \"\",\n\"deep\": 1,\n\"sub_cate\": []\n}\n}\n},\n\"826\": {\n\"cate_id\": 826,\n\"nid\": \"HDSP\",\n\"name\": \"活动商品\",\n\"pid\": 0,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 0,\n\"description\": \"活动商品所属分类\",\n\"icon_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/cate_icon_url_1585029532706.png\",\n\"deep\": 0,\n\"sub_cate\": {\n\"827\": {\n\"cate_id\": 827,\n\"nid\": \"新人特价\",\n\"name\": \"活动一\",\n\"pid\": 826,\n\"index_show_flag\": 1,\n\"index_show_order\": 0,\n\"list_show_flag\": 1,\n\"list_show_order\": 0,\n\"description\": \"新人特价\",\n\"icon_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/cate_icon_url_1585029618612.png\",\n\"deep\": 1,\n\"sub_cate\": []\n}\n}\n}\n}\n}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ClassificationController.php",
"groupTitle": "商品分类",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Classification/index"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/common/userTypeInfo",
"title": "2.企业类型详情(朱晓伟)",
"name": "userTypeInfo",
"group": "Common",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "key",
"description": "<p>企业类型key</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"business_license\": true,\n\t\"medical_license\": true,\n\t\"purchase_identity\": true,\n\t\"authority_purchase\": true,\n\t\"tax_regcate\": true,\n\t\"gsp_license\": false,\n\t\"trade_license\": false,\n\t\"peer_list\": false,\n\t\"year_report\": false,\n\t\"make_license\": false,\n\t\"gmp_license\": false,\n\t\"principal_identity\": false,\n\t\"sales_commission\": false,\n\t\"quality_agreement\": false,\n\t\"acting_prove\": false\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/CommonController.php",
"groupTitle": "公共接口",
"sampleRequest": [
{
"url": "http://api.ydyd.com/common/userTypeInfo"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/common/userTypeList",
"title": "1.企业类型列表(朱晓伟)",
"name": "userTypeList",
"group": "Common",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": [\n\t{\n\t\"key\": \"clinic\",\n\t\"name\": \"诊所\"\n\t},\n\t{\n\t\"key\": \"hospital\",\n\t\"name\": \"医院\"\n\t},\n\t{\n\t\"key\": \"drugstore\",\n\t\"name\": \"单体药房\"\n\t},\n\t{\n\t\"key\": \"liansuo_drugstore\",\n\t\"name\": \"连锁药房\"\n\t},\n\t{\n\t\"key\": \"purchasing_enterprise\",\n\t\"name\": \"医药采购企业\"\n\t},\n\t{\n\t\"key\": \"manufacturer\",\n\t\"name\": \"医药生产企业\"\n\t},\n\t{\n\t\"key\": \"supply_enterprise\",\n\t\"name\": \"医药供应企业\"\n\t},\n\t{\n\t\"key\": \"agency_business\",\n\t\"name\": \"医药代理企业\"\n\t}\n\t]\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/CommonController.php",
"groupTitle": "公共接口",
"sampleRequest": [
{
"url": "http://api.ydyd.com/common/userTypeList"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Express/get_express",
"title": "1.物流查询(李程)",
"name": "get_express",
"group": "Express",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "exp_num",
"description": "<p>物流单号</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "exp_type",
"description": "<p>物流类型</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "type",
"description": "<p>类型 get_type物流厂商 get_detail物流详情[get_detail]</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {}\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/ExpressController.php",
"groupTitle": "物流",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Express/get_express"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Goods/Collectlsit",
"title": "2.商品收藏列表(李程)",
"name": "Collectlsit",
"group": "Goods",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errmsg\": \"获取收藏商品列表成功\",\n \"data\": {\n \"list\": [\n {\n \"user_id\": 404,\n \"goods_id\": 5353,\n \"collect_time\": \"2020-04-16 15:43:49\",\n \"name\": \"马应龙麝香痔疮膏\",\n \"pinyin\": \"mayinglongshexiangzhichuanggao\",\n \"sketch\": \"\",\n \"spec_desc\": \"20g\",\n \"status\": 1,\n \"show_price\": \"17.70\",\n \"pc_thumb\": \"www.hyey.cn/uploadpic/600/a0209/c522036/c522036_0.jpg\",\n \"pc_gallery\": \"[]\",\n \"pc_content\": null,\n \"app_thumb\": \"\",\n \"app_gallery\": \"[]\",\n \"app_content\": null,\n \"country_code\": \"Z42021920\",\n \"drug_form\": \"软膏剂\",\n \"factory_name\": \"马应龙药业集团股份有限公司\"\n }\n ]\n }\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/GoodsController.php",
"groupTitle": "商品模块",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Goods/Collectlsit"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Goods/addCollect_app",
"title": "4.商品收藏(李程)",
"name": "addCollect_app",
"group": "Goods",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "goods_id",
"description": ""
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "status",
"description": "<p>1收藏 2.删除收藏</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\"code\":200,\"message\":\"成功\",\"data\":{\"errmsg\":\"添加收藏成功\"}}",
"type": "json"
}
]
},
"filename": "./application/api/controller/GoodsController.php",
"groupTitle": "商品模块",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Goods/addCollect_app"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Goods/detail",
"title": "3.商品详情 (丁超)",
"name": "detail",
"group": "Goods",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "sku_id",
"description": "<p>价格id(price_id/gba_id/sku_id)</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 0,\n \"msg\": \"success\",\n \"data\": {\n \"goods_id\": 758,\n \"goods_name\": \"芪参益气滴丸\",\n \"pc_content\": \"&lt;div class=&quot;para-title level-2&quot; label-module=&quot;para-title&quot; style=&quot;clear:both;zoom:1;overflow:hidden;border-left:12px solid #4F9CEE;line-height:24px;font-size:22px;font-family:&amp;quot;margin:35px 0px 15px -30px;background:url(&amp;quot;https://bkssl.bdimg.com/static/wiki-lemma/normal/resource/img/paraTitle-line_c5e6d61.png&amp;quot;position:relative;color:#333333;white-space:normal;&quot;&gt;\\n\\t&lt;h2 class=&quot;title-text&quot; style=&quot;margin:0px;padding:0px 8px 0px 18px;font-size:22px;color:#000000;float:left;line-height:24px;font-weight:400;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;&quot;&gt;\\n\\t\\t性状\\n\\t&lt;/h2&gt;\\n&lt;/div&gt;\\n&lt;div class=&quot;para&quot; label-module=&quot;para&quot; style=&quot;font-size:14px;color:#333333;margin-bottom:15px;text-indent:2em;line-height:24px;zoom:1;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t本品为浅棕色至深棕色的滴丸气微香味微苦。\\n&lt;/div&gt;\\n&lt;div class=&quot;anchor-list&quot; style=&quot;position:relative;color:#333333;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t&lt;a name=&quot;3&quot;&gt;&lt;/a&gt;&lt;a name=&quot;sub467272_3&quot;&gt;&lt;/a&gt;&lt;a name=&quot;功能主治&quot;&gt;&lt;/a&gt; \\n&lt;/div&gt;\\n&lt;div class=&quot;para-title level-2&quot; label-module=&quot;para-title&quot; style=&quot;clear:both;zoom:1;overflow:hidden;border-left:12px solid #4F9CEE;line-height:24px;font-size:22px;font-family:&amp;quot;margin:35px 0px 15px -30px;background:url(&amp;quot;https://bkssl.bdimg.com/static/wiki-lemma/normal/resource/img/paraTitle-line_c5e6d61.png&amp;quot;position:relative;color:#333333;white-space:normal;&quot;&gt;\\n\\t&lt;h2 class=&quot;title-text&quot; style=&quot;margin:0px;padding:0px 8px 0px 18px;font-size:22px;color:#000000;float:left;line-height:24px;font-weight:400;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;&quot;&gt;\\n\\t\\t功能主治\\n\\t&lt;/h2&gt;\\n&lt;/div&gt;\\n&lt;div class=&quot;para&quot; label-module=&quot;para&quot; style=&quot;font-size:14px;color:#333333;margin-bottom:15px;text-indent:2em;line-height:24px;zoom:1;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t益气通脉、活血止痛。用于气虚血瘀型胸痹症见胸闷、胸痛气短乏力、心悸、自汗、面色少华舌体胖有齿痕、舌。质暗或紫暗或有瘀斑脉沉或沉弦。冠心病、心绞痛见上述证候者。\\n&lt;/div&gt;\\n&lt;div class=&quot;anchor-list&quot; style=&quot;position:relative;color:#333333;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t&lt;a name=&quot;4&quot;&gt;&lt;/a&gt;&lt;a name=&quot;sub467272_4&quot;&gt;&lt;/a&gt;&lt;a name=&quot;规格&quot;&gt;&lt;/a&gt; \\n&lt;/div&gt;\\n&lt;div class=&quot;para-title level-2&quot; label-module=&quot;para-title&quot; style=&quot;clear:both;zoom:1;overflow:hidden;border-left:12px solid #4F9CEE;line-height:24px;font-size:22px;font-family:&amp;quot;margin:35px 0px 15px -30px;background:url(&amp;quot;https://bkssl.bdimg.com/static/wiki-lemma/normal/resource/img/paraTitle-line_c5e6d61.png&amp;quot;position:relative;color:#333333;white-space:normal;&quot;&gt;\\n\\t&lt;h2 class=&quot;title-text&quot; style=&quot;margin:0px;padding:0px 8px 0px 18px;font-size:22px;color:#000000;float:left;line-height:24px;font-weight:400;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;&quot;&gt;\\n\\t\\t规格\\n\\t&lt;/h2&gt;\\n&lt;/div&gt;\\n&lt;div class=&quot;para&quot; label-module=&quot;para&quot; style=&quot;font-size:14px;color:#333333;margin-bottom:15px;text-indent:2em;line-height:24px;zoom:1;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t每袋装05g\\n&lt;/div&gt;\\n&lt;div class=&quot;anchor-list&quot; style=&quot;position:relative;color:#333333;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t&lt;a name=&quot;5&quot;&gt;&lt;/a&gt;&lt;a name=&quot;sub467272_5&quot;&gt;&lt;/a&gt;&lt;a name=&quot;用法用量&quot;&gt;&lt;/a&gt; \\n&lt;/div&gt;\\n&lt;div class=&quot;para-title level-2&quot; label-module=&quot;para-title&quot; style=&quot;clear:both;zoom:1;overflow:hidden;border-left:12px solid #4F9CEE;line-height:24px;font-size:22px;font-family:&amp;quot;margin:35px 0px 15px -30px;background:url(&amp;quot;https://bkssl.bdimg.com/static/wiki-lemma/normal/resource/img/paraTitle-line_c5e6d61.png&amp;quot;position:relative;color:#333333;white-space:normal;&quot;&gt;\\n\\t&lt;h2 class=&quot;title-text&quot; style=&quot;margin:0px;padding:0px 8px 0px 18px;font-size:22px;color:#000000;float:left;line-height:24px;font-weight:400;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;&quot;&gt;\\n\\t\\t用法用量\\n\\t&lt;/h2&gt;\\n&lt;/div&gt;\\n&lt;div class=&quot;para&quot; label-module=&quot;para&quot; style=&quot;font-size:14px;color:#333333;margin-bottom:15px;text-indent:2em;line-height:24px;zoom:1;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t餐后半小时服用一次1袋一日3次4周为一个疗程或遵医嘱。\\n&lt;/div&gt;\\n&lt;div class=&quot;anchor-list&quot; style=&quot;position:relative;color:#333333;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t&lt;a name=&quot;6&quot;&gt;&lt;/a&gt;&lt;a name=&quot;sub467272_6&quot;&gt;&lt;/a&gt;&lt;a name=&quot;不良反应&quot;&gt;&lt;/a&gt; \\n&lt;/div&gt;\\n&lt;div class=&quot;para-title level-2&quot; label-module=&quot;para-title&quot; style=&quot;clear:both;zoom:1;overflow:hidden;border-left:12px solid #4F9CEE;line-height:24px;font-size:22px;font-family:&amp;quot;margin:35px 0px 15px -30px;background:url(&amp;quot;https://bkssl.bdimg.com/static/wiki-lemma/normal/resource/img/paraTitle-line_c5e6d61.png&amp;quot;position:relative;color:#333333;white-space:normal;&quot;&gt;\\n\\t&lt;h2 class=&quot;title-text&quot; style=&quot;margin:0px;padding:0px 8px 0px 18px;font-size:22px;color:#000000;float:left;line-height:24px;font-weight:400;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;&quot;&gt;\\n\\t\\t不良反应\\n\\t&lt;/h2&gt;\\n&lt;/div&gt;\\n&lt;div class=&quot;para&quot; label-module=&quot;para&quot; style=&quot;font-size:14px;color:#333333;margin-bottom:15px;text-indent:2em;line-height:24px;zoom:1;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t尚无明确不良反应。\\n&lt;/div&gt;\\n&lt;div class=&quot;anchor-list&quot; style=&quot;position:relative;color:#333333;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t&lt;a name=&quot;7&quot;&gt;&lt;/a&gt;&lt;a name=&quot;sub467272_7&quot;&gt;&lt;/a&gt;&lt;a name=&quot;禁忌&quot;&gt;&lt;/a&gt; \\n&lt;/div&gt;\\n&lt;div class=&quot;para-title level-2&quot; label-module=&quot;para-title&quot; style=&quot;clear:both;zoom:1;overflow:hidden;border-left:12px solid #4F9CEE;line-height:24px;font-size:22px;font-family:&amp;quot;margin:35px 0px 15px -30px;background:url(&amp;quot;https://bkssl.bdimg.com/static/wiki-lemma/normal/resource/img/paraTitle-line_c5e6d61.png&amp;quot;position:relative;color:#333333;white-space:normal;&quot;&gt;\\n\\t&lt;h2 class=&quot;title-text&quot; style=&quot;margin:0px;padding:0px 8px 0px 18px;font-size:22px;color:#000000;float:left;line-height:24px;font-weight:400;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;&quot;&gt;\\n\\t\\t禁忌\\n\\t&lt;/h2&gt;\\n&lt;/div&gt;\\n&lt;div class=&quot;para&quot; label-module=&quot;para&quot; style=&quot;font-size:14px;color:#333333;margin-bottom:15px;text-indent:2em;line-height:24px;zoom:1;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t尚无明确禁忌。\\n&lt;/div&gt;\\n&lt;div class=&quot;anchor-list&quot; style=&quot;position:relative;color:#333333;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t&lt;a name=&quot;8&quot;&gt;&lt;/a&gt;&lt;a name=&quot;sub467272_8&quot;&gt;&lt;/a&gt;&lt;a name=&quot;孕妇及哺乳期妇女用药&quot;&gt;&lt;/a&gt; \\n&lt;/div&gt;\\n&lt;div class=&quot;para-title level-2&quot; label-module=&quot;para-title&quot; style=&quot;clear:both;zoom:1;overflow:hidden;border-left:12px solid #4F9CEE;line-height:24px;font-size:22px;font-family:&amp;quot;margin:35px 0px 15px -30px;background:url(&amp;quot;https://bkssl.bdimg.com/static/wiki-lemma/normal/resource/img/paraTitle-line_c5e6d61.png&amp;quot;position:relative;color:#333333;white-space:normal;&quot;&gt;\\n\\t&lt;h2 class=&quot;title-text&quot; style=&quot;margin:0px;padding:0px 8px 0px 18px;font-size:22px;color:#000000;float:left;line-height:24px;font-weight:400;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;&quot;&gt;\\n\\t\\t孕妇及哺乳期妇女用药\\n\\t&lt;/h2&gt;\\n&lt;/div&gt;\\n&lt;div class=&quot;para&quot; label-module=&quot;para&quot; style=&quot;font-size:14px;color:#333333;margin-bottom:15px;text-indent:2em;line-height:24px;zoom:1;font-family:arial, 宋体, sans-serif;white-space:normal;background-color:#FFFFFF;&quot;&gt;\\n\\t孕妇慎用。\\n&lt;/div&gt;\",\n \"app_content\": null,\n \"show_price\": \"28.80\",\n \"is_online_sale\": 0,\n \"country_code\": \"Z20030139\",\n \"app_thumb\": \"\",\n \"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1545031895782.jpg\",\n \"drug_form\": \"滴丸剂\",\n \"keyword\": \"芪参益气滴丸\",\n \"sketch\": \"益气通脉、活血止痛\",\n \"manufacturer_name\": \"天士力医药集团股份有限公司\",\n \"spec_desc\": \"0.5g*15袋\",\n \"batch_id\": 16,\n \"batch_type\": 1,\n \"retail_flag\": 0,\n \"retail_num\": 5,\n \"entirety_num\": 300,\n \"batch_number\": \"180502\",\n \"stock_num\": 600,\n \"term_validity\": \"2021-03-01\",\n \"supplier_sn\": \"\",\n \"price_id\": 10013,\n \"area_id\": 0,\n \"price\": \"登录后查价\",\n \"price_type\": 0,\n \"discount_price\": null,\n \"discount_num\": 0,\n \"discount_start_time\": null,\n \"discount_end_time\": null,\n \"is_collect\": 0\n }\n }",
"type": "json"
}
],
"fields": {
"Success 200": [
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "is_online_sale",
"defaultValue": "0",
"description": "<p>网售类型:0-网售,1-非网售</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "country_code",
"description": "<p>国药准字</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "manufacturer_name",
"description": "<p>生产厂商</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "spec_desc",
"description": "<p>规格描述</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "pc_content",
"description": "<p>PC端商品详情描述</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "app_content",
"description": "<p>APP端商品详情描述</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "drug_form",
"description": "<p>剂型</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "unit",
"description": "<p>单位</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "max_purchase_period",
"description": "<p>限购周期</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "max_purchase",
"description": "<p>限购数量</p>"
},
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "is_limit",
"defaultValue": "0",
"description": "<p>是否限购(0-不限购1-限购)</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": true,
"field": "limit_info",
"description": "<p>限购说明(示例7天内限购500盒)</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "prescribe_flag",
"description": "<p>是否为处方药1甲类非处方药(甲OTC)2乙类非处方药(乙OTC)3处方药,4未分类</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "batch_number",
"description": "<p>批号</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "supplier_sn",
"description": "<p>供应商商品ID(流通商品)</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "batch_id",
"description": "<p>批次id</p>"
},
{
"group": "Success 200",
"type": "Int",
"optional": false,
"field": "retail_flag",
"description": "<p>零/整标志(0-零售,1-整件售)</p>"
},
{
"group": "Success 200",
"type": "Int",
"optional": false,
"field": "retail_num",
"description": "<p>中包(零售类型的包装数量)</p>"
},
{
"group": "Success 200",
"type": "Int",
"optional": false,
"field": "entirety_num",
"description": "<p>大包(整件售类型的包装数量)</p>"
},
{
"group": "Success 200",
"type": "Int",
"optional": false,
"field": "stock_num",
"description": "<p>库存</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "price",
"description": "<p>销售价</p>"
},
{
"group": "Success 200",
"type": "Number",
"optional": false,
"field": "show_price",
"description": "<p>国规价,建议零售价</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "sketch",
"description": "<p>商品简介</p>"
},
{
"group": "Success 200",
"type": "Int",
"optional": false,
"field": "price_id",
"description": "<p>价格id(price_id/gba_id/sku_id)</p>"
},
{
"group": "Success 200",
"type": "Int",
"optional": false,
"field": "price_type",
"description": "<p>价格类型。0正常价格1近效特价2促销特价3新人特价</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "term_validity",
"description": "<p>有效期</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "discount_price",
"description": "<p>活动价</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "discount_num",
"description": "<p>活动商品数量</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "discount_start_time",
"description": "<p>活动开始时间</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "discount_end_time",
"description": "<p>活动结束时间</p>"
},
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "is_collect",
"defaultValue": "0",
"description": "<p>收藏状态:0-未收藏,1-已收藏</p>"
},
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "is_in_cart",
"defaultValue": "0",
"description": "<p>购物车中是否已有该商品:0-没有,1-有</p>"
},
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "num_in_cart",
"defaultValue": "0",
"description": "<p>购物车中该商品数量</p>"
},
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"-1",
"0",
"1",
"2"
],
"optional": true,
"field": "purchase_right",
"defaultValue": "1",
"description": "<p>采购权(控销商品-1:未申请1-申请中2-通过3-未通过,非控销默认有采购权)</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": true,
"field": "purchase_right_remark",
"description": "<p>采购权申请状态说明</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": true,
"field": "purchase_right_verify_msg",
"description": "<p>采购权审核记录</p>"
},
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "is_buy",
"defaultValue": "0",
"description": "<p>是否可以加购(0-不可以加购1-可加入购购物车)</p>"
}
]
}
},
"filename": "./application/api/controller/GoodsController.php",
"groupTitle": "商品模块",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Goods/detail"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Goods/goodsList",
"title": "1.商品列表(丁超)",
"name": "goodsList",
"group": "Goods",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "limit",
"defaultValue": "20",
"description": "<p>每页多少条默认20</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "page",
"defaultValue": "1",
"description": "<p>当前页默认1</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\"code\": 200,\n\"message\": \"成功\",\n\"data\": {\n}",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Respons:",
"content": "{\n\"code\": 500,\n\"message\": \"fail\",\n\"data\":{\n\"info\": \"Err Msg\",\n}\n}",
"type": "json"
}
]
},
"filename": "./application/api/controller/GoodsController.php",
"groupTitle": "商品模块",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Goods/goodsList"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Goods/goodsRanking",
"title": "5.热搜(李程)",
"name": "goodsRanking",
"group": "Goods",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": [\n {\n \"name\": \"碳酸钙D3片(II)(朗迪)\",\n \"goods_id\": \"aaa0595b508016201803241\"\n },\n {\n \"name\": \"防水创可贴\",\n \"goods_id\": \"aaa1721g617022201810101\"\n },\n {\n \"name\": \"大黄碳酸氢钠片\",\n \"goods_id\": \"aaa0111d713009180115021\"\n },\n {\n \"name\": \"布洛芬混悬液(迪尔诺)\",\n \"goods_id\": \"aaa15604166011501180581\"\n },\n {\n \"name\": \"左炔诺孕酮肠溶片\",\n \"goods_id\": \"aaa0141g0680041708011\"\n },\n {\n \"name\": \"通宣理肺颗粒\",\n \"goods_id\": \"aaa1038d646033201811021\"\n },\n {\n \"name\": \"杏苏止咳糖浆(套盒)\",\n \"goods_id\": \"aaa0510c1700951804011\"\n },\n {\n \"name\": \"绑扎胶布\",\n \"goods_id\": \"aaa1721h977004201807021\"\n },\n {\n \"name\": \"小儿咳喘灵颗粒\",\n \"goods_id\": \"aaa0078f92404841800101\"\n },\n {\n \"name\": \"胃灵颗粒\",\n \"goods_id\": \"aaa13428015051201809031\"\n }\n ]\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/GoodsController.php",
"groupTitle": "商品模块",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Goods/goodsRanking"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Goods/search",
"title": "2.商品搜索 (丁超)",
"name": "search",
"group": "Goods",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": true,
"field": "search_words",
"description": "<p>搜索关键词(默认按照药品名称搜索)</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "is_update_hy",
"defaultValue": "0",
"description": "<p>是否更新hy商品(0-不更新1-更新)</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "cate_id",
"description": "<p>分类id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "activity_id",
"description": "<p>活动id</p>"
},
{
"group": "Parameter",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": true,
"field": "retail_flag",
"description": "<p>零整标志:0-零售,1-整件售</p>"
},
{
"group": "Parameter",
"type": "String",
"allowedValues": [
"\"default\"",
"\"sale\"",
"\"price\"",
"\"term_validity\""
],
"optional": true,
"field": "sort_field",
"defaultValue": "default",
"description": "<p>排序字段</p>"
},
{
"group": "Parameter",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": true,
"field": "sort_order",
"defaultValue": "0",
"description": "<p>排序规则:0-升序1-降序</p>"
},
{
"group": "Parameter",
"type": "Int",
"allowedValues": [
"0",
"1",
"2",
"3"
],
"optional": true,
"field": "term_validity",
"defaultValue": "2",
"description": "<p>效期:0 半年以上,1 一年以上,2 所有,3 近效期(90天内)</p>"
},
{
"group": "Parameter",
"type": "String",
"allowedValues": [
"\"胶囊剂\"",
"\"颗粒剂\"",
"\"片剂\"",
"\"丸剂\"",
"\"注射剂\"",
"\"口服溶液剂\"",
"\"糖浆剂\"",
"\"软膏剂\"",
"\"乳膏剂\"",
"\"搽剂\"",
"\"洗剂\"",
"\"锭剂\"",
"\"口服液\"",
"\"合剂\"",
"\"干混悬剂\"",
"\"滴眼剂\"",
"\"外用滴剂\"",
"\"泡腾片\"",
"\"粉针剂,\"",
"\",粉针剂\"",
"\"酊剂\"",
"\"贴剂\"",
"\"消毒剂\"",
"\"贴膏剂\"",
"\"气雾剂\""
],
"optional": true,
"field": "drug_form",
"description": "<p>剂型</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": true,
"field": "manufacturer",
"description": "<p>生产厂家</p>"
},
{
"group": "Parameter",
"type": "Number",
"size": "0.0001-99999999.9999",
"optional": true,
"field": "price_start",
"description": "<p>价格区间起点</p>"
},
{
"group": "Parameter",
"type": "Number",
"size": "0.0001-99999999.9999",
"optional": true,
"field": "price_end",
"description": "<p>价格区间终点</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": {\n \"total\": 68,\n \"per_page\": 20,\n \"current_page\": 1,\n \"last_page\": 4,\n \"data\": [\n {\n \"price\": \"价格登录可见\",\n \"goods_id\": 1141,\n \"goods_name\": \"阿莫西林胶囊\",\n \"show_price\": \"15.00\",\n \"is_online_sale\": 0,\n \"country_code\": \"H43022211\",\n \"app_thumb\": \"\",\n \"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1543656371912.jpg\",\n \"drug_form\": \"胶囊剂\",\n \"keyword\": \"阿莫西林胶囊\",\n \"sketch\": \"阿莫西林适用于敏感菌(不产β内酰胺酶菌株)所致的感染\",\n \"manufacturer_name\": \"湖南科伦制药有限公司\",\n \"spec_desc\": \"0.25g*10s*5板\",\n \"batch_type\": 1,\n \"batch_id\": 10018,\n \"retail_flag\": 0,\n \"retail_num\": 10,\n \"entirety_num\": 400,\n \"batch_number\": \"G170695\",\n \"stock_num\": 180,\n \"term_validity\": \"2020-05-31\",\n \"supplier_sn\": \"\",\n \"sku_id\": 10005,\n \"area_id\": 0,\n \"price_type\": 2\n \"is_buy\": 1\n },\n …\n ]\n },\n \"to_select\": {\n \"manufacturer\": [\n \"湖南科伦制药有限公司\",\n \"中山市力恩普制药有限公司\",\n \"石药集团中诺药业(石家庄)有限公司\",\n \"葵花药业集团(衡水)得菲尔有限公司\",\n \"黑龙江乌苏里江制药有限公司迎春分公司\",\n \"山东益康药业股份有限公司\",\n \"广州白云山医药集团股份有限公司白云山制药总厂\",\n \"淮南泰复制药有限公司\",\n \"南京臣功制药股份有限公司\",\n \"吉林显锋科技制药有限公司\",\n \"湖北唯森制药有限公司\",\n \"重庆迪康长江制药有限公司\",\n \"四川依科制药有限公司(原四川蜀中制药)\",\n \"山东鲁抗医药股份有限公司\",\n \"四川峨嵋山药业有限公司\",\n \"华北制药股份有限公司\",\n \"悦康药业集团有限公司\",\n \"浙江亚太药业股份有限公司\",\n \"昆明源瑞制药有限公司\"\n ],\n \"drug_form\": [\n \"胶囊剂\",\n \"颗粒剂\",\n \"散剂\",\n \"干混悬剂\",\n \"片剂\"\n ],\n \"retail_flag\": [\n 0,\n 1\n ],\n \"term_validity\": [\n 2,\n 3,\n 1,\n 0\n ]\n }\n }",
"type": "json"
}
],
"fields": {
"Success 200": [
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "is_limit",
"defaultValue": "0",
"description": "<p>是否限购(0-不限购1-限购)</p>"
},
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "limit_info",
"description": "<p>限购说明</p>"
},
{
"group": "Success 200",
"type": "Int",
"allowedValues": [
"0",
"1"
],
"optional": false,
"field": "is_buy",
"defaultValue": "0",
"description": "<p>是否可以加购(0-不可以加购1-可加入购购物车)</p>"
}
]
}
},
"filename": "./application/api/controller/GoodsController.php",
"groupTitle": "商品模块",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Goods/search"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/Goods/searchList",
"title": "6.搜索列表(李程)",
"name": "searchList",
"group": "Goods",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "name",
"description": ""
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": [\n {\n \"name\": \"盐酸美他环素胶囊(沙力欣)\",\n \"manufacturer_name\": \"山西国润制药有限公司\"\n },\n {\n \"name\": \"盐酸二甲双胍缓释片(亿恒)\",\n \"manufacturer_name\": \"南京亿华药业有限公司\"\n },\n {\n \"name\": \"盐酸伐昔洛韦片\",\n \"manufacturer_name\": \"永信药品工业(昆山)股份有限公司\"\n },\n {\n \"name\": \"盐酸氨基葡萄糖胶囊\",\n \"manufacturer_name\": \"浙江诚意药业股份有限公司\"\n },\n {\n \"name\": \"盐酸左旋咪唑宝塔糖\",\n \"manufacturer_name\": \"四川德元药业集团有限公司\"\n },\n {\n \"name\": \"盐酸左氧氟沙星胶囊\",\n \"manufacturer_name\": \"沈阳红旗制药有限公司\"\n },\n {\n \"name\": \"盐酸左氧氟沙星胶囊\",\n \"manufacturer_name\": \"安徽万森制药有限公司\"\n },\n {\n \"name\": \"盐酸左氧氟沙星胶囊\",\n \"manufacturer_name\": \"蚌埠丰原涂山制药有限公司\"\n },\n {\n \"name\": \"盐酸左氧氟沙星胶囊\",\n \"manufacturer_name\": \"石药集团欧意药业有限公司\"\n },\n {\n \"name\": \"盐酸左氧氟沙星胶囊\",\n \"manufacturer_name\": \"山东博山制药有限公司\"\n }\n ]\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/GoodsController.php",
"groupTitle": "商品模块",
"sampleRequest": [
{
"url": "http://api.ydyd.com/Goods/searchList"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/index/article",
"title": "2.文章详情(朱晓伟)",
"name": "article",
"group": "Index",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "id",
"description": "<p>文章id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"article\": {\n\t\"id\": 13,\n\t\"name\": \"公司介绍\",\n\t\"type_id\": \"2,9,17\",\n\t\"status\": 1,\n\t\"show_order\": 12,\n\t\"add_time\": \"2018-11-08 17:14:18\",\n\t\"username\": \"admin\",\n\t\"description\": \"\",\n\t\"contents\": \"&lt;p&gt;\\n\\t&lt;span style=&quot;font-size:16px;&quot;&gt;&lt;/span&gt; \\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height:27.75pt;&quot;&gt;\\n\\t&lt;br /&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height:27.75pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;&quot;&gt;&lt;strong&gt;医点医滴简介&lt;/strong&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-family:微软雅黑;font-size:16px;line-height:2;&quot;&gt;医点医滴成立于&lt;/span&gt;&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;2014&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑;font-size:16px;line-height:2;&quot;&gt;年&lt;/span&gt;&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;7月隶属于安徽金壶医药有限公司是海量用户正在使用的医药平台具有国家食品药品监督管理局颁发《互联网药品信息服务许可证》的合法网上第三方交易平台为广大上下游客户提供一站式购药的便捷体验。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;医点医滴始终致力于用互联网的思维方式,切入信息和药品领域,解决上游供应商和下游采购商信息不对等的问题,为社会创造更大的价值。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;依托安徽金壶医药智能供应链、大数据和自有的医药供销体系的优势,医点医滴在平台运营、产品采购、供应链管理、医药服务、顾客体验、仓储配送等各方面构筑起了核心竞争力。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;凭借源头采药和网上电商的独特资源、平台优势,医点医滴竭诚让利顾客,同样的药品质量保证,更低廉的销售价格,吸引了越来越多的采购商网上购药。通过与医药厂商直供合作,医点医滴在供应链管理上减少中间环节,实现了高效、透明的管理模式,同时为广大顾客带来正品保证,安全保障。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;目前,医点医滴已与拜耳、辉瑞、礼来、阿斯利康、同仁堂、东阿阿胶、强生安视优、白云山、汇仁药业、碧生源、斯利安药业等国内外数百家医药厂商建立了长期合作关系,为顾客提供涵盖中西药品、中药保健、医疗器械等多个品类的数十万种医药健康产品。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;依托优质的第三方&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑;font-size:16px;line-height:2;&quot;&gt;仓储布局&lt;/span&gt;&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;, 医点医滴为广大顾客提供更为快捷的配送方式和体验,建立了覆盖全国范围的配送服务。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height:27.75pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;&quot;&gt;&lt;strong&gt;金壶医药简介&lt;/strong&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;金壶医药由王玉龙先生&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑;font-size:16px;line-height:2;&quot;&gt;创建,致力于用互联网模式和思维方式,改变中国药商&lt;/span&gt;&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;&quot;销售难、采购贵&quot;的现状。金壶医药运用创新的互联网和IT技术提供在线咨询和购药等服务缩减中间环节优化供应链为中国药商的供货采购提供完整的解决方案以及实惠和方便。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:36pt;&quot;&gt;\\n\\t&lt;span style=&quot;font-family:微软雅黑;font-size:16px;line-height:2;&quot;&gt;金壶医药旗下拥有:&lt;/span&gt;&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;B2B&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑;font-size:16px;line-height:2;&quot;&gt;医药平台&lt;/span&gt;&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;&quot;医点医滴&quot;、太和办事处、阜阳办事处&lt;/span&gt;&lt;span style=&quot;font-family:微软雅黑;font-size:16px;line-height:2;&quot;&gt;,通过创新的&lt;/span&gt;&lt;span style=&quot;font-size:16px;line-height:2;&quot;&gt;B2B的模式全面实现B端线上和线下、自营和平台、商和药的融合发展打造中国以科技驱动的线上线下有机融合的医药健康平台为医生、药店、医院、药企、药品流通商赋能。&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;\\n&lt;/p&gt;\\n&lt;p&gt;\\n\\t&lt;br /&gt;\\n&lt;/p&gt;\\n&lt;p style=&quot;text-align:center;&quot;&gt;\\n\\t&lt;br /&gt;\\n&lt;/p&gt;\"\n\t}\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/IndexController.php",
"groupTitle": "首页",
"sampleRequest": [
{
"url": "http://api.ydyd.com/index/article"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/index/custOmer",
"title": "4.查看客服(李程)",
"name": "custOmer",
"group": "Index",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"nickname\": \"李峰\",\n \"mobile\": \"18756027162\"\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/IndexController.php",
"groupTitle": "首页",
"sampleRequest": [
{
"url": "http://api.ydyd.com/index/custOmer"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/index/index",
"title": "1.大首页(朱晓伟)",
"name": "index",
"group": "Index",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"banner\": [\n\t{\n\t\"id\": 1,\n\t\"app_pic_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/app_pic_url_1547692989524.svg\"\n\t},\n\t{\n\t\"id\": 2,\n\t\"app_pic_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/app_pic_url_1547693022342.svg\"\n\t},\n\t{\n\t\"id\": 3,\n\t\"app_pic_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/app_pic_url_1547689859579.svg\"\n\t}\n\t],\n\t\"article\": [\n\t{\n\t\"id\": 13,\n\t\"description\": \"\"\n\t}\n\t],\n\t\"activity_icons\": [\n\t{\n\t\"id\": 13,\n\t\"activity_name\": \"高毛专区\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 1,\n\t\"is_self\": 0,\n\t\"cover_img\": \"\",\n\t\"goods_list\": []\n\t},\n\t{\n\t\"id\": 14,\n\t\"activity_name\": \"新品上架\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 1,\n\t\"is_self\": 0,\n\t\"cover_img\": \"\",\n\t\"goods_list\": []\n\t},\n\t{\n\t\"id\": 15,\n\t\"activity_name\": \"热销专区\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 1,\n\t\"is_self\": 0,\n\t\"cover_img\": \"\",\n\t\"goods_list\": []\n\t},\n\t{\n\t\"id\": 16,\n\t\"activity_name\": \"近期特价\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 1,\n\t\"is_self\": 0,\n\t\"cover_img\": \"\",\n\t\"goods_list\": []\n\t}\n\t],\n\t\"activity_self_true\": [\n\t{\n\t\"id\": 10,\n\t\"activity_name\": \"新人优惠\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 2,\n\t\"is_self\": 1,\n\t\"cover_img\": \"\",\n\t\"goods_list\": {\n\t\"total\": 3,\n\t\"per_page\": 6,\n\t\"current_page\": 1,\n\t\"last_page\": 1,\n\t\"data\": [\n\t{\n\t\"goods_id\": 1767,\n\t\"name\": \"复古糖片新药特制\",\n\t\"spec_desc\": \"16粒*4板\",\n\t\"unit\": \"盒\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"sort_order\": 0,\n\t\"app_thumb\": \"\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1568019676054.png\",\n\t\"supplier_name\": \"安徽金壶医药\",\n\t\"manufacturer_name\": \"安国市天下康制药有限公司\",\n\t\"batch_number\": \"2019090705\",\n\t\"retail_flag\": 0,\n\t\"batch_type\": 1,\n\t\"cost_price\": \"27.1123\",\n\t\"stock_num\": 625,\n\t\"gba_id\": 12129,\n\t\"is_onshelf\": 0,\n\t\"area_id\": 0,\n\t\"price\": \"45.0000\",\n\t\"platform_royalty\": \"0.1001\",\n\t\"discount_price\": null,\n\t\"discount_num\": null,\n\t\"sort\": 0\n\t},\n\t{\n\t\"goods_id\": 1762,\n\t\"name\": \"测试新增加的新药品\",\n\t\"spec_desc\": \"16粒*4板\",\n\t\"unit\": \"盒\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"sort_order\": 0,\n\t\"app_thumb\": \"\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1567763448346.png\",\n\t\"supplier_name\": \"安徽金壶医药\",\n\t\"manufacturer_name\": \"安徽新产地医药公司\",\n\t\"batch_number\": \"2019090601\",\n\t\"retail_flag\": 1,\n\t\"batch_type\": 0,\n\t\"cost_price\": \"30.8000\",\n\t\"stock_num\": 2500,\n\t\"gba_id\": 12120,\n\t\"is_onshelf\": 0,\n\t\"area_id\": 0,\n\t\"price\": \"37.5000\",\n\t\"platform_royalty\": \"0.1000\",\n\t\"discount_price\": null,\n\t\"discount_num\": null,\n\t\"sort\": 0\n\t},\n\t{\n\t\"goods_id\": 1759,\n\t\"name\": \"111111yetete\",\n\t\"spec_desc\": \"0.5*16\",\n\t\"unit\": \"盒\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"sort_order\": 0,\n\t\"app_thumb\": \"\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1567754815655.png\",\n\t\"supplier_name\": \"安徽金壶医药\",\n\t\"manufacturer_name\": \"安国市天下康制药有限公司\",\n\t\"batch_number\": \"2019090501\",\n\t\"retail_flag\": 1,\n\t\"batch_type\": 0,\n\t\"cost_price\": \"20.6000\",\n\t\"stock_num\": 5000,\n\t\"gba_id\": 12115,\n\t\"is_onshelf\": 0,\n\t\"area_id\": 0,\n\t\"price\": \"24.9000\",\n\t\"platform_royalty\": \"0.2000\",\n\t\"discount_price\": null,\n\t\"discount_num\": null,\n\t\"sort\": 0\n\t}\n\t]\n\t}\n\t}\n\t],\n\t\"activity_self_false\": [\n\t{\n\t\"id\": 11,\n\t\"activity_name\": \"热门推荐\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 2,\n\t\"is_self\": 0,\n\t\"cover_img\": \"\",\n\t\"goods_list\": []\n\t},\n\t{\n\t\"id\": 12,\n\t\"activity_name\": \"秒杀活动\",\n\t\"activity_belong\": 2,\n\t\"activity_type\": 2,\n\t\"is_self\": 0,\n\t\"cover_img\": \"\",\n\t\"goods_list\": []\n\t}\n\t]\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/IndexController.php",
"groupTitle": "首页",
"sampleRequest": [
{
"url": "http://api.ydyd.com/index/index"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/index/submitSuggestion",
"title": "3.意见反馈(李程)",
"name": "submitSuggestion",
"group": "Index",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "status",
"description": "<p>状态1返回选择框的内容2提交所以数据</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "phone",
"description": "<p>手机号</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "type",
"description": "<p>建议类型</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "suggestion_content",
"description": "<p>建议内容</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "pic_url",
"description": "<p>图片路径 json</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errcode\": 0,\n \"errmsg\": \"提交成功\"\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/IndexController.php",
"groupTitle": "首页",
"sampleRequest": [
{
"url": "http://api.ydyd.com/index/submitSuggestion"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/message/getList",
"title": "2.消息列表(朱晓伟)",
"name": "getList",
"group": "Message",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "limit",
"description": "<p>每页多少条默认20</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "page",
"description": "<p>当前页默认1</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"total\": 1,\n\t\"per_page\": 20,\n\t\"current_page\": 1,\n\t\"last_page\": 1,\n\t\"data\": [\n\t{\n\t\"id\": 1,\n\t\"biz_type\": 1,\n\t\"biz_id\": 1,\n\t\"biz_title\": \"这只是一个测试\",\n\t\"is_read\": 0,\n\t\"create_time\": \"2020-04-16\",\n\t\"biz_type_text\": \"订单信息\"\n\t}\n\t]\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/MessageController.php",
"groupTitle": "消息管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/message/getList"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/message/send",
"title": "1.发送消息(朱晓伟)",
"name": "send",
"group": "Message",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "user_id",
"description": "<p>用户id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "biz_type",
"description": "<p>业务类型 1:订单2:企业认证3售后服务</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "biz_id",
"description": "<p>业务id</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "biz_title",
"description": "<p>业务描述</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"message_id\": 1\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/MessageController.php",
"groupTitle": "消息管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/message/send"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/order/cancel",
"title": "5.取消订单(朱晓伟)",
"name": "cancel",
"group": "Order",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "order_id",
"description": "<p>订单id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\"order_id\":1}}",
"type": "json"
}
]
},
"filename": "./application/api/controller/OrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/order/cancel"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/order/count",
"title": "7.订单数量(朱晓伟)",
"name": "count",
"group": "Order",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": [\n\t{\n\t\"order_status\": 1,\n\t\"count\": 2\n\t},\n\t{\n\t\"order_status\": 2,\n\t\"count\": 2\n\t},\n\t{\n\t\"order_status\": 6,\n\t\"count\": 0\n\t},\n\t{\n\t\"order_status\": 3,\n\t\"count\": 0\n\t}\n\t]\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/OrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/order/count"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/order/detail",
"title": "2.订单详情(朱晓伟)",
"name": "detail",
"group": "Order",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "id",
"description": "<p>订单id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"invalid_order_goods\": [],\n\t\"buyer_info\": {\n\t\"organization_code\": \"7864654665456\",\n\t\"invoice_title\": \"测试企业\"\n\t},\n\t\"user_address\": {\n\t\"area_id\": 3,\n\t\"address\": \"广东省汕头市南澳县撒打算\",\n\t\"consignee\": \"阿达\",\n\t\"tel\": \"17605052525\"\n\t},\n\t\"order_goods\": [\n\t{\n\t\"goods_id\": \"1744\",\n\t\"batch_id\": \"2149\",\n\t\"unit_price\": \"1500.00\",\n\t\"spread_unit_price\": \"0.00\",\n\t\"spread_flag\": 0,\n\t\"type\": \"\",\n\t\"goods_number\": 100,\n\t\"is_delete\": 0,\n\t\"name\": \"不正常人类研究用药\",\n\t\"spec_desc\": \"100*100ml\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1566891904416.jpg\",\n\t\"app_thumb\": \"\",\n\t\"batch_number\": \"PC20190827\",\n\t\"manufacturer_name\": \"安徽双鹤药业有限责任公司\",\n\t\"term_validity\": \"2022-08-31\",\n\t\"retail_flag\": 0,\n\t\"total\": \"150000.00\"\n\t},\n\t{\n\t\"goods_id\": \"1770\",\n\t\"batch_id\": \"2177\",\n\t\"unit_price\": \"20.00\",\n\t\"spread_unit_price\": \"0.00\",\n\t\"spread_flag\": 0,\n\t\"type\": \"\",\n\t\"goods_number\": 400,\n\t\"is_delete\": 0,\n\t\"name\": \"手疼药\",\n\t\"spec_desc\": \"0.1g*100板\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1568255630161.jpg\",\n\t\"app_thumb\": \"\",\n\t\"batch_number\": \"2022\",\n\t\"manufacturer_name\": \" 广东宏盈科技有限公司 \",\n\t\"term_validity\": \"2023-09-13\",\n\t\"retail_flag\": 1,\n\t\"total\": \"8000.00\"\n\t},\n\t{\n\t\"goods_id\": \"1766\",\n\t\"batch_id\": \"2167\",\n\t\"unit_price\": \"43.40\",\n\t\"spread_unit_price\": \"0.00\",\n\t\"spread_flag\": 0,\n\t\"type\": \"\",\n\t\"goods_number\": 500,\n\t\"is_delete\": 0,\n\t\"name\": \"复古糖片新药\",\n\t\"spec_desc\": \"16粒*2板\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1568019676054.png\",\n\t\"app_thumb\": \"\",\n\t\"batch_number\": \"2019090702\",\n\t\"manufacturer_name\": \"安徽安科余良卿药业有限公司\",\n\t\"term_validity\": \"2020-09-30\",\n\t\"retail_flag\": 1,\n\t\"total\": \"21700.00\"\n\t},\n\t{\n\t\"goods_id\": \"470\",\n\t\"batch_id\": \"871\",\n\t\"unit_price\": \"10.00\",\n\t\"spread_unit_price\": \"0.00\",\n\t\"spread_flag\": 0,\n\t\"type\": \"\",\n\t\"goods_number\": 80,\n\t\"is_delete\": 0,\n\t\"name\": \"匹多莫德口服溶液\",\n\t\"spec_desc\": \"10ml:0.4g*6支\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1545011228838.jpg\",\n\t\"app_thumb\": \"\",\n\t\"batch_number\": \"2017060303\",\n\t\"manufacturer_name\": \"江苏吴中医药集团有限公司苏州制药厂\",\n\t\"term_validity\": \"2019-06-02\",\n\t\"retail_flag\": 1,\n\t\"total\": \"800.00\"\n\t}\n\t],\n\t\"order_detail\": {\n\t\"order_id\": 403,\n\t\"order_sn\": \"20040111571980298718\",\n\t\"status\": 6,\n\t\"pay_type\": 2,\n\t\"pay_status\": 1,\n\t\"express_status\": 0,\n\t\"shipping_fee\": \"1.00\",\n\t\"goods_amount\": \"180500.00\",\n\t\"total_amount\": \"180501.00\",\n\t\"address_id\": 141,\n\t\"express_name\": \"\",\n\t\"express_sn\": \"\",\n\t\"create_time\": \"2020-04-01 11:57:34\",\n\t\"shipping_time\": \"2020-04-13 11:31:02\",\n\t\"pay_time\": \"2020-04-01 13:42:56\",\n\t\"finished_time\": \"0000-01-01 00:00:00\",\n\t\"deadline_time\": \"2020-05-01 11:57:34\",\n\t\"remark\": \"\",\n\t\"count_down\": 0,\n\t\"agent\": 2,\n\t\"order_status_str\": \"待收货\",\n\t\"order_status\": 2,\n\t\"can_pay\": 0,\n\t\"need_cs_confirm\": 0,\n\t\"cancel_flag\": 0\n\t},\n\t\"cancel_reason\": null\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/OrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/order/detail"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/order/index",
"title": "1.订单列表(朱晓伟)",
"name": "index",
"group": "Order",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "limit",
"description": "<p>每页多少条默认20</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "page",
"description": "<p>当前页默认1</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": [\n\t{\n\t\"order_id\": 403,\n\t\"order_sn\": \"20040111571980298718\",\n\t\"status\": 6,\n\t\"pay_type\": 2,\n\t\"pay_status\": 1,\n\t\"express_status\": 0,\n\t\"express_name\": \"\",\n\t\"express_sn\": \"\",\n\t\"shipping_fee\": \"1.00\",\n\t\"pay_voucher\": \"\",\n\t\"goods_amount\": \"180500.00\",\n\t\"total_amount\": \"180501.00\",\n\t\"create_time\": \"2020-04-01 11:57:34\",\n\t\"deadline_time\": \"2020-05-01 11:57:34\",\n\t\"order_contract_url\": \"\",\n\t\"need_cs_confirm\": 0,\n\t\"cancel_flag\": 0,\n\t\"need_pay\": 0,\n\t\"agent\": 0,\n\t\"order_status_str\": \"待收货\",\n\t\"order_status\": 2,\n\t\"goods_list\": [\n\t{\n\t\"order_id\": 403,\n\t\"batch_id\": \"2149\",\n\t\"type\": \"\",\n\t\"extend_data\": null,\n\t\"goods_number\": 100,\n\t\"name\": \"不正常人类研究用药\",\n\t\"unit\": \"支\",\n\t\"spec_desc\": \"100*100ml\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1566891904416.jpg\"\n\t},\n\t{\n\t\"order_id\": 403,\n\t\"batch_id\": \"2177\",\n\t\"type\": \"\",\n\t\"extend_data\": null,\n\t\"goods_number\": 400,\n\t\"name\": \"手疼药\",\n\t\"unit\": \"板\",\n\t\"spec_desc\": \"0.1g*100板\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1568255630161.jpg\"\n\t},\n\t{\n\t\"order_id\": 403,\n\t\"batch_id\": \"2167\",\n\t\"type\": \"\",\n\t\"extend_data\": null,\n\t\"goods_number\": 500,\n\t\"name\": \"复古糖片新药\",\n\t\"unit\": \"盒\",\n\t\"spec_desc\": \"16粒*2板\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1568019676054.png\"\n\t},\n\t{\n\t\"order_id\": 403,\n\t\"batch_id\": \"871\",\n\t\"type\": \"\",\n\t\"extend_data\": null,\n\t\"goods_number\": 80,\n\t\"name\": \"匹多莫德口服溶液\",\n\t\"unit\": \"盒\",\n\t\"spec_desc\": \"10ml:0.4g*6支\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1545011228838.jpg\"\n\t}\n\t]\n\t},\n\t{\n\t\"order_id\": 339,\n\t\"order_sn\": \"19072216006840298102\",\n\t\"status\": 0,\n\t\"pay_type\": 2,\n\t\"pay_status\": 0,\n\t\"express_status\": 0,\n\t\"express_name\": \"\",\n\t\"express_sn\": \"\",\n\t\"shipping_fee\": \"0.00\",\n\t\"pay_voucher\": \"\",\n\t\"goods_amount\": \"10024.00\",\n\t\"total_amount\": \"10024.00\",\n\t\"create_time\": \"2019-07-22 16:00:21\",\n\t\"deadline_time\": \"2019-08-21 16:00:21\",\n\t\"order_contract_url\": \"\",\n\t\"need_cs_confirm\": 0,\n\t\"cancel_flag\": 0,\n\t\"need_pay\": 0,\n\t\"agent\": 0,\n\t\"order_status_str\": \"已取消\",\n\t\"order_status\": 3,\n\t\"goods_list\": [\n\t{\n\t\"order_id\": 339,\n\t\"batch_id\": \"892\",\n\t\"type\": \"\",\n\t\"extend_data\": null,\n\t\"goods_number\": 200,\n\t\"name\": \"双氯芬酸钠缓释胶囊\",\n\t\"unit\": \"盒\",\n\t\"spec_desc\": \"50mg*20s\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1543914540595.jpg\"\n\t},\n\t{\n\t\"order_id\": 339,\n\t\"batch_id\": \"f4a0597e522059201811031\",\n\t\"type\": \"extend\",\n\t\"extend_data\": \"{\\\"name\\\": \\\"黄柏胶囊\\\", \\\"unit\\\": \\\"盒\\\", \\\"price\\\": \\\"5.50\\\", \\\"sketch\\\": \\\"黄柏胶囊\\\", \\\"gallery\\\": [\\\"http://hyey.cn/uploadpic/400/a0597/e522059/e522059_0.jpg\\\"], \\\"can_show\\\": 1, \\\"drug_form\\\": \\\"胶囊剂\\\", \\\"spec_desc\\\": \\\"12s*3板\\\", \\\"stock_num\\\": \\\"900\\\", \\\"pc_content\\\": \\\"\\\", \\\"retail_num\\\": 10, \\\"show_price\\\": \\\"12.50\\\", \\\"retail_flag\\\": 1, \\\"batch_number\\\": \\\"20181103\\\", \\\"country_code\\\": \\\"Z61021657\\\", \\\"entirety_num\\\": 300, \\\"term_validity\\\": \\\"2020-11-08\\\", \\\"show_price_int\\\": \\\"12\\\", \\\"extend_goods_id\\\": \\\"f4a0597e522059201811031\\\", \\\"show_price_float\\\": \\\"50\\\", \\\"manufacturer_name\\\": \\\"陕西盘龙药业集团股份有限公司\\\"}\",\n\t\"goods_number\": 300,\n\t\"name\": \"黄柏胶囊\",\n\t\"unit\": \"盒\",\n\t\"spec_desc\": \"12s*3板\",\n\t\"pc_thumb\": \"http://hyey.cn/uploadpic/400/a0597/e522059/e522059_0.jpg\"\n\t},\n\t{\n\t\"order_id\": 339,\n\t\"batch_id\": \"b8a0597e522051201712011\",\n\t\"type\": \"extend\",\n\t\"extend_data\": \"{\\\"name\\\": \\\"丹七片\\\", \\\"unit\\\": \\\"盒\\\", \\\"price\\\": \\\"14\\\", \\\"sketch\\\": \\\"丹七片\\\", \\\"gallery\\\": [\\\"http://hyey.cn/uploadpic/400/a0597/e522051/e522051_0.jpg\\\"], \\\"can_show\\\": 1, \\\"drug_form\\\": \\\"片剂\\\", \\\"spec_desc\\\": \\\"0.3g*18s*2板\\\", \\\"stock_num\\\": \\\"1200\\\", \\\"pc_content\\\": \\\"\\\", \\\"retail_num\\\": 10, \\\"show_price\\\": \\\"49.98\\\", \\\"retail_flag\\\": 1, \\\"batch_number\\\": \\\"20171201\\\", \\\"country_code\\\": \\\"Z61021166\\\", \\\"entirety_num\\\": 300, \\\"term_validity\\\": \\\"2020-11\\\", \\\"show_price_int\\\": \\\"49\\\", \\\"extend_goods_id\\\": \\\"b8a0597e522051201712011\\\", \\\"show_price_float\\\": \\\"98\\\", \\\"manufacturer_name\\\": \\\"陕西盘龙药业集团股份有限公司\\\"}\",\n\t\"goods_number\": 300,\n\t\"name\": \"丹七片\",\n\t\"unit\": \"盒\",\n\t\"spec_desc\": \"0.3g*18s*2板\",\n\t\"pc_thumb\": \"http://hyey.cn/uploadpic/400/a0597/e522051/e522051_0.jpg\"\n\t}\n\t]\n\t}\n\t]\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/OrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/order/index"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/order/preview",
"title": "4.预览订单(朱晓伟)",
"name": "preview",
"group": "Order",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "id_group",
"description": "<p>购物车ID集合 例如&quot;1,2,3,4&quot;</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"address\": {\n\t\"id\": 141,\n\t\"area_id\": 3,\n\t\"address\": \"广东省汕头市南澳县撒打算\",\n\t\"consignee\": \"阿达\",\n\t\"tel\": \"17605052525\"\n\t},\n\t\"goods_list\": {\n\t\"plat\": [{\n\t\"id\": 106,\n\t\"goods_number\": 10,\n\t\"unit_price\": \"1.87\",\n\t\"goods_name\": \"丙酸氯倍他索乳膏\",\n\t\"country_code\": \"H31022876\",\n\t\"drug_form\": \"乳膏剂\",\n\t\"unit\": \"支\",\n\t\"spec_desc\": \"10g2mg\",\n\t\"manufacturer_name\": \"上海新亚药业闵行有限公司\",\n\t\"pc_thumb\": \"www.hyey.cn\\/uploadpic\\/600\\/a0953\\/3359054\\/3359054_0.jpg\",\n\t\"app_thumb\": \"www.hyey.cn\\/uploadpic\\/600\\/a0953\\/3359054\\/3359054_0.jpg\",\n\t\"batch_id\": 11817,\n\t\"retail_flag\": 0,\n\t\"batch_number\": \"190201\",\n\t\"retail_num\": 10,\n\t\"entirety_num\": 600,\n\t\"term_validity\": \"2021-01-16\",\n\t\"stock_num\": 1300,\n\t\"is_buy\": 0\n\t}, {\n\t\"id\": 109,\n\t\"goods_number\": 100,\n\t\"unit_price\": \"45.00\",\n\t\"goods_name\": \"复古糖片新药特制\",\n\t\"country_code\": \"GM201909\",\n\t\"drug_form\": \"胶囊剂\",\n\t\"unit\": \"盒\",\n\t\"spec_desc\": \"16粒*4板\",\n\t\"manufacturer_name\": \"安国市天下康制药有限公司\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/pc_shop_thumb_url_1568019676054.png\",\n\t\"app_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/pc_shop_thumb_url_1568019676054.png\",\n\t\"batch_id\": 2168,\n\t\"retail_flag\": 0,\n\t\"batch_number\": \"2019090705\",\n\t\"retail_num\": 20,\n\t\"entirety_num\": 500,\n\t\"term_validity\": \"2020-10-01\",\n\t\"stock_num\": 625,\n\t\"is_buy\": 0\n\t}],\n\t\"extend\": []\n\t},\n\t\"goods_amount\": \"4518.70\",\n\t\"total_number\": 110,\n\t\"shipping_fee\": \"0.00\",\n\t\"total_amount\": \"4518.70\",\n\t\"is_buy\": 0\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/OrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/order/preview"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/order/submit",
"title": "3.创建订单(朱晓伟)",
"name": "submit",
"group": "Order",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "id_group",
"description": "<p>购物车ID集合 例如&quot;1,2,3,4&quot;</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "address",
"description": "<p>详细地址</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "consignee",
"description": "<p>收货人</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "tel",
"description": "<p>收货人电话</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "remark",
"description": "<p>备注</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "area_id",
"description": "<p>区域id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "total_number",
"description": "<p>总货数</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "total_amount",
"description": "<p>总价格</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t \"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\"order_id\":1}}",
"type": "json"
}
]
},
"filename": "./application/api/controller/OrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/order/submit"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/order/toPay",
"title": "6.去支付(朱晓伟)",
"name": "toPay",
"group": "Order",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "order_id",
"description": "<p>订单id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\"order_id\":1}}",
"type": "json"
}
]
},
"filename": "./application/api/controller/OrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/order/toPay"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/pay/appPay",
"title": "订单现金支付参数(朱晓伟)",
"group": "Pay",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "order_id",
"description": "<p>订单id</p>"
},
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "pay_type",
"description": "<p>值1货到付款值2线下支付值3小程序支付值4微信支付值5支付宝支付</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\":200,\n\t\"message\":\"成功\",\n\t\"data\":{\n\t\"aliPayInfo\":\"alipay_sdk=alipay-sdk-php-20161101&app_id=2016092600600876&biz_content=%7B%22subject%22%3A%22%5Cu652f%5Cu4ed8%5Cu5b9d%5Cu8ba2%5Cu5355%22%2C%22timeout_express%22%3A%22165885m%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22total_amount%22%3A%220.00%22%2C%22out_trade_no%22%3A%222019082048489749%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2Fapi.gamekingtao.top%2Forder-aliPay-callback&sign_type=RSA×tamp=2019-08-21+10%3A38%3A30&version=1.0&sign=fG173y4NgKrXbIpWd0gPHCUiAytfwnDzCMJo%2Fkix3r5pjohAlldgirvV9GQjD%2FrErz4jcQI9ycgrp49SuvdBBs4Ao6u1IoxFHHMHArYbsIT34yYWPvR40AsOXqmNfTyrhnUFSscIBzgQosrZ3plFlqBIqivvgQAfbrIAB8wluXRf1Nb85oQp8M69QGkoAXG51NNfOt%2Bm4cKW%2B4hdz6s2ZsbY1y7cgdtLXkHelI2duLNMWy9w%2FL6UZTUHU6xMAfYW%2BEEQPFNNgnUoet%2FrQBBS5a9jlc6zv52vb8znTId%2B9jA%2FnvdIy2SqmUNi9WTlWzJB%2B4GsG6lnC3cK6NYxPGcCpg%3D%3D\",\n\t\"wxPayInfo\":{\n\t\"errorCode\":0,\n\t\"msg\":\"预支付完成\",\n\t\"data\":{\n\t\"appid\":\"wxd8994a99ecb6c5ad\",\n\t\"partnerid\":\"1516520031\",\n\t\"prepayid\":\"wx241412507174778076f635510070001215\",\n\t\"noncestr\":\"6BF2268744B9D5BBDC16988546124B27\",\n\t\"package\":\"Sign=WXPay\",\n\t\"timestamp\":\"1540361565\",\n\t\"sign\":\"9AB0FD4246CE080A91164592E02A83BA\",\n\t\"pay_type\":2,\n\t\"out_trade_no\":\"w20181024141245529843\"\n\t}\n\t},\n\t\"pay_type\":\"1\",\n\t\"out_trade_no\":\"2019082048489749\"\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/PayController.php",
"groupTitle": "支付管理",
"name": "PostPayApppay",
"sampleRequest": [
{
"url": "http://api.ydyd.com/pay/appPay"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/service/add",
"title": "1.申请售后(朱晓伟)",
"group": "Service",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "order_id",
"description": "<p>订单id</p>"
},
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "order_goods_id",
"description": "<p>订单商品id</p>"
},
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "type",
"description": "<p>售后类型</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "reason",
"description": "<p>售后原因</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "refund_price",
"description": "<p>退款金额</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "refund_content",
"description": "<p>退款说明</p>"
},
{
"group": "Parameter",
"type": "Json",
"optional": false,
"field": "img",
"description": "<p>图片证明</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"service_id\": 1\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ServiceController.php",
"groupTitle": "售后管理",
"name": "PostServiceAdd",
"sampleRequest": [
{
"url": "http://api.ydyd.com/service/add"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/service/cancel",
"title": "5.撤销售后(朱晓伟)",
"group": "Service",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "id",
"description": "<p>服务id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"service_id\": 1\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ServiceController.php",
"groupTitle": "售后管理",
"name": "PostServiceCancel",
"sampleRequest": [
{
"url": "http://api.ydyd.com/service/cancel"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/service/express",
"title": "4.提交物流(朱晓伟)",
"group": "Service",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "id",
"description": "<p>服务id</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "express",
"description": "<p>物流公司</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "express_sn",
"description": "<p>物流单号 apiParam {String} [express_remarks] 物流备注</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"service_id\": 1\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ServiceController.php",
"groupTitle": "售后管理",
"name": "PostServiceExpress",
"sampleRequest": [
{
"url": "http://api.ydyd.com/service/express"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/service/getInfo",
"title": "3.售后详情(朱晓伟)",
"group": "Service",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "id",
"description": "<p>服务id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"service_id\": 1\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ServiceController.php",
"groupTitle": "售后管理",
"name": "PostServiceGetinfo",
"sampleRequest": [
{
"url": "http://api.ydyd.com/service/getInfo"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/service/getList",
"title": "2.售后列表(朱晓伟)",
"group": "Service",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"total\": 2,\n\t\"per_page\": 20,\n\t\"current_page\": 1,\n\t\"last_page\": 1,\n\t\"data\": [{\n\t\"order_sn\": \"19011917229620248565\",\n\t\"name\": \"复方陈香胃片\",\n\t\"app_thumb\": \"http:\\/\\/\",\n\t\"pc_thumb\": null,\n\t\"spec_desc\": \"0.56g*48s\",\n\t\"extend_data\": \"{\\\"name\\\": \\\"复方陈香胃片\\\", \\\"unit\\\": \\\"盒\\\", \\\"price\\\": \\\"5.30\\\", \\\"sketch\\\": \\\"复方陈香胃片\\\", \\\"gallery\\\": [\\\"http:\\/\\/hyey.cn\\/uploadpic\\/400\\/a0021\\/7387035\\/7387035_0.jpg\\\", \\\"http:\\/\\/hyey.cn\\/uploadpic\\/400\\/a0021\\/7387035\\/7387035_1.jpg\\\"], \\\"can_show\\\": 1, \\\"drug_form\\\": \\\"片剂\\\", \\\"spec_desc\\\": \\\"0.56g*48s\\\", \\\"stock_num\\\": \\\"99999+\\\", \\\"pc_content\\\": \\\"\\\", \\\"retail_num\\\": \\\"10\\\", \\\"show_price\\\": \\\"31.70\\\", \\\"retail_flag\\\": 0, \\\"batch_number\\\": \\\"18010701\\\", \\\"country_code\\\": \\\"Z36021569\\\", \\\"entirety_num\\\": \\\"200\\\", \\\"term_validity\\\": \\\"2019-12\\\", \\\"show_price_int\\\": 31, \\\"extend_goods_id\\\": \\\"b8a00217387035180107011\\\", \\\"show_price_float\\\": 69, \\\"manufacturer_name\\\": \\\"江西天施康中药股份有限公司\\\"}\",\n\t\"goods_number\": 10,\n\t\"unit_price\": \"5.30\",\n\t\"retail_flag\": \"整\",\n\t\"manufacturer_name\": \"江西天施康中药股份有限公司\",\n\t\"id\": 2,\n\t\"order_id\": 124,\n\t\"order_goods_id\": 102,\n\t\"user_id\": 298,\n\t\"status\": 1,\n\t\"type\": 0,\n\t\"reason\": null,\n\t\"refund_price\": null,\n\t\"refund_content\": null,\n\t\"img\": null,\n\t\"admin_user_id\": 0,\n\t\"express\": 0,\n\t\"express_sn\": null,\n\t\"express_remarks\": null,\n\t\"create_time\": \"1970-01-01\",\n\t\"update_time\": \"1970-01-01\",\n\t\"delete_time\": null,\n\t\"total_price\": 53,\n\t\"status_text\": \"订单信息\",\n\t\"type_text\": \"\"\n\t}, {\n\t\"order_sn\": \"19011917229620248565\",\n\t\"name\": \"柴黄颗粒\",\n\t\"app_thumb\": \"http:\\/\\/ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/pc_shop_thumb_url_1542080800757.jpg\",\n\t\"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com\\/pc_shop_thumb_url_1542080800757.jpg\",\n\t\"spec_desc\": \"4g*12袋\",\n\t\"extend_data\": null,\n\t\"goods_number\": 200,\n\t\"unit_price\": \"10.50\",\n\t\"retail_flag\": \"零\",\n\t\"manufacturer_name\": \"江西京通美联药业有限公司\",\n\t\"id\": 1,\n\t\"order_id\": 124,\n\t\"order_goods_id\": 1279,\n\t\"user_id\": 298,\n\t\"status\": 1,\n\t\"type\": 0,\n\t\"reason\": null,\n\t\"refund_price\": null,\n\t\"refund_content\": null,\n\t\"img\": null,\n\t\"admin_user_id\": 0,\n\t\"express\": 0,\n\t\"express_sn\": null,\n\t\"express_remarks\": null,\n\t\"create_time\": \"1970-01-01\",\n\t\"update_time\": \"1970-01-01\",\n\t\"delete_time\": null,\n\t\"total_price\": 2100,\n\t\"status_text\": \"订单信息\",\n\t\"type_text\": \"\"\n\t}]\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ServiceController.php",
"groupTitle": "售后管理",
"name": "PostServiceGetlist",
"sampleRequest": [
{
"url": "http://api.ydyd.com/service/getList"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/SystemConstant/accountInfo",
"title": "1.对公账号信息(丁超)",
"name": "accountInfo",
"group": "SystemConstant",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\"code\": 200,\n\"message\": \"成功\",\n\"data\": {\n\"company_name\": \"安徽医点医滴电子科技有限公司\",\n\"company_code\": \"91340100395430469B\",\n\"account_number\": \"223017051221000006\",\n\"bank_name\": \"徽商银行股份有限公司肥东新城开发区支行\",\n\"address\": \"合肥市肥东县梁园镇合肥上海产业园原路口乡政府院内\",\n\"tel\": \"15155855066\"\n}\n}",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Respons:",
"content": "{\n\"code\": 500,\n\"message\": \"fail\",\n\"data\":{\n\"info\": \"Err Msg\",\n}\n}",
"type": "json"
}
]
},
"filename": "./application/api/controller/SystemConstantController.php",
"groupTitle": "系统配置",
"sampleRequest": [
{
"url": "http://api.ydyd.com/SystemConstant/accountInfo"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/test/getAuth",
"title": "3.获取authentication 登录(朱晓伟)",
"name": "getAuth",
"group": "Test",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "appid",
"description": ""
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "uid",
"description": ""
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "access_token",
"description": ""
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "refresh_token",
"description": ""
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"success\",\n\t\"data\": {\n\t\"auth\": \"USERID dGVzdC0yLUJ5dU8yZHNaUlFERTQ2TXAwajVGVUd4bFhTSWtDOXY4LVA5eDRkczlNODM1M2F3dlNuOHVlUUhpTlhWMkcwNnlL\",\n\t}\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/TestController.php",
"groupTitle": "测试接口",
"sampleRequest": [
{
"url": "http://api.ydyd.com/test/getAuth"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/test/getSign",
"title": "2.获取sign 登录(朱晓伟)",
"name": "getSign",
"group": "Test",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "account",
"description": "<p>手机号</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "password",
"description": "<p>账号密码</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "appid",
"description": ""
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "appsercet",
"description": ""
},
{
"group": "Parameter",
"type": "Integer",
"optional": false,
"field": "timestamp",
"description": "<p>时间戳</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"success\",\n\t\"data\": {\n\t\"sign\": \"11420815e6b79bd3491b3664404b91fe\",\n\t}\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/TestController.php",
"groupTitle": "测试接口",
"sampleRequest": [
{
"url": "http://api.ydyd.com/test/getSign"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/test/index",
"title": "1.测试(朱晓伟)",
"name": "index",
"group": "Test",
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"success\",\n\t\"data\": {\n\t}\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/TestController.php",
"groupTitle": "测试接口",
"sampleRequest": [
{
"url": "http://api.ydyd.com/test/index"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/ThirdApi/getAliyunOssStsToken",
"title": "1.阿里云oss丁超",
"name": "getAliyunOssStsToken",
"group": "ThirdApi",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errcode\": 0,\n \"errmsg\": \"成功获取STS凭证\",\n \"data\": {\n \"Region\": \"oss-cn-hangzhou\",\n \"AccessKeySecret\": \"adfhf54775BSjQv29xLTqdTfjsdjhQxd\",\n \"AccessKeyId\": \"STS.NUq4kjdjlfjskvFddggCM5e\",\n \"Bucket\": \"abcd-develop-xxx\",\n \"SecurityToken\": \"uDox2Zt6vT8a6z6aX+safnflagPS2MvVh9aHOVWLRK3c3+klflsgyEdVGuFRQavRBnmJgrrrg+hiDkeJrgUVq3S9aHru4Z8xKKZAkc0mRJBczzseP5aYJK4\"\n }\n }\n}",
"type": "json"
}
]
},
"filename": "./application/api/controller/ThirdApiController.php",
"groupTitle": "第三方api管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/ThirdApi/getAliyunOssStsToken"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/UserAddress/addresss",
"title": "5.地区三级地址(李程)",
"name": "addresss",
"group": "UserAddress",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"1\": {\n\t\"id\": 1,\n\t\"area_name\": \"广东省\"\n\t},\n\t\"205\": {\n\t\"id\": 205,\n\t\"area_name\": \"河南省\"\n\t},\n\t\"397\": {\n\t\"id\": 397,\n\t\"area_name\": \"内蒙古自治区\"\n\t},\n\t\"513\": {\n\t\"id\": 513,\n\t\"area_name\": \"黑龙江省\"\n\t}\n\t}\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserAddressController.php",
"groupTitle": "地址管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/UserAddress/addresss"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/UserAddress/deleteAddress",
"title": "4.删除用户配送地址(李程)",
"name": "deleteAddress",
"group": "UserAddress",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "address_id",
"description": "<p>地址id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errmsg\": \"删除操作成功\"\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserAddressController.php",
"groupTitle": "地址管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/UserAddress/deleteAddress"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/UserAddress/getAddressList",
"title": "1.地址列表(李程)",
"name": "getAddressList",
"group": "UserAddress",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errcode\": 0,\n \"errmsg\": \"\",\n \"data\": {\n \"list\": [\n {\n \"id\": 187,\n \"area_id\": 1453,\n \"address\": \"合肥市包河区\",\n \"consignee\": \"李先生\",\n \"tel\": \"15056810203\",\n \"is_default\": 0,\n \"area_name\": \"上海市 - 上海城区 - 长宁区\",\n \"short_consignee\": \"李先\"\n },\n {\n \"id\": 188,\n \"area_id\": 1453,\n \"address\": \"合肥瑶海\",\n \"consignee\": \"李先生啊\",\n \"tel\": \"15056810203\",\n \"is_default\": 0,\n \"area_name\": \"上海市 - 上海城区 - 长宁区\",\n \"short_consignee\": \"李先\"\n }\n ],\n \"has_address_num\": 2,\n \"left_address_num\": 0\n }\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserAddressController.php",
"groupTitle": "地址管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/UserAddress/getAddressList"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/UserAddress/makeChangeAddress",
"title": "3.更新或者新增收货地址(李程)",
"name": "makeChangeAddress",
"group": "UserAddress",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "area_id",
"description": "<p>'区县</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "address",
"description": "<p>详细地址</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "address_id",
"description": "<p>地址id</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "consignee",
"description": "<p>收件人名称</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "tel",
"description": "<p>收件人联系电话</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errcode\": 0,\n \"errmsg\": \"操作成功\",\n \"data\": {\n \"id\": \"188\"\n }\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserAddressController.php",
"groupTitle": "地址管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/UserAddress/makeChangeAddress"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/UserAddress/setDefaultAddress",
"title": "2.设置默认地址(李程)",
"name": "setDefaultAddress",
"group": "UserAddress",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "address_id",
"description": "<p>地址id</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"errmsg\": \"默认地址设置成功\"\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserAddressController.php",
"groupTitle": "地址管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/UserAddress/setDefaultAddress"
}
]
},
{
"version": "2.0.0",
"type": "post",
"url": "/UserOrder/submitOrder",
"title": "1.订单提交",
"name": "submitOrder",
"group": "UserOrder",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "uc_id_group",
"description": "<p>购物车id(多个id情况下使用逗号拼接如 &quot;10000,10010,11000&quot;)</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "address_id",
"description": "<p>收货地址的地区id(行政区划的县区一级)</p>"
},
{
"group": "Parameter",
"type": "Int",
"allowedValues": [
"1",
"2"
],
"optional": false,
"field": "pay_type",
"defaultValue": "2",
"description": "<p>付款方式(1-货到付款2-线下付款)</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": true,
"field": "remark",
"description": "<p>订单留言备注</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response",
"content": "{\n \"errcode\":0,\n \"errmsg\":\"下单成功,请尽快完成支付!\"\n \"order_sn\":\"20040111571980298718\"\n }",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Response:",
"content": "{\n \"errcode\":-121,\n \"errmsg\":\"购物车数据已变化,请确认后再提交!\"\n }",
"type": "json"
}
]
},
"filename": "./application/ydyd_service/controller/UserOrderController.php",
"groupTitle": "订单管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/UserOrder/submitOrder"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/UserShopCart/getCartDetailData",
"title": "购物车列表(丁超)",
"name": "getCartDetailData",
"group": "UserShopCart",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "id",
"description": "<p>id</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "limit",
"description": "<p>每页多少条默认20</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": true,
"field": "page",
"description": "<p>当前页默认1</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"errcode\": 0,\n \"data\": {\n \"available_goods\": [\n {\n \"id\": 821,\n \"price_id\": 11287,\n \"price\": \"3.2000\",\n \"price_type\": 0,\n \"batch_id\": 1317,\n \"goods_id\": 1327,\n \"name\": \"感冒灵胶囊\",\n \"spec_desc\": \"0.5g*12s*2板\",\n \"unit\": \"盒\",\n \"pc_thumb\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/pc_shop_thumb_url_1546569743834.jpg\",\n \"status\": 1,\n \"manufacturer_name\": \"吉林龙泰制药股份有限公司\",\n \"supplier_user_id\": 3,\n \"batch_number\": \"170901\",\n \"batch_status\": 1,\n \"stock_num\": 7600,\n \"retail_flag\": 1,\n \"retail_num\": 10,\n \"entirety_num\": 400,\n \"batch_type\": 1,\n \"term_validity\": \"2020-08-01\",\n \"is_collect\": 0,\n \"num\": 400,\n \"can_select\": 1,\n \"total_price\": \"1280.00\"\n }\n ],\n \"inavailable_goods\": []\n }\n}",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Response:",
"content": "{\n\"code\": 500,\n\"message\": \"fail\",\n\"data\":{\n\"info\": \"Err Msg\",\n}\n}",
"type": "json"
}
]
},
"filename": "./application/ydyd_service/controller/UserShopCartController.php",
"groupTitle": "购物车",
"sampleRequest": [
{
"url": "http://api.ydyd.com/UserShopCart/getCartDetailData"
}
]
},
{
"version": "1.0.0",
"type": "get|post",
"url": "/user/authBaisc",
"title": "5.企业认证第一步(基础信息 get查看 post新增编辑朱晓伟",
"name": "authBaisc",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "sub_type",
"description": "<p>企业类型 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "name",
"description": "<p>企业名称 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "consignee",
"description": "<p>联系人 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "business_address",
"description": "<p>地址 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "area_id",
"description": "<p>区域id post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "service_number",
"description": "<p>客服编号 post</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "GET Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"buyer_user_id\": 298,\n\t\"area_id\": 3,\n\t\"name\": \"对方水电费\",\n\t\"business_address\": \"\",\n\t\"sub_type\": \"drugstore\",\n\t\"consignee\": \"王子军\",\n\t\"tel\": \"17075808888\",\n\t\"custom_service_id\": 9,\n\t\"is_edit\": false\n\t}\n\t}",
"type": "json"
},
{
"title": "POST Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": true\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/authBaisc"
}
]
},
{
"version": "1.0.0",
"type": "get|post",
"url": "/user/authBank",
"title": "7.企业认证第三步(银行信息 get查看 post新增编辑朱晓伟",
"name": "authBank",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "invoice_rise",
"description": "<p>开票抬头 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "tax_number",
"description": "<p>税号 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": true,
"field": "bank_name",
"description": "<p>开户行 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": true,
"field": "bank_account",
"description": "<p>银行账号 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": true,
"field": "account_name",
"description": "<p>持卡人姓名 post</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "GET Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"id\": 307,\n\t\"user_id\": 298,\n\t\"account_name\": \"测试\",\n\t\"bank_name\": \"肥东\",\n\t\"bank_account\": \"46546546546546\",\n\t\"create_time\": \"2019-06-04 16:35:22\",\n\t\"invoice_title\": \"测试企业\",\n\t\"tax_number\": \"\",\n\t\"is_edit\": true\n\t}\n\t}",
"type": "json"
},
{
"title": "POST Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": true\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/authBank"
}
]
},
{
"version": "1.0.0",
"type": "get|post",
"url": "/user/authCertificate",
"title": "6.企业认证第二步(资质信息 get查看 post新增编辑朱晓伟",
"name": "authCertificate",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "sub_type",
"description": "<p>企业类型 post</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "business_license",
"description": "<p>资质url post(所有资质都按照这种格式)</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "GET Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": {\n\t\"list\": [\n\t{\n\t\"certificate_type\": \"business_license\",\n\t\"img_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/business_license_img_url_1560330649970.jpg\"\n\t},\n\t{\n\t\"certificate_type\": \"gsp_license\",\n\t\"img_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/gsp_license_img_url_1560330653130.jpg\"\n\t},\n\t{\n\t\"certificate_type\": \"trade_license\",\n\t\"img_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/trade_license_img_url_1560330651312.jpg\"\n\t},\n\t{\n\t\"certificate_type\": \"purchase_identity\",\n\t\"img_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/purchase_identity_img_url_1560330656292.jpg\"\n\t},\n\t{\n\t\"certificate_type\": \"authority_purchase\",\n\t\"img_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/authority_purchase_img_url_1560330654577.jpg\"\n\t},\n\t{\n\t\"certificate_type\": \"tax_regcate\",\n\t\"img_url\": \"ydyd-develop-file.oss-cn-hangzhou.aliyuncs.com/tax_regcate_img_url_1560330657786.jpg\"\n\t}\n\t],\n\t\"is_edit\": true\n\t}\n\t}",
"type": "json"
},
{
"title": "POST Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": true\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/authCertificate"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/user/checkAuth",
"title": "4.企业认证检测(朱晓伟)",
"name": "checkAuth",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n\t\"code\": 200,\n\t\"message\": \"成功\",\n\t\"data\": \"finish|authBaisc|authCertificate|authBank\"\n\t}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/checkAuth"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/user/editPassword",
"title": "8.修改密码(登录时)(李程)",
"name": "editPassword",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "ordpassword",
"description": "<p>旧密码</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "password",
"description": "<p>新密码</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": \"15056810203\"\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/editPassword"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/user/forgetPassword_app",
"title": "3.重置密码(李程)",
"name": "forgetPassword_app",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "phone",
"description": "<p>手机号</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "smscode",
"description": "<p>收到的验证码</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "password",
"description": "<p>密碼</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\"code\":200,\"message\":\"成功\",\"data\":{\"errmsg\":\"用户找回密码成功\"}}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/forgetPassword_app"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/user/phonecode_app",
"title": "2.手机验证码(李程)",
"name": "phonecode_app",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "phone",
"description": "<p>手机号</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "smscode",
"description": "<p>收到的验证码</p>"
},
{
"group": "Parameter",
"type": "int",
"optional": false,
"field": "status",
"description": "<p>1表示注册2表示忘记密码</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\"code\":200,\"message\":\"成功\",\"data\":{\"errmsg\":\"短信已经发送到你的手机,请注意查收\"}}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/phonecode_app"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/user/register_app",
"title": "1.注册(李程)",
"name": "register_app",
"group": "User",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "phone",
"description": "<p>手机号</p>"
},
{
"group": "Parameter",
"type": "Int",
"optional": false,
"field": "smscode",
"description": "<p>收到的验证码</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "password",
"description": "<p>密码</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\"code\":200,\"message\":\"成功\",\"data\":{\"errmsg\":\"用户注册成功\"}}",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/register_app"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/user/tell",
"title": "8.获取手机号(登录时)(李程)",
"name": "tell",
"group": "User",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
"optional": false,
"field": "authentication",
"description": "<p>验证</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": \"15056810203\"\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/UserController.php",
"groupTitle": "用户管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/user/tell"
}
]
},
{
"version": "1.0.0",
"type": "get",
"url": "/area/index",
"title": "地址列表(朱晓伟)",
"name": "index",
"group": "Version",
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"version\": 1.0.1,\n \"url\": \"http://www.baidu.com\",\n \"describe\": \"有重大更新啦!!\",\n \"update_method\": 0,// 更新方式0:普通更新1、强制更新\n }\n}",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"无更新\",\n \"data\": {}\n}",
"type": "json"
}
]
},
"filename": "./application/api/controller/AreaController.php",
"groupTitle": "版本管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/area/index"
}
]
},
{
"version": "1.0.0",
"type": "get",
"url": "/version/index",
"title": "版本更新检测(朱晓伟)",
"name": "index",
"group": "Version",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": true,
"field": "version",
"description": "<p>当前版本号用于版本对比例如1.0.0,只允许使用&quot;.&quot;分割,不支持下划线</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"version\": 1.0.1,\n \"url\": \"http://www.baidu.com\",\n \"describe\": \"有重大更新啦!!\",\n \"update_method\": 0,// 更新方式0:普通更新1、强制更新\n }\n}",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"无更新\",\n \"data\": {}\n}",
"type": "json"
}
]
},
"filename": "./application/api/controller/VersionController.php",
"groupTitle": "版本管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/version/index"
}
]
},
{
"version": "1.0.0",
"type": "any",
"url": "/",
"title": "1.整体说明(朱晓伟)",
"name": "AAA",
"group": "login",
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "1. 先获取token其他接口在header里面传入authentication\n authentication = USERID base64_encode(\"appid\" + \"-\" +\"uid\" + \"-\" + \"access_token\" + \"-\" + \"refresh_token\") 加密后签名(参数与参数中间需要加上-号)\n2. 若请求地址中含有“:”,表示这个参数是在请求地址中,如:平台公告详情:/messages/platforms/:id将:id换成不同的值即可获得id对应的公告详情\n3. 状态码\n 所有接口返回值以实际返回结果为准接口code返回值为200http状态码也是200表示请求成功其他表示请求失败。\n code值说明\n 401登录相关接口验证失败时返回\n 1xxxx传递参数提示\n 2xxxx数据验证提示\n 3xxxx业务提示\n4. 参数:\n 所有请求参数,除了有“可选”的标记或列表用于搜索的参数外,其余都是必传。\n5. 分页参数名为page每页展示条数由后台返回\n {\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"total\": 60, // 总数据量\n \"per_page\": 10, // 每页数据条数\n \"current_page\": 1, // 当前页数\n \"last_page\": 6, // 数据总页数\n \"data\": [\n {\n \"id\": 23356,\n ...\n },\n {\n \"id\": 19244,\n ...\n }\n ]\n }\n }\n6. 各接口返回的数据中,有注释的字段都是重要或者需要可能有用的字段,未注释字段可不用理会。\n完善中...",
"type": "json"
}
]
},
"filename": "./application/api/controller/TokenController.php",
"groupTitle": "活动管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/token/login",
"title": "2.获取token 登录(朱晓伟)",
"name": "login",
"group": "login",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "phone",
"description": "<p>手机号</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "password",
"description": "<p>账号密码</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "appid",
"description": ""
},
{
"group": "Parameter",
"type": "Integer",
"optional": false,
"field": "timestamp",
"description": "<p>时间戳</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "sign",
"description": "<p>签名($appsercet+$appid+account+md5(password)+时间戳)</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"success\",\n \"data\": {\n \"access_token\": \"GFkw82j36Tbs9JrCi5fA1I7ztmouxeX9\",\n \"expires_time\": 1565762455,\n \"refresh_token\": \"1xzjD8gJGlSZheH6wKu9pCfRt9rd4IoE\",\n \"refresh_expires_time\": 1596693655,\n \"client\": {\n \"id\": 22, //员工ID\n \"phone\": \"17610889520\", //手机号码\n \"appid\": \"tp5restfultest\",\n \"timestamp\": 1565157655,\n \"sign\": \"11420815e6b79bd3491b3664404b91fe\",\n }\n }\n }",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Response:",
"content": "{\n \"code\": 500,\n \"message\": \"fail\",\n \"data\": {\n \"info\": \"短信验证码错误,请重新获取\"\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/TokenController.php",
"groupTitle": "活动管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/token/login"
}
]
},
{
"version": "1.0.0",
"type": "post",
"url": "/token/refresh",
"title": "3.刷新token (朱晓伟)",
"name": "refresh",
"group": "login",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "refresh_token",
"description": "<p>参数说明</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "appid",
"description": "<p>参数说明</p>"
}
]
}
},
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "{\n \"code\": 200,\n \"message\": \"成功\",\n \"data\": {\n \"access_token\": \"1JGKFnYE8N6C2mAvyk9lpSHZoz4WhId8\",\n \"expires_time\": 1565852253,\n \"refresh_token\": \"1xzjD8gJGlSZheH6wKu9pCfRt9rd4IoE\",\n \"refresh_expires_time\": 1596783453,\n \"client\": {\n \"appid\": \"tp5restfultest\"\n }\n }\n }",
"type": "json"
}
]
},
"filename": "./application/api/controller/TokenController.php",
"groupTitle": "活动管理",
"sampleRequest": [
{
"url": "http://api.ydyd.com/token/refresh"
}
]
}
] });