[ { "type": "post", "url": "/login", "title": "登录接口", "name": "login", "group": "User", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "username", "description": "

用户名

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

用户密码,需要base64加密

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "string", "optional": false, "field": "message", "description": "

响应描述

" }, { "group": "Success 200", "type": "int", "optional": false, "field": "status_code", "description": "

HTTP响应码

" }, { "group": "Success 200", "type": "string", "optional": false, "field": "data.token", "description": "

认证token

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "data.menu", "description": "

菜单JSON

" } ] }, "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":{\n \"toke\":\"token\",\n \"menu\":\"{}\",\n }\n}", "type": "json" } ] }, "version": "0.0.0", "filename": "app/Http/ApiControllers/LoginController.php", "groupTitle": "User", "sampleRequest": [ { "url": "https://was.baoshi56.com/api/v1/login" } ] }, { "type": "post", "url": "/waybill/dispatch/dailyBilling", "title": "修改每日专线费", "name": "dailyBilling", "group": "Waybill", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "deliver_at", "description": "

发货时间

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

费用

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "string", "optional": false, "field": "message", "description": "

响应描述

" }, { "group": "Success 200", "type": "int", "optional": false, "field": "status_code", "description": "

HTTP响应码

" }, { "group": "Success 200", "type": "bool", "optional": false, "field": "data", "description": "

结果

" } ] }, "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":true\n}", "type": "json" } ] }, "version": "0.0.0", "filename": "app/Http/ApiControllers/WaybillController.php", "groupTitle": "Waybill", "sampleRequest": [ { "url": "https://was.baoshi56.com/api/v1/waybill/dispatch/dailyBilling" } ] }, { "type": "get", "url": "/waybill/dispatch", "title": "获取调度数据", "name": "dispatch", "group": "Waybill", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "search", "description": "

搜索文本(运单号或物流单号)

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

发货时间

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

页数

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

每页多少

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "string", "optional": false, "field": "message", "description": "

响应描述

" }, { "group": "Success 200", "type": "int", "optional": false, "field": "status_code", "description": "

HTTP响应码

" }, { "group": "Success 200", "type": "array", "optional": false, "field": "data", "description": "

数据列表

" } ] }, "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":[\n {\n \"waybill_number\"=>\"宝时单号\",\n \"destination\" =>\"目的地\",\n \"recipient\" =>\"收件人\",\n \"recipient_mobile\"=>\"收件人电话\",\n \"carrier_bill\"=>\"承运商单号\",\n \"carrier_name\"=>\"承运商\",\n \"warehouse_weight\"=>\"预估体积\",\n \"carrier_weight\"=>\"实际体积\",\n \"inquire_tel\"=>\"查件电话\",\n \"warehouse_weight_other\"=>\"预估重量\",\n \"carrier_weight_other\"=>\"实际重量\",\n \"amount\"=>\"数量\",\n \"amount_unit_name\"=>\"数量单位\",\n \"origination\"=>\"提货仓\"\n \"subjoin_fee\"=>\"附加费\"\n }\n ]\n}", "type": "json" } ] }, "version": "0.0.0", "filename": "app/Http/ApiControllers/WaybillController.php", "groupTitle": "Waybill", "sampleRequest": [ { "url": "https://was.baoshi56.com/api/v1/waybill/dispatch" } ] }, { "type": "post", "url": "/waybill/dispatch", "title": "修改调度信息", "name": "updateDispatch", "group": "Waybill", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "int", "optional": false, "field": "id", "description": "

唯一码

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

物流单号

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

查件电话

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

货品数量

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

数量单位(件/托)

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

重量/KG

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

体积/M³

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

附加费描述

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "string", "optional": false, "field": "message", "description": "

响应描述

" }, { "group": "Success 200", "type": "int", "optional": false, "field": "status_code", "description": "

HTTP响应码

" }, { "group": "Success 200", "type": "bool", "optional": false, "field": "data", "description": "

结果

" } ] }, "examples": [ { "title": "Success-Response:", "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":true\n}", "type": "json" } ] }, "version": "0.0.0", "filename": "app/Http/ApiControllers/WaybillController.php", "groupTitle": "Waybill", "sampleRequest": [ { "url": "https://was.baoshi56.com/api/v1/waybill/dispatch" } ] } ]