api_data.json 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. [
  2. {
  3. "type": "post",
  4. "url": "/login",
  5. "title": "登录接口",
  6. "name": "login",
  7. "group": "User",
  8. "parameter": {
  9. "fields": {
  10. "Parameter": [
  11. {
  12. "group": "Parameter",
  13. "type": "string",
  14. "optional": false,
  15. "field": "username",
  16. "description": "<p>用户名</p>"
  17. },
  18. {
  19. "group": "Parameter",
  20. "type": "string",
  21. "optional": false,
  22. "field": "password",
  23. "description": "<p>用户密码,需要base64加密</p>"
  24. }
  25. ]
  26. }
  27. },
  28. "success": {
  29. "fields": {
  30. "Success 200": [
  31. {
  32. "group": "Success 200",
  33. "type": "string",
  34. "optional": false,
  35. "field": "message",
  36. "description": "<p>响应描述</p>"
  37. },
  38. {
  39. "group": "Success 200",
  40. "type": "int",
  41. "optional": false,
  42. "field": "status_code",
  43. "description": "<p>HTTP响应码</p>"
  44. },
  45. {
  46. "group": "Success 200",
  47. "type": "string",
  48. "optional": false,
  49. "field": "data.token",
  50. "description": "<p>认证token</p>"
  51. },
  52. {
  53. "group": "Success 200",
  54. "type": "String",
  55. "optional": false,
  56. "field": "data.menu",
  57. "description": "<p>菜单JSON</p>"
  58. }
  59. ]
  60. },
  61. "examples": [
  62. {
  63. "title": "Success-Response:",
  64. "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":{\n \"toke\":\"token\",\n \"menu\":\"{}\",\n }\n}",
  65. "type": "json"
  66. }
  67. ]
  68. },
  69. "version": "0.0.0",
  70. "filename": "app/Http/ApiControllers/LoginController.php",
  71. "groupTitle": "User",
  72. "sampleRequest": [
  73. {
  74. "url": "https://was.baoshi56.com/api/v1/login"
  75. }
  76. ]
  77. },
  78. {
  79. "type": "post",
  80. "url": "/waybill/dispatch/dailyBilling",
  81. "title": "修改每日专线费",
  82. "name": "dailyBilling",
  83. "group": "Waybill",
  84. "parameter": {
  85. "fields": {
  86. "Parameter": [
  87. {
  88. "group": "Parameter",
  89. "type": "string",
  90. "optional": false,
  91. "field": "deliver_at",
  92. "description": "<p>发货时间</p>"
  93. },
  94. {
  95. "group": "Parameter",
  96. "type": "number",
  97. "optional": false,
  98. "field": "fee",
  99. "description": "<p>费用</p>"
  100. }
  101. ]
  102. }
  103. },
  104. "success": {
  105. "fields": {
  106. "Success 200": [
  107. {
  108. "group": "Success 200",
  109. "type": "string",
  110. "optional": false,
  111. "field": "message",
  112. "description": "<p>响应描述</p>"
  113. },
  114. {
  115. "group": "Success 200",
  116. "type": "int",
  117. "optional": false,
  118. "field": "status_code",
  119. "description": "<p>HTTP响应码</p>"
  120. },
  121. {
  122. "group": "Success 200",
  123. "type": "bool",
  124. "optional": false,
  125. "field": "data",
  126. "description": "<p>结果</p>"
  127. }
  128. ]
  129. },
  130. "examples": [
  131. {
  132. "title": "Success-Response:",
  133. "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":true\n}",
  134. "type": "json"
  135. }
  136. ]
  137. },
  138. "version": "0.0.0",
  139. "filename": "app/Http/ApiControllers/WaybillController.php",
  140. "groupTitle": "Waybill",
  141. "sampleRequest": [
  142. {
  143. "url": "https://was.baoshi56.com/api/v1/waybill/dispatch/dailyBilling"
  144. }
  145. ]
  146. },
  147. {
  148. "type": "get",
  149. "url": "/waybill/dispatch",
  150. "title": "获取调度数据",
  151. "name": "dispatch",
  152. "group": "Waybill",
  153. "parameter": {
  154. "fields": {
  155. "Parameter": [
  156. {
  157. "group": "Parameter",
  158. "type": "string",
  159. "optional": false,
  160. "field": "search",
  161. "description": "<p>搜索文本(运单号或物流单号)</p>"
  162. },
  163. {
  164. "group": "Parameter",
  165. "type": "string",
  166. "optional": false,
  167. "field": "deliver_at",
  168. "description": "<p>发货时间</p>"
  169. },
  170. {
  171. "group": "Parameter",
  172. "type": "int",
  173. "optional": false,
  174. "field": "page",
  175. "description": "<p>页数</p>"
  176. },
  177. {
  178. "group": "Parameter",
  179. "type": "int",
  180. "optional": false,
  181. "field": "paginate",
  182. "description": "<p>每页多少</p>"
  183. }
  184. ]
  185. }
  186. },
  187. "success": {
  188. "fields": {
  189. "Success 200": [
  190. {
  191. "group": "Success 200",
  192. "type": "string",
  193. "optional": false,
  194. "field": "message",
  195. "description": "<p>响应描述</p>"
  196. },
  197. {
  198. "group": "Success 200",
  199. "type": "int",
  200. "optional": false,
  201. "field": "status_code",
  202. "description": "<p>HTTP响应码</p>"
  203. },
  204. {
  205. "group": "Success 200",
  206. "type": "array",
  207. "optional": false,
  208. "field": "data",
  209. "description": "<p>数据列表</p>"
  210. }
  211. ]
  212. },
  213. "examples": [
  214. {
  215. "title": "Success-Response:",
  216. "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}",
  217. "type": "json"
  218. }
  219. ]
  220. },
  221. "version": "0.0.0",
  222. "filename": "app/Http/ApiControllers/WaybillController.php",
  223. "groupTitle": "Waybill",
  224. "sampleRequest": [
  225. {
  226. "url": "https://was.baoshi56.com/api/v1/waybill/dispatch"
  227. }
  228. ]
  229. },
  230. {
  231. "type": "post",
  232. "url": "/waybill/dispatch",
  233. "title": "修改调度信息",
  234. "name": "updateDispatch",
  235. "group": "Waybill",
  236. "parameter": {
  237. "fields": {
  238. "Parameter": [
  239. {
  240. "group": "Parameter",
  241. "type": "int",
  242. "optional": false,
  243. "field": "id",
  244. "description": "<p>唯一码</p>"
  245. },
  246. {
  247. "group": "Parameter",
  248. "type": "string",
  249. "optional": false,
  250. "field": "carrier_bill",
  251. "description": "<p>物流单号</p>"
  252. },
  253. {
  254. "group": "Parameter",
  255. "type": "string",
  256. "optional": false,
  257. "field": "inquire_tel",
  258. "description": "<p>查件电话</p>"
  259. },
  260. {
  261. "group": "Parameter",
  262. "type": "int",
  263. "optional": false,
  264. "field": "amount",
  265. "description": "<p>货品数量</p>"
  266. },
  267. {
  268. "group": "Parameter",
  269. "type": "string",
  270. "optional": false,
  271. "field": "amount_unit_name",
  272. "description": "<p>数量单位(件/托)</p>"
  273. },
  274. {
  275. "group": "Parameter",
  276. "type": "number",
  277. "optional": false,
  278. "field": "carrier_weight_other",
  279. "description": "<p>重量/KG</p>"
  280. },
  281. {
  282. "group": "Parameter",
  283. "type": "number",
  284. "optional": false,
  285. "field": "carrier_weight",
  286. "description": "<p>体积/M³</p>"
  287. },
  288. {
  289. "group": "Parameter",
  290. "type": "string",
  291. "optional": false,
  292. "field": "subjoin_fee",
  293. "description": "<p>附加费描述</p>"
  294. }
  295. ]
  296. }
  297. },
  298. "success": {
  299. "fields": {
  300. "Success 200": [
  301. {
  302. "group": "Success 200",
  303. "type": "string",
  304. "optional": false,
  305. "field": "message",
  306. "description": "<p>响应描述</p>"
  307. },
  308. {
  309. "group": "Success 200",
  310. "type": "int",
  311. "optional": false,
  312. "field": "status_code",
  313. "description": "<p>HTTP响应码</p>"
  314. },
  315. {
  316. "group": "Success 200",
  317. "type": "bool",
  318. "optional": false,
  319. "field": "data",
  320. "description": "<p>结果</p>"
  321. }
  322. ]
  323. },
  324. "examples": [
  325. {
  326. "title": "Success-Response:",
  327. "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":true\n}",
  328. "type": "json"
  329. }
  330. ]
  331. },
  332. "version": "0.0.0",
  333. "filename": "app/Http/ApiControllers/WaybillController.php",
  334. "groupTitle": "Waybill",
  335. "sampleRequest": [
  336. {
  337. "url": "https://was.baoshi56.com/api/v1/waybill/dispatch"
  338. }
  339. ]
  340. }
  341. ]