api_data.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. define({ "api": [
  2. {
  3. "type": "get",
  4. "url": "/api/attachment/delete/{md5}",
  5. "title": "删除文件(图片)",
  6. "description": "<p>删除文件(图片)</p>",
  7. "group": "Attachment",
  8. "permission": [
  9. {
  10. "name": "Passport"
  11. }
  12. ],
  13. "version": "0.1.0",
  14. "parameter": {
  15. "fields": {
  16. "Parameter": [
  17. {
  18. "group": "Parameter",
  19. "type": "string",
  20. "optional": false,
  21. "field": "md5",
  22. "description": "<p>图片md5码</p>"
  23. }
  24. ]
  25. }
  26. },
  27. "success": {
  28. "examples": [
  29. {
  30. "title": "Success-Response:",
  31. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"result\": true/false\n }\n}",
  32. "type": "json"
  33. }
  34. ]
  35. },
  36. "error": {
  37. "examples": [
  38. {
  39. "title": "Error-Response:",
  40. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 205 ATTACHMENT_DELETE_FAILED 删除附件文件失败\n 206 ATTACHMENT_RECORD_DELETE_FAILED 删除附件记录失败\n 1203 ATTACHMENT_NOT_EXIST 附件不存在",
  41. "type": "json"
  42. }
  43. ]
  44. },
  45. "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
  46. "groupTitle": "Attachment",
  47. "name": "GetApiAttachmentDeleteMd5"
  48. },
  49. {
  50. "type": "get",
  51. "url": "/api/attachment/download/{md5}",
  52. "title": "下载文件(图片)",
  53. "description": "<p>下载文件(图片)(get code)</p>",
  54. "group": "Attachment",
  55. "permission": [
  56. {
  57. "name": "none"
  58. }
  59. ],
  60. "version": "0.1.0",
  61. "parameter": {
  62. "fields": {
  63. "Parameter": [
  64. {
  65. "group": "Parameter",
  66. "type": "string",
  67. "optional": false,
  68. "field": "md5",
  69. "description": "<p>图片md5码</p>"
  70. }
  71. ]
  72. }
  73. },
  74. "success": {
  75. "examples": [
  76. {
  77. "title": "Success-Response:",
  78. "content": "HTTP/1.1 200 OK\n{\n 文件二进制码\n}",
  79. "type": "json"
  80. }
  81. ]
  82. },
  83. "error": {
  84. "examples": [
  85. {
  86. "title": "Error-Response:",
  87. "content": "HTTP/1.1 404 Not found",
  88. "type": "json"
  89. }
  90. ]
  91. },
  92. "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
  93. "groupTitle": "Attachment",
  94. "name": "GetApiAttachmentDownloadMd5"
  95. },
  96. {
  97. "type": "post",
  98. "url": "/api/attachment/upload",
  99. "title": "通用上传接口",
  100. "description": "<p>通用上传接口</p>",
  101. "group": "Attachment",
  102. "permission": [
  103. {
  104. "name": "none"
  105. }
  106. ],
  107. "version": "0.1.0",
  108. "parameter": {
  109. "fields": {
  110. "Parameter": [
  111. {
  112. "group": "Parameter",
  113. "type": "string",
  114. "optional": false,
  115. "field": "tag",
  116. "description": "<p>附件标签 avatar video dream</p>"
  117. },
  118. {
  119. "group": "Parameter",
  120. "type": "File",
  121. "optional": false,
  122. "field": "file",
  123. "description": "<p>附件(可以多个,使用file.xxx,可返回多个)[默认大小【10M】, 类型图片png jpg gif,视频类型mp4]</p>"
  124. }
  125. ]
  126. }
  127. },
  128. "success": {
  129. "examples": [
  130. {
  131. "title": "Success-Response:",
  132. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": [\n \"file\": \"f72e7dad80f597ed6621a009e82243ad\",\n //文件访问url http://localhost/attachment/f72e7dad80f597ed6621a009e82243ad\n ]\n}",
  133. "type": "json"
  134. }
  135. ]
  136. },
  137. "error": {
  138. "examples": [
  139. {
  140. "title": "Error-Response:",
  141. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 200 SAVE_USER_FAILED 保存用户数据失败\n 201 ATTACHMENT_MKDIR_FAILED 创建附件目录失败\n 202 ATTACHMENT_UPLOAD_INVALID 上传附件文件无效\n 203 ATTACHMENT_SAVE_FAILED 保存附件失败\n 204 ATTACHMENT_MOVE_FAILED 移动附件失败\n 205 ATTACHMENT_DELETE_FAILED 删除附件文件失败\n 206 ATTACHMENT_RECORD_DELETE_FAILED 删除附件记录失败\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 1101 INCORRECT_VERIFY_CODE 输入验证码错误\n 1105 USER_DOES_NOT_EXIST 用户不存在\n 1200 ATTACHMENT_UPLOAD_FAILED 附件上传失败\n 1201 ATTACHMENT_SIZE_EXCEEDED 附件大小超过限制\n 1202 ATTACHMENT_MIME_NOT_ALLOWED 附件类型不允许\n 1203 ATTACHMENT_NOT_EXIST 附件不存在",
  142. "type": "json"
  143. }
  144. ]
  145. },
  146. "filename": "app/Http/Controllers/Api/V1/AttachmentController.php",
  147. "groupTitle": "Attachment",
  148. "name": "PostApiAttachmentUpload"
  149. },
  150. {
  151. "type": "get",
  152. "url": "/api/home/getintroduction",
  153. "title": "获取使用说用及协议",
  154. "description": "<p>获取使用说用及协议</p>",
  155. "group": "____",
  156. "permission": [
  157. {
  158. "name": "none"
  159. }
  160. ],
  161. "version": "0.1.0",
  162. "success": {
  163. "examples": [
  164. {
  165. "title": "Success-Response:",
  166. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"list\": [\n\n ]\n\n }\n}",
  167. "type": "json"
  168. }
  169. ]
  170. },
  171. "error": {
  172. "examples": [
  173. {
  174. "title": "Error-Response:",
  175. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  176. "type": "json"
  177. }
  178. ]
  179. },
  180. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  181. "groupTitle": "____",
  182. "name": "GetApiHomeGetintroduction"
  183. },
  184. {
  185. "type": "post",
  186. "url": "/api/home/agreeintroduction",
  187. "title": "同意使用说用及协议",
  188. "description": "<p>同意使用说用及协议</p>",
  189. "group": "____",
  190. "permission": [
  191. {
  192. "name": "none"
  193. }
  194. ],
  195. "version": "0.1.0",
  196. "parameter": {
  197. "fields": {
  198. "Parameter": [
  199. {
  200. "group": "Parameter",
  201. "type": "int",
  202. "optional": true,
  203. "field": "userid",
  204. "description": "<p>用户ID(必填)</p>"
  205. }
  206. ]
  207. }
  208. },
  209. "success": {
  210. "examples": [
  211. {
  212. "title": "Success-Response:",
  213. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"userinfo\": [\n\n ]\n\n }\n}",
  214. "type": "json"
  215. }
  216. ]
  217. },
  218. "error": {
  219. "examples": [
  220. {
  221. "title": "Error-Response:",
  222. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  223. "type": "json"
  224. }
  225. ]
  226. },
  227. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  228. "groupTitle": "____",
  229. "name": "PostApiHomeAgreeintroduction"
  230. },
  231. {
  232. "type": "post",
  233. "url": "/api/home/getbasedata",
  234. "title": "获取可基础数据",
  235. "description": "<p>获取基础数据</p>",
  236. "group": "____",
  237. "permission": [
  238. {
  239. "name": "none"
  240. }
  241. ],
  242. "version": "0.1.0",
  243. "parameter": {
  244. "fields": {
  245. "Parameter": [
  246. {
  247. "group": "Parameter",
  248. "type": "int",
  249. "optional": true,
  250. "field": "userid",
  251. "description": "<p>用户ID(必填)</p>"
  252. }
  253. ]
  254. }
  255. },
  256. "success": {
  257. "examples": [
  258. {
  259. "title": "Success-Response:",
  260. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"userinfo\":[\n\n ]\n \"batchs\": [\n\n ],\n \"provinces\":[\n\n ]\n\n }\n}",
  261. "type": "json"
  262. }
  263. ]
  264. },
  265. "error": {
  266. "examples": [
  267. {
  268. "title": "Error-Response:",
  269. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  270. "type": "json"
  271. }
  272. ]
  273. },
  274. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  275. "groupTitle": "____",
  276. "name": "PostApiHomeGetbasedata"
  277. },
  278. {
  279. "type": "post",
  280. "url": "/api/home/getpaidmajors",
  281. "title": "查询付费信息",
  282. "description": "<p>查询付费信息</p>",
  283. "group": "____",
  284. "permission": [
  285. {
  286. "name": "none"
  287. }
  288. ],
  289. "version": "0.1.0",
  290. "parameter": {
  291. "fields": {
  292. "Parameter": [
  293. {
  294. "group": "Parameter",
  295. "type": "int",
  296. "optional": true,
  297. "field": "userid",
  298. "description": "<p>用户ID(必填)</p>"
  299. },
  300. {
  301. "group": "Parameter",
  302. "type": "string",
  303. "optional": true,
  304. "field": "username",
  305. "description": "<p>考生姓名(必填)</p>"
  306. },
  307. {
  308. "group": "Parameter",
  309. "type": "string",
  310. "optional": true,
  311. "field": "batch",
  312. "description": "<p>批次(必填)</p>"
  313. },
  314. {
  315. "group": "Parameter",
  316. "type": "string",
  317. "optional": true,
  318. "field": "province",
  319. "description": "<p>省份(必填)</p>"
  320. },
  321. {
  322. "group": "Parameter",
  323. "type": "string",
  324. "optional": true,
  325. "field": "class",
  326. "description": "<p>科类(必填)</p>"
  327. }
  328. ]
  329. }
  330. },
  331. "success": {
  332. "examples": [
  333. {
  334. "title": "Success-Response:",
  335. "content": "HTTP/1.1 200 OK 已付费查看过,显示匹配信息\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"count\": \"\"\n \"major\":[\n ]\n\n }\n}\n\nHTTP/1.1 200 OK 未曾付费,跳转到支付页面\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"msg\": \"need to pay\",\n \"price\": \"\"\n }\n}",
  336. "type": "json"
  337. }
  338. ]
  339. },
  340. "error": {
  341. "examples": [
  342. {
  343. "title": "Error-Response:",
  344. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  345. "type": "json"
  346. }
  347. ]
  348. },
  349. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  350. "groupTitle": "____",
  351. "name": "PostApiHomeGetpaidmajors"
  352. },
  353. {
  354. "type": "post",
  355. "url": "/api/home/getphonenumber",
  356. "title": "获取手机号",
  357. "description": "<p>获取手机号</p>",
  358. "group": "____",
  359. "permission": [
  360. {
  361. "name": "none"
  362. }
  363. ],
  364. "version": "0.1.0",
  365. "parameter": {
  366. "fields": {
  367. "Parameter": [
  368. {
  369. "group": "Parameter",
  370. "type": "string",
  371. "optional": true,
  372. "field": "code",
  373. "description": "<p>code(必填)</p>"
  374. },
  375. {
  376. "group": "Parameter",
  377. "type": "string",
  378. "optional": true,
  379. "field": "iv",
  380. "description": "<p>iv(必填)</p>"
  381. },
  382. {
  383. "group": "Parameter",
  384. "type": "string",
  385. "optional": true,
  386. "field": "encryptData",
  387. "description": "<p>encryptData(必填)</p>"
  388. }
  389. ]
  390. }
  391. },
  392. "success": {
  393. "examples": [
  394. {
  395. "title": "Success-Response:",
  396. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"decryptedData\": [\n\n ]\n\n }\n\n}",
  397. "type": "json"
  398. }
  399. ]
  400. },
  401. "error": {
  402. "examples": [
  403. {
  404. "title": "Error-Response:",
  405. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  406. "type": "json"
  407. }
  408. ]
  409. },
  410. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  411. "groupTitle": "____",
  412. "name": "PostApiHomeGetphonenumber"
  413. },
  414. {
  415. "type": "post",
  416. "url": "/api/home/getqueried",
  417. "title": "查询免费信息",
  418. "description": "<p>查询免费信息</p>",
  419. "group": "____",
  420. "permission": [
  421. {
  422. "name": "none"
  423. }
  424. ],
  425. "version": "0.1.0",
  426. "parameter": {
  427. "fields": {
  428. "Parameter": [
  429. {
  430. "group": "Parameter",
  431. "type": "int",
  432. "optional": true,
  433. "field": "userid",
  434. "description": "<p>用户ID(必填)</p>"
  435. },
  436. {
  437. "group": "Parameter",
  438. "type": "string",
  439. "optional": true,
  440. "field": "username",
  441. "description": "<p>考生姓名(必填)</p>"
  442. },
  443. {
  444. "group": "Parameter",
  445. "type": "string",
  446. "optional": true,
  447. "field": "cnumber",
  448. "description": "<p>考号(必填)</p>"
  449. },
  450. {
  451. "group": "Parameter",
  452. "type": "string",
  453. "optional": true,
  454. "field": "class",
  455. "description": "<p>科类(必填)</p>"
  456. },
  457. {
  458. "group": "Parameter",
  459. "type": "int",
  460. "optional": true,
  461. "field": "grade",
  462. "description": "<p>高考成绩(必填)</p>"
  463. },
  464. {
  465. "group": "Parameter",
  466. "type": "int",
  467. "optional": true,
  468. "field": "mobile",
  469. "description": "<p>手机号(必填)</p>"
  470. },
  471. {
  472. "group": "Parameter",
  473. "type": "string",
  474. "optional": true,
  475. "field": "batch",
  476. "description": "<p>批次(必填)</p>"
  477. },
  478. {
  479. "group": "Parameter",
  480. "type": "string",
  481. "optional": true,
  482. "field": "province",
  483. "description": "<p>省份(必填)</p>"
  484. },
  485. {
  486. "group": "Parameter",
  487. "type": "string",
  488. "optional": true,
  489. "field": "code",
  490. "description": "<p>推荐码(选填)</p>"
  491. }
  492. ]
  493. }
  494. },
  495. "success": {
  496. "examples": [
  497. {
  498. "title": "Success-Response:",
  499. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"rank\": \"\"\n \"grade\": \"\"\n \"college_count\": \"\"\n\n }\n}",
  500. "type": "json"
  501. }
  502. ]
  503. },
  504. "error": {
  505. "examples": [
  506. {
  507. "title": "Error-Response:",
  508. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  509. "type": "json"
  510. }
  511. ]
  512. },
  513. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  514. "groupTitle": "____",
  515. "name": "PostApiHomeGetqueried"
  516. },
  517. {
  518. "type": "post",
  519. "url": "/api/home/login",
  520. "title": "登陆(login)",
  521. "description": "<p>登陆(login)</p>",
  522. "group": "____",
  523. "permission": [
  524. {
  525. "name": "none"
  526. }
  527. ],
  528. "version": "0.1.0",
  529. "parameter": {
  530. "fields": {
  531. "Parameter": [
  532. {
  533. "group": "Parameter",
  534. "type": "string",
  535. "optional": true,
  536. "field": "code",
  537. "description": "<p>(必填)</p>"
  538. },
  539. {
  540. "group": "Parameter",
  541. "type": "string",
  542. "optional": true,
  543. "field": "nickName",
  544. "description": ""
  545. },
  546. {
  547. "group": "Parameter",
  548. "type": "string",
  549. "optional": true,
  550. "field": "avatar",
  551. "description": ""
  552. }
  553. ]
  554. }
  555. },
  556. "success": {
  557. "examples": [
  558. {
  559. "title": "Success-Response:",
  560. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"userinfo\": {\n \"id\": \"\",\n \"nickname\": \"\",\n \"openid\": \"\",\n \"has_agreed\": \"\" //1:已同意说明,进入主页面;0:为同意协议,进入协议说明页面\n }\n\n }\n}",
  561. "type": "json"
  562. }
  563. ]
  564. },
  565. "error": {
  566. "examples": [
  567. {
  568. "title": "Error-Response:",
  569. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  570. "type": "json"
  571. }
  572. ]
  573. },
  574. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  575. "groupTitle": "____",
  576. "name": "PostApiHomeLogin"
  577. },
  578. {
  579. "type": "post",
  580. "url": "/api/home/pay",
  581. "title": "获取微信支付签名信息",
  582. "description": "<p>获取微信支付签名信息</p>",
  583. "group": "____",
  584. "permission": [
  585. {
  586. "name": "none"
  587. }
  588. ],
  589. "version": "0.1.0",
  590. "parameter": {
  591. "fields": {
  592. "Parameter": [
  593. {
  594. "group": "Parameter",
  595. "type": "int",
  596. "optional": true,
  597. "field": "userid",
  598. "description": "<p>用户ID(必填)</p>"
  599. },
  600. {
  601. "group": "Parameter",
  602. "type": "string",
  603. "optional": true,
  604. "field": "price",
  605. "description": "<p>付费金额(必填)</p>"
  606. }
  607. ]
  608. }
  609. },
  610. "success": {
  611. "examples": [
  612. {
  613. "title": "Success-Response:",
  614. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"appId\":\"wx1c2357232cd25f65\",\n \"timeStamp\":\"1524907589\",\n \"nonceStr\":\"5ae43e45eb499\",\n \"package\":\"prepay_id=wx28172629917401724160128f0238805782\",\n \"signType\":\"MD5\",\n \"paySign\":\"8E9CF26B2B83C22471D023CBBDC36EDF\"\n }\n}",
  615. "type": "json"
  616. }
  617. ]
  618. },
  619. "error": {
  620. "examples": [
  621. {
  622. "title": "Error-Response:",
  623. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确",
  624. "type": "json"
  625. }
  626. ]
  627. },
  628. "filename": "app/Http/Controllers/Api/V1/HomeController.php",
  629. "groupTitle": "____",
  630. "name": "PostApiHomePay"
  631. }
  632. ] });