api_data.json 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. [
  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 \"real\": \"真实路径\"\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": "post",
  152. "url": "/api//login",
  153. "title": "登陆(login)",
  154. "description": "<p>登陆(login)login</p>",
  155. "group": "Auth",
  156. "permission": [
  157. {
  158. "name": "none"
  159. }
  160. ],
  161. "version": "0.1.0",
  162. "parameter": {
  163. "fields": {
  164. "Parameter": [
  165. {
  166. "group": "Parameter",
  167. "type": "string",
  168. "optional": false,
  169. "field": "nickname",
  170. "description": "<p>手机号码</p>"
  171. },
  172. {
  173. "group": "Parameter",
  174. "type": "string",
  175. "optional": false,
  176. "field": "avatar",
  177. "description": ""
  178. },
  179. {
  180. "group": "Parameter",
  181. "type": "string",
  182. "optional": false,
  183. "field": "password",
  184. "description": "<p>password</p>"
  185. }
  186. ]
  187. }
  188. },
  189. "success": {
  190. "examples": [
  191. {
  192. "title": "Success-Response:",
  193. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjdjYWUyYzFmYTUwMTIyZDI0ZTRiYTZhZGZhNmQxYmZlOWNiMzIxMTBmYWJlZjNjYzIyNmViZjRmNGExNWM3NjllNmU2ZTNiYWE5OGNhOWUzIn0.eyJhdWQiOiIxIiwianRpIjoiN2NhZTJjMWZhNTAxMjJkMjRlNGJhNmFkZmE2ZDFiZmU5Y2IzMjExMGZhYmVmM2NjMjI2ZWJmNGY0YTE1Yzc2OWU2ZTZlM2JhYTk4Y2E5ZTMiLCJpYXQiOjE0NzU0MTE1NTgsIm5iZiI6MTQ3NTQxMTU1OCwiZXhwIjo0NjMxMDg1MTU4LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.E9YGEzuRUOk02aV1EiWLJ_pD0hKoCyW0k_sGy63hM3u5X8K_HI1kVhaU6JNLqLZeszIAroTEDB8XMgZKAqTLlwtL8PLCJcuDoxfk1BRHbfjhDheTsahBysKGalvNEpzRCrGlao0mS0Cg9qDpEsndtypPFS8sfaflToOzbJjiSK2DvQiHSH8xZI3zHJTezgZMz-pB_hPTxp8ajdv0ve1gWtWjs3vERr0Y91X4hngO8X7LuXtAYtfxGZRIye12YE7TuLBMYzj8CCfiRt7Smhyf4palNW5mzKlZpa2l87n6NQ14Iy4oMzQ2PON1j_swrosuE2yZohGOn6fDdSCBRdJ6dLD_emjBdQCQOoB63R7BbhFZgvFX25TjzFJ7r9AdVMiGmebuRKEVSZV_JCGu1C71OIbQk-UK35s00gSr2fmJGBbN2cZTXBRTJpfuMZ_ihFYEZrvVq_Ih2X0xkd36JUuxaUld1BXRgPZvH-9jBuhe0YW2OOlgwpdm6ZB8BMcuS4ftLoi6FipgzFqfIuy-0ZqPMDnJaG7Gycrdpxza00mgOFxYxJtqwZNsUWFRZEVU881l6VC_cy294YXSPQxUwEoyKg-G5Pm8AEB9bqv5z4EU4B8-XTd3zKNqtNba_snHbc711i4EytCiZfYSjNB1hwenq45YYOAhPTwOpFI0kxyRazc\",\n \"user\": {\n \"id\": 1,\n \"name\": \"15888888888\",\n \"email\": \"abcdefg@gmail.com\",\n \"type\": 2,\n \"phone\": \"15888888888\",\n \"avatar\": null,\n \"last_ip\": null,\n \"created_at\": \"2016-09-30 00:45:13\",\n \"updated_at\": \"2016-09-29 16:43:36\"\n }\n }\n}",
  194. "type": "json"
  195. }
  196. ]
  197. },
  198. "error": {
  199. "examples": [
  200. {
  201. "title": "Error-Response:",
  202. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n可能出现的错误代码:\n 1000 CLIENT_WRONG_PARAMS 传入参数不正确\n 1102 INCORRECT_USER_OR_PASS 用户名或密码不正确",
  203. "type": "json"
  204. }
  205. ]
  206. },
  207. "filename": "app/Http/Controllers/Api/V1/LoginController.php",
  208. "groupTitle": "Auth",
  209. "name": "PostApiLogin"
  210. },
  211. {
  212. "type": "get",
  213. "url": "/api/index/get_message",
  214. "title": "获取知识(indexGetMessage)",
  215. "description": "<p>获取知识(indexMenu)indexGetMessage</p>",
  216. "group": "Index",
  217. "permission": [
  218. {
  219. "name": "none"
  220. }
  221. ],
  222. "version": "0.1.0",
  223. "parameter": {
  224. "fields": {
  225. "Parameter": [
  226. {
  227. "group": "Parameter",
  228. "type": "int",
  229. "optional": false,
  230. "field": "id",
  231. "description": "<p>知识ID</p>"
  232. },
  233. {
  234. "group": "Parameter",
  235. "type": "int",
  236. "optional": false,
  237. "field": "type",
  238. "description": "<p>知识类型 1 悬赏 2 付费</p>"
  239. }
  240. ]
  241. }
  242. },
  243. "success": {
  244. "examples": [
  245. {
  246. "title": "Success-Response:",
  247. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"msg\": \"获取成功\"\n }\n}",
  248. "type": "json"
  249. }
  250. ]
  251. },
  252. "error": {
  253. "examples": [
  254. {
  255. "title": "Error-Response:",
  256. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  257. "type": "json"
  258. }
  259. ]
  260. },
  261. "filename": "app/Http/Controllers/Api/V1/IndexController.php",
  262. "groupTitle": "Index",
  263. "name": "GetApiIndexGet_message"
  264. },
  265. {
  266. "type": "get",
  267. "url": "/api/index/menu",
  268. "title": "知识列表(indexMenu)",
  269. "description": "<p>知识列表(indexMenu)indexMenu</p>",
  270. "group": "Index",
  271. "permission": [
  272. {
  273. "name": "none"
  274. }
  275. ],
  276. "version": "0.1.0",
  277. "parameter": {
  278. "fields": {
  279. "Parameter": [
  280. {
  281. "group": "Parameter",
  282. "type": "string",
  283. "optional": false,
  284. "field": "tag_id",
  285. "description": "<p>标签ID</p>"
  286. }
  287. ]
  288. }
  289. },
  290. "success": {
  291. "examples": [
  292. {
  293. "title": "Success-Response:",
  294. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"menu\": [\n {\n \"id\": 4,\n \"name\": \"标签4\",\n \"sort\": 4,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:04:31\",\n \"updated_at\": \"2018-07-12 17:04:34\"\n }\n ],\n \"message\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 0,\n \"owner\": \"Richod\"\n }\n ],\n \"first_page_url\": \"http://zsff.xcx.com/api/index/menu?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://zsff.xcx.com/api/index/menu?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://zsff.xcx.com/api/index/menu\",\n \"per_page\": 1,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }\n}",
  295. "type": "json"
  296. }
  297. ]
  298. },
  299. "error": {
  300. "examples": [
  301. {
  302. "title": "Error-Response:",
  303. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  304. "type": "json"
  305. }
  306. ]
  307. },
  308. "filename": "app/Http/Controllers/Api/V1/IndexController.php",
  309. "groupTitle": "Index",
  310. "name": "GetApiIndexMenu"
  311. },
  312. {
  313. "type": "get",
  314. "url": "/api/index/message",
  315. "title": "知识详情(indexMessage)",
  316. "description": "<p>知识详情(indexMenu)indexMessage</p>",
  317. "group": "Index",
  318. "permission": [
  319. {
  320. "name": "none"
  321. }
  322. ],
  323. "version": "0.1.0",
  324. "parameter": {
  325. "fields": {
  326. "Parameter": [
  327. {
  328. "group": "Parameter",
  329. "type": "int",
  330. "optional": false,
  331. "field": "id",
  332. "description": "<p>知识ID</p>"
  333. }
  334. ]
  335. }
  336. },
  337. "success": {
  338. "examples": [
  339. {
  340. "title": "Success-Response:",
  341. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"message\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"content\": \"爱我的\",\n \"user_id\": 1,\n \"price\": 0,\n \"phone\": \"18228068397\",\n \"comment\": \"瓦坎达入口\",\n \"type\": 0,\n \"sort\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:06:23\",\n \"updated_at\": \"2018-07-12 17:06:26\",\n \"state\": 0,\n \"is_pay\": \"是否需要付费 0 需要付费 1 不需要\"\n }\n }\n}",
  342. "type": "json"
  343. }
  344. ]
  345. },
  346. "error": {
  347. "examples": [
  348. {
  349. "title": "Error-Response:",
  350. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  351. "type": "json"
  352. }
  353. ]
  354. },
  355. "filename": "app/Http/Controllers/Api/V1/IndexController.php",
  356. "groupTitle": "Index",
  357. "name": "GetApiIndexMessage"
  358. },
  359. {
  360. "type": "get",
  361. "url": "/api/index/tag",
  362. "title": "筛选标签(indexTag)",
  363. "description": "<p>筛选标签(indexTag)indexTag</p>",
  364. "group": "Index",
  365. "permission": [
  366. {
  367. "name": "none"
  368. }
  369. ],
  370. "version": "0.1.0",
  371. "parameter": {
  372. "fields": {
  373. "Parameter": [
  374. {
  375. "group": "Parameter",
  376. "type": "string",
  377. "optional": false,
  378. "field": "keywords",
  379. "description": "<p>关键词</p>"
  380. }
  381. ]
  382. }
  383. },
  384. "success": {
  385. "examples": [
  386. {
  387. "title": "Success-Response:",
  388. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"标签1\",\n \"sort\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:03:07\",\n \"updated_at\": \"2018-07-12 17:03:11\"\n }\n ]\n}",
  389. "type": "json"
  390. }
  391. ]
  392. },
  393. "error": {
  394. "examples": [
  395. {
  396. "title": "Error-Response:",
  397. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  398. "type": "json"
  399. }
  400. ]
  401. },
  402. "filename": "app/Http/Controllers/Api/V1/IndexController.php",
  403. "groupTitle": "Index",
  404. "name": "GetApiIndexTag"
  405. },
  406. {
  407. "type": "get",
  408. "url": "/api/user/complete_message",
  409. "title": "结束悬赏(userCompleteMessages)",
  410. "description": "<p>结束悬赏(userCompleteMessages)userCompleteMessages</p>",
  411. "group": "User",
  412. "permission": [
  413. {
  414. "name": "none"
  415. }
  416. ],
  417. "version": "0.1.0",
  418. "parameter": {
  419. "fields": {
  420. "Parameter": [
  421. {
  422. "group": "Parameter",
  423. "type": "int",
  424. "optional": false,
  425. "field": "message_id",
  426. "description": "<p>知识id</p>"
  427. },
  428. {
  429. "group": "Parameter",
  430. "type": "int",
  431. "optional": false,
  432. "field": "follower_id",
  433. "description": "<p>悬赏者信息id</p>"
  434. },
  435. {
  436. "group": "Parameter",
  437. "type": "int",
  438. "optional": false,
  439. "field": "type",
  440. "description": "<p>操作类型 1 添加 0 删除</p>"
  441. }
  442. ]
  443. }
  444. },
  445. "success": {
  446. "examples": [
  447. {
  448. "title": "Success-Response:",
  449. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"msg\": \"添加成功\"\n }\n}",
  450. "type": "json"
  451. }
  452. ]
  453. },
  454. "error": {
  455. "examples": [
  456. {
  457. "title": "Error-Response:",
  458. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  459. "type": "json"
  460. }
  461. ]
  462. },
  463. "filename": "app/Http/Controllers/Api/V1/UserController.php",
  464. "groupTitle": "User",
  465. "name": "GetApiUserComplete_message"
  466. },
  467. {
  468. "type": "get",
  469. "url": "/api/user/edit_favorite",
  470. "title": "添加/删除收藏(userEditFavorite)",
  471. "description": "<p>添加/删除收藏(userEditFavorite)userEditFavorite</p>",
  472. "group": "User",
  473. "permission": [
  474. {
  475. "name": "none"
  476. }
  477. ],
  478. "version": "0.1.0",
  479. "parameter": {
  480. "fields": {
  481. "Parameter": [
  482. {
  483. "group": "Parameter",
  484. "type": "int",
  485. "optional": false,
  486. "field": "message_id",
  487. "description": "<p>知识id</p>"
  488. },
  489. {
  490. "group": "Parameter",
  491. "type": "int",
  492. "optional": false,
  493. "field": "type",
  494. "description": "<p>操作类型 1 添加 0 删除</p>"
  495. }
  496. ]
  497. }
  498. },
  499. "success": {
  500. "examples": [
  501. {
  502. "title": "Success-Response:",
  503. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"msg\": \"添加成功\"\n }\n}",
  504. "type": "json"
  505. }
  506. ]
  507. },
  508. "error": {
  509. "examples": [
  510. {
  511. "title": "Error-Response:",
  512. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  513. "type": "json"
  514. }
  515. ]
  516. },
  517. "filename": "app/Http/Controllers/Api/V1/UserController.php",
  518. "groupTitle": "User",
  519. "name": "GetApiUserEdit_favorite"
  520. },
  521. {
  522. "type": "get",
  523. "url": "/api/user/favorite",
  524. "title": "添加/删除收藏(userFavorite)",
  525. "description": "<p>添加/删除收藏(userFavorite)userFavorite</p>",
  526. "group": "User",
  527. "permission": [
  528. {
  529. "name": "none"
  530. }
  531. ],
  532. "version": "0.1.0",
  533. "success": {
  534. "examples": [
  535. {
  536. "title": "Success-Response:",
  537. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 0,\n }\n }\n}",
  538. "type": "json"
  539. }
  540. ]
  541. },
  542. "error": {
  543. "examples": [
  544. {
  545. "title": "Error-Response:",
  546. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  547. "type": "json"
  548. }
  549. ]
  550. },
  551. "filename": "app/Http/Controllers/Api/V1/UserController.php",
  552. "groupTitle": "User",
  553. "name": "GetApiUserFavorite"
  554. },
  555. {
  556. "type": "get",
  557. "url": "/api/user/get_message",
  558. "title": "我的参与(userGetMessages)",
  559. "description": "<p>我的参与(userGetMessages)userGetMessages</p>",
  560. "group": "User",
  561. "permission": [
  562. {
  563. "name": "none"
  564. }
  565. ],
  566. "version": "0.1.0",
  567. "parameter": {
  568. "fields": {
  569. "Parameter": [
  570. {
  571. "group": "Parameter",
  572. "type": "int",
  573. "optional": false,
  574. "field": "state",
  575. "description": "<p>类型 -1 全部 0 免费 1 悬赏 2 付费</p>"
  576. }
  577. ]
  578. }
  579. },
  580. "success": {
  581. "examples": [
  582. {
  583. "title": "Success-Response:",
  584. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 0,\n }\n }\n}",
  585. "type": "json"
  586. }
  587. ]
  588. },
  589. "error": {
  590. "examples": [
  591. {
  592. "title": "Error-Response:",
  593. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  594. "type": "json"
  595. }
  596. ]
  597. },
  598. "filename": "app/Http/Controllers/Api/V1/UserController.php",
  599. "groupTitle": "User",
  600. "name": "GetApiUserGet_message"
  601. },
  602. {
  603. "type": "get",
  604. "url": "/api/user/message_detail",
  605. "title": "我的发布详情(userMessageDetail)",
  606. "description": "<p>我的发布详情(userMessageDetail)userMessageDetail</p>",
  607. "group": "User",
  608. "permission": [
  609. {
  610. "name": "none"
  611. }
  612. ],
  613. "version": "0.1.0",
  614. "parameter": {
  615. "fields": {
  616. "Parameter": [
  617. {
  618. "group": "Parameter",
  619. "type": "int",
  620. "optional": false,
  621. "field": "id",
  622. "description": "<p>信息id</p>"
  623. }
  624. ]
  625. }
  626. },
  627. "success": {
  628. "examples": [
  629. {
  630. "title": "Success-Response:",
  631. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n \"data\": {\n \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"content\": \"爱我的\",\n \"user_id\": 1,\n \"price\": 1,\n \"phone\": \"18228068397\",\n \"comment\": \"瓦坎达入口\",\n \"type\": 1,\n \"sort\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:06:23\",\n \"updated_at\": \"2018-07-12 17:06:26\",\n \"state\": 0,\n \"pic_url\": \"\",\n \"followers_num\": 1,\n \"followers\": [\n {\n \"id\": 5,\n \"messages_id\": 1,\n \"user_id\": 1,\n \"username\": \"Richod\",\n \"mobile\": \"1111\",\n \"deleted_at\": null,\n \"created_at\": \"2018-07-17 09:21:18\",\n \"updated_at\": \"2018-07-17 09:21:18\",\n \"state\": 0\n }\n ],\n \"income\": \"\"\n }\n }\n}",
  632. "type": "json"
  633. }
  634. ]
  635. },
  636. "error": {
  637. "examples": [
  638. {
  639. "title": "Error-Response:",
  640. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  641. "type": "json"
  642. }
  643. ]
  644. },
  645. "filename": "app/Http/Controllers/Api/V1/UserController.php",
  646. "groupTitle": "User",
  647. "name": "GetApiUserMessage_detail"
  648. },
  649. {
  650. "type": "get",
  651. "url": "/api/user/my_message",
  652. "title": "我的发布(userMyMessage)",
  653. "description": "<p>我的发布(userMyMessage)userMyMessage</p>",
  654. "group": "User",
  655. "permission": [
  656. {
  657. "name": "none"
  658. }
  659. ],
  660. "version": "0.1.0",
  661. "parameter": {
  662. "fields": {
  663. "Parameter": [
  664. {
  665. "group": "Parameter",
  666. "type": "int",
  667. "optional": false,
  668. "field": "state",
  669. "description": "<p>类型 -1 全部 0 免费 1 悬赏 2 付费</p>"
  670. }
  671. ]
  672. }
  673. },
  674. "success": {
  675. "examples": [
  676. {
  677. "title": "Success-Response:",
  678. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 0,\n }\n }\n}",
  679. "type": "json"
  680. }
  681. ]
  682. },
  683. "error": {
  684. "examples": [
  685. {
  686. "title": "Error-Response:",
  687. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  688. "type": "json"
  689. }
  690. ]
  691. },
  692. "filename": "app/Http/Controllers/Api/V1/UserController.php",
  693. "groupTitle": "User",
  694. "name": "GetApiUserMy_message"
  695. },
  696. {
  697. "type": "post",
  698. "url": "/api/user/release",
  699. "title": "发布知识(userRelease)",
  700. "description": "<p>发布知识(userRelease)userRelease</p>",
  701. "group": "User",
  702. "permission": [
  703. {
  704. "name": "none"
  705. }
  706. ],
  707. "version": "0.1.0",
  708. "parameter": {
  709. "fields": {
  710. "Parameter": [
  711. {
  712. "group": "Parameter",
  713. "type": "text",
  714. "optional": false,
  715. "field": "content",
  716. "description": "<p>内容</p>"
  717. },
  718. {
  719. "group": "Parameter",
  720. "type": "string",
  721. "optional": false,
  722. "field": "title",
  723. "description": "<p>标题</p>"
  724. },
  725. {
  726. "group": "Parameter",
  727. "type": "number",
  728. "optional": false,
  729. "field": "price",
  730. "description": "<p>价格</p>"
  731. },
  732. {
  733. "group": "Parameter",
  734. "type": "int",
  735. "optional": false,
  736. "field": "type",
  737. "description": "<p>知识类型 1 悬赏 2 付费 0免费</p>"
  738. },
  739. {
  740. "group": "Parameter",
  741. "type": "text",
  742. "optional": false,
  743. "field": "pic_url",
  744. "description": "<p>图片</p>"
  745. },
  746. {
  747. "group": "Parameter",
  748. "type": "array",
  749. "optional": false,
  750. "field": "tag",
  751. "description": "<p>['id'] 标签ID tag['name'] 标签内容</p>"
  752. }
  753. ]
  754. }
  755. },
  756. "success": {
  757. "examples": [
  758. {
  759. "title": "Success-Response:",
  760. "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n \"msg\": \"添加成功\"\n }\n}",
  761. "type": "json"
  762. }
  763. ]
  764. },
  765. "error": {
  766. "examples": [
  767. {
  768. "title": "Error-Response:",
  769. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  770. "type": "json"
  771. }
  772. ]
  773. },
  774. "filename": "app/Http/Controllers/Api/V1/UserController.php",
  775. "groupTitle": "User",
  776. "name": "PostApiUserRelease"
  777. }
  778. ]