api_data.js 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762
  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": "server/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": "server/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": "server/app/Http/Controllers/Api/V1/AttachmentController.php",
  147. "groupTitle": "Attachment",
  148. "name": "PostApiAttachmentUpload"
  149. },
  150. {
  151. "type": "get",
  152. "url": "/api/auth/logout",
  153. "title": "退出(logout)",
  154. "description": "<p>退出(logout)</p>",
  155. "group": "Auth",
  156. "permission": [
  157. {
  158. "name": "Passport"
  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 \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"result\": true/false\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\": 1104,\n \"message\": \"退出失败\",\n \"data\": null\n}\n可能出现的错误代码:\n 1104 LOGOUT_FAILED 退出失败",
  176. "type": "json"
  177. }
  178. ]
  179. },
  180. "filename": "server/app/Http/Controllers/Api/V1/AuthController.php",
  181. "groupTitle": "Auth",
  182. "name": "GetApiAuthLogout"
  183. },
  184. {
  185. "type": "post",
  186. "url": "/api/auth/avatar",
  187. "title": "上传头像(avatar)",
  188. "description": "<p>上传头像(reset)</p>",
  189. "group": "Auth",
  190. "permission": [
  191. {
  192. "name": "Passport"
  193. }
  194. ],
  195. "version": "0.1.0",
  196. "parameter": {
  197. "fields": {
  198. "Parameter": [
  199. {
  200. "group": "Parameter",
  201. "type": "File",
  202. "optional": false,
  203. "field": "avatar",
  204. "description": "<p>头像图片</p>"
  205. }
  206. ]
  207. }
  208. },
  209. "success": {
  210. "examples": [
  211. {
  212. "title": "Success-Response:",
  213. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"md5\": \"fdf8dd78eb383b8acf6d94d4752c1424\",\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 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 附件不存在",
  223. "type": "json"
  224. }
  225. ]
  226. },
  227. "filename": "server/app/Http/Controllers/Api/V1/AuthController.php",
  228. "groupTitle": "Auth",
  229. "name": "PostApiAuthAvatar"
  230. },
  231. {
  232. "type": "post",
  233. "url": "/api/auth/code",
  234. "title": "获取验证码(get code)",
  235. "description": "<p>获取验证码(get code),验证码有效期暂定为15分钟</p>",
  236. "group": "Auth",
  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": "string",
  249. "optional": false,
  250. "field": "phone",
  251. "description": "<p>手机</p>"
  252. }
  253. ]
  254. }
  255. },
  256. "success": {
  257. "examples": [
  258. {
  259. "title": "Success-Response:",
  260. "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"verify_code\": \"1234\"//该值调试时使用,sms调通后取消\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": "server/app/Http/Controllers/Api/V1/AuthController.php",
  275. "groupTitle": "Auth",
  276. "name": "PostApiAuthCode"
  277. },
  278. {
  279. "type": "post",
  280. "url": "/api/auth/login",
  281. "title": "登陆(login)",
  282. "description": "<p>登陆(login)</p>",
  283. "group": "Auth",
  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": "string",
  296. "optional": false,
  297. "field": "phone",
  298. "description": "<p>手机号码</p>"
  299. },
  300. {
  301. "group": "Parameter",
  302. "type": "String",
  303. "optional": false,
  304. "field": "verify_code",
  305. "description": "<p>手机验证码</p>"
  306. }
  307. ]
  308. }
  309. },
  310. "success": {
  311. "examples": [
  312. {
  313. "title": "Success-Response:",
  314. "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}",
  315. "type": "json"
  316. }
  317. ]
  318. },
  319. "error": {
  320. "examples": [
  321. {
  322. "title": "Error-Response:",
  323. "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 1103 VERIFY_CODE_TOO_MUCH 验证码大于5次\n 1610 SERVICE_CODE_FAILED 验证码错误",
  324. "type": "json"
  325. }
  326. ]
  327. },
  328. "filename": "server/app/Http/Controllers/Api/V1/AuthController.php",
  329. "groupTitle": "Auth",
  330. "name": "PostApiAuthLogin"
  331. },
  332. {
  333. "type": "get",
  334. "url": "/api/dream/collection",
  335. "title": "收藏梦想",
  336. "description": "<p>收藏梦想</p>",
  337. "group": "Dream",
  338. "permission": [
  339. {
  340. "name": "Passport"
  341. }
  342. ],
  343. "version": "0.1.0",
  344. "parameter": {
  345. "fields": {
  346. "Parameter": [
  347. {
  348. "group": "Parameter",
  349. "type": "int",
  350. "optional": false,
  351. "field": "id",
  352. "description": "<p>梦想ID</p>"
  353. },
  354. {
  355. "group": "Parameter",
  356. "type": "int",
  357. "optional": false,
  358. "field": "is_collection",
  359. "description": "<p>0取消关注 1关注</p>"
  360. }
  361. ]
  362. }
  363. },
  364. "success": {
  365. "examples": [
  366. {
  367. "title": "Success-Response:",
  368. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"is_collection\": 1 1已关注 0 未关注\n }\n}",
  369. "type": "json"
  370. }
  371. ]
  372. },
  373. "error": {
  374. "examples": [
  375. {
  376. "title": "Error-Response:",
  377. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  378. "type": "json"
  379. }
  380. ]
  381. },
  382. "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
  383. "groupTitle": "Dream",
  384. "name": "GetApiDreamCollection"
  385. },
  386. {
  387. "type": "get",
  388. "url": "/api/dream/search",
  389. "title": "梦想搜索",
  390. "description": "<p>梦想搜索)</p>",
  391. "group": "Dream",
  392. "permission": [
  393. {
  394. "name": "none"
  395. }
  396. ],
  397. "version": "0.1.0",
  398. "parameter": {
  399. "fields": {
  400. "Parameter": [
  401. {
  402. "group": "Parameter",
  403. "type": "string",
  404. "optional": false,
  405. "field": "keyword",
  406. "description": "<p>关键字</p>"
  407. }
  408. ]
  409. }
  410. },
  411. "success": {
  412. "examples": [
  413. {
  414. "title": "Success-Response:",
  415. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 5,\n \"user_id\": 1,\n \"name\": \"梦想标题1\",\n \"about\": \"梦想介绍\",\n \"coin\": 2500,\n \"time\": 72000,\n \"get_coin\": 0,\n \"mark\": 0,\n \"status\": 0,\n \"video\": \"url\",\n \"score\": 100079365,\n \"sign\": \"梦想达人\",\n \"created_at\": \"2017-06-25 12:45:22\",\n \"updated_at\": \"2017-06-28 15:50:41\",\n \"user\": {},\n \"imgs\": []\n },\n ]\n }",
  416. "type": "json"
  417. }
  418. ]
  419. },
  420. "error": {
  421. "examples": [
  422. {
  423. "title": "Error-Response:",
  424. "content": "HTTP/1.1 400 Bad Request",
  425. "type": "json"
  426. }
  427. ]
  428. },
  429. "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
  430. "groupTitle": "Dream",
  431. "name": "GetApiDreamSearch"
  432. },
  433. {
  434. "type": "get",
  435. "url": "/api/dream/show",
  436. "title": "梦想详情",
  437. "description": "<p>梦想详情</p>",
  438. "group": "Dream",
  439. "permission": [
  440. {
  441. "name": "Passport"
  442. }
  443. ],
  444. "version": "0.1.0",
  445. "parameter": {
  446. "fields": {
  447. "Parameter": [
  448. {
  449. "group": "Parameter",
  450. "type": "int",
  451. "optional": true,
  452. "field": "type",
  453. "defaultValue": "home",
  454. "description": "<p>home interaction paihang 默认all</p>"
  455. },
  456. {
  457. "group": "Parameter",
  458. "type": "int",
  459. "optional": false,
  460. "field": "id",
  461. "description": "<p>梦想ID</p>"
  462. }
  463. ]
  464. }
  465. },
  466. "success": {
  467. "examples": [
  468. {
  469. "title": "Success-Response:",
  470. "content": "HTTP/1.1 200 OK\n 主页\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"dream\": { 梦想\n \"id\": 4,\n \"user_id\": 1,\n \"a\": 1, //支持乘数系数 后台配置\n \"c\": 1, //支持乘数系数 后台配置\n \"name\": \"梦想标题1\",\n \"about\": \"梦想介绍\",\n \"coin\": 2500,\n \"time\": 21,\n \"get_coin\": 600,\n \"status\": 0,\n \"video\": null,\n \"score\": 100079365,\n \"sign\": \"\",\n \"created_at\": \"2017-06-25 11:47:45\",\n \"updated_at\": \"2017-06-25 15:10:50\",\n \"is_collection\" : 1 1已收藏 0未收藏\n \"top3user\": [ 支持者前三\n {\n \"id\": 2,\n \"phone\": \"13880642881\",\n \"nickname\": \"name2\",\n \"avatar\": \"https://timgsa.baidu.com/timg?imamb.224_0.jpeg\",\n \"score\": 2399\n }\n ],\n \"number\": 1 支持乘数\n \"imgs\": [ 梦想图片\n {\n \"title\": \"\",\n \"pic\": \"https://timgsa.ba0170524%2Feaca9092ca852e6e9c6ec46b7b14f12f.jpg\"\n },\n {\n \"title\": \"\",\n \"pic\": \"https://timgsa.baid524%2Feaca9092ca852e6e9c6ec46b7b14f12f.jpg\"\n },\n {\n \"title\": \"\",\n \"pic\": \"https://timgsa20170524%2Feaca9092ca852e6e9c6ec46b7b14f12f.jpg\"\n }\n ],\n \"user\": { 梦想用户\n \"id\": 1,\n \"phone\": \"13880642880\",\n \"nickname\": \"name1\",\n \"avatar\": \"https://timgsumb.224_0.jpeg\",\n \"birthday\": \"2000-06-21\",\n \"sign\": 0,\n \"money\": 0,\n \"coin\": 1300,\n \"sex\": 1,\n \"signture\": \"\",\n \"height\": 170,\n \"work\": \"\",\n \"emotion\": 1,\n \"address\": \"\",\n \"city\": \"\",\n \"detail_address\": \"\",\n \"status\": 1,\n \"wechat\": \"\",\n \"weibo\": \"\",\n \"remember_token\": \"\",\n \"created_at\": \"2017-06-25 10:27:08\",\n \"updated_at\": \"2017-06-25 15:20:11\",\n \"deleted_at\": null\n }\n }\n }\n }",
  471. "type": "json"
  472. }
  473. ]
  474. },
  475. "error": {
  476. "examples": [
  477. {
  478. "title": "Error-Response:",
  479. "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \"status_code\": 1105,\n \"message\": \"用户不存在\",\n \"data\": null\n}",
  480. "type": "json"
  481. }
  482. ]
  483. },
  484. "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
  485. "groupTitle": "Dream",
  486. "name": "GetApiDreamShow"
  487. },
  488. {
  489. "type": "get",
  490. "url": "/api/user/care",
  491. "title": "关注用户",
  492. "description": "<p>关注用户</p>",
  493. "group": "Dream",
  494. "permission": [
  495. {
  496. "name": "Passport"
  497. }
  498. ],
  499. "version": "0.1.0",
  500. "parameter": {
  501. "fields": {
  502. "Parameter": [
  503. {
  504. "group": "Parameter",
  505. "type": "int",
  506. "optional": false,
  507. "field": "id",
  508. "description": "<p>用户ID</p>"
  509. },
  510. {
  511. "group": "Parameter",
  512. "type": "int",
  513. "optional": false,
  514. "field": "is_care",
  515. "description": "<p>0取消关注 1关注</p>"
  516. }
  517. ]
  518. }
  519. },
  520. "success": {
  521. "examples": [
  522. {
  523. "title": "Success-Response:",
  524. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n 1 1已关注 0 未关注\n }\n}",
  525. "type": "json"
  526. }
  527. ]
  528. },
  529. "error": {
  530. "examples": [
  531. {
  532. "title": "Error-Response:",
  533. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  534. "type": "json"
  535. }
  536. ]
  537. },
  538. "filename": "server/app/Http/Controllers/Api/V1/HomeController.php",
  539. "groupTitle": "Dream",
  540. "name": "GetApiUserCare"
  541. },
  542. {
  543. "type": "post",
  544. "url": "/api/dream/store",
  545. "title": "发布梦想",
  546. "description": "<p>发布梦想</p>",
  547. "parameter": {
  548. "fields": {
  549. "Parameter": [
  550. {
  551. "group": "Parameter",
  552. "type": "string",
  553. "optional": false,
  554. "field": "pics",
  555. "description": "<p>梦想图片 数组</p>"
  556. },
  557. {
  558. "group": "Parameter",
  559. "type": "string",
  560. "optional": false,
  561. "field": "video",
  562. "description": "<p>梦想视频</p>"
  563. },
  564. {
  565. "group": "Parameter",
  566. "type": "string",
  567. "optional": false,
  568. "field": "name",
  569. "description": "<p>梦想标题</p>"
  570. },
  571. {
  572. "group": "Parameter",
  573. "type": "string",
  574. "optional": false,
  575. "field": "about",
  576. "description": "<p>梦想介绍</p>"
  577. },
  578. {
  579. "group": "Parameter",
  580. "type": "int",
  581. "optional": false,
  582. "field": "coin",
  583. "description": "<p>梦想币</p>"
  584. },
  585. {
  586. "group": "Parameter",
  587. "type": "int",
  588. "optional": false,
  589. "field": "time",
  590. "description": "<p>实现时间默认21*3600</p>"
  591. }
  592. ]
  593. }
  594. },
  595. "group": "Dream",
  596. "permission": [
  597. {
  598. "name": "Passport"
  599. }
  600. ],
  601. "version": "0.1.0",
  602. "success": {
  603. "examples": [
  604. {
  605. "title": "Success-Response:",
  606. "content": "{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}\nHTTP/1.1 200 OK",
  607. "type": "json"
  608. }
  609. ]
  610. },
  611. "error": {
  612. "examples": [
  613. {
  614. "title": "Error-Response:",
  615. "content": "{\n \"status\": false,\n \"status_code\": 1203,\n \"message\": \"附件不存在\",\n \"data\": null\n}\nHTTP/1.1 400 Bad Request",
  616. "type": "json"
  617. }
  618. ]
  619. },
  620. "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
  621. "groupTitle": "Dream",
  622. "name": "PostApiDreamStore"
  623. },
  624. {
  625. "type": "post",
  626. "url": "/api/dream/support",
  627. "title": "支持梦想",
  628. "description": "<p>支持梦想</p>",
  629. "group": "Dream",
  630. "permission": [
  631. {
  632. "name": "Passport"
  633. }
  634. ],
  635. "version": "0.1.0",
  636. "parameter": {
  637. "fields": {
  638. "Parameter": [
  639. {
  640. "group": "Parameter",
  641. "type": "int",
  642. "optional": false,
  643. "field": "coin",
  644. "description": "<p>支持梦想币数量</p>"
  645. },
  646. {
  647. "group": "Parameter",
  648. "type": "int",
  649. "optional": false,
  650. "field": "id",
  651. "description": "<p>梦想ID</p>"
  652. }
  653. ]
  654. }
  655. },
  656. "success": {
  657. "examples": [
  658. {
  659. "title": "Success-Response:",
  660. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 12,\n \"user_id\": 2,\n \"name\": \"用户2梦想标题166\",\n \"about\": \"用户2梦想介绍666\",\n \"coin\": 2500,\n \"time\": 21,\n \"get_coin\": 704,\n \"status\": 0,\n \"video\": null,\n \"score\": 158730,\n \"mark\": 158730,\n \"sign\": \"\",\n \"created_at\": \"2017-06-25 13:10:56\",\n \"updated_at\": \"2017-06-27 18:16:02\",\n \"top3user\": [ 支持者前三\n {\n \"id\": 1,\n \"phone\": \"13880642880\",\n \"nickname\": \"name1\",\n \"avatar\": \"https://timgsa.bumb.224_0.jpeg\",\n \"birthday\": \"2000-06-21\",\n \"sign\": 0,\n \"money\": 0,\n \"coin\": 596,\n \"sex\": 1,\n \"signture\": \"我的个性签名1\",\n \"height\": 170,\n \"work\": \"网红\",\n \"emotion\": 1,\n \"address\": \"\",\n \"city\": \"上海\",\n \"detail_address\": \"\",\n \"status\": 1,\n \"wechat\": \"\",\n \"weibo\": \"\",\n \"remember_token\": \"\",\n \"created_at\": \"2017-06-25 10:27:08\",\n \"updated_at\": \"2017-06-27 18:16:02\",\n \"deleted_at\": null,\n \"score\": 5062\n }\n ]\n \"number\": 4.8\n \"is_collection\" : 1 1已收藏 0未收藏\n\n }\n }",
  661. "type": "json"
  662. }
  663. ]
  664. },
  665. "error": {
  666. "examples": [
  667. {
  668. "title": "Error-Response:",
  669. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}\n 可能出现的代码\n{\n \"status\": false,\n \"status_code\": 1303,\n \"message\": \"余额不足\",\n \"data\": null\n }\n {\n \"status\": false,\n \"status_code\": 1410,\n \"message\": \"支持已达上限\",\n \"data\": null\n }",
  670. "type": "json"
  671. }
  672. ]
  673. },
  674. "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
  675. "groupTitle": "Dream",
  676. "name": "PostApiDreamSupport"
  677. },
  678. {
  679. "type": "get",
  680. "url": "/api/user/meet/",
  681. "title": "见面",
  682. "description": "<p>见面</p>",
  683. "group": "Home",
  684. "permission": [
  685. {
  686. "name": "Passport"
  687. }
  688. ],
  689. "version": "0.1.0",
  690. "parameter": {
  691. "fields": {
  692. "Parameter": [
  693. {
  694. "group": "Parameter",
  695. "type": "int",
  696. "optional": false,
  697. "field": "dream_id",
  698. "description": "<p>梦想id</p>"
  699. }
  700. ]
  701. }
  702. },
  703. "success": {
  704. "examples": [
  705. {
  706. "title": "Success-Response:",
  707. "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
  708. "type": "json"
  709. }
  710. ]
  711. },
  712. "error": {
  713. "examples": [
  714. {
  715. "title": "Error-Response:",
  716. "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 1412,\n \"message\": \"梦想暂未实现\", /梦想不存在/不是最大支持者\n \"data\": null\n }",
  717. "type": "json"
  718. }
  719. ]
  720. },
  721. "filename": "server/app/Http/Controllers/Api/V1/HomeController.php",
  722. "groupTitle": "Home",
  723. "name": "GetApiUserMeet"
  724. },
  725. {
  726. "type": "get",
  727. "url": "/api/user/show/",
  728. "title": "用户信息",
  729. "description": "<p>用户信息</p>",
  730. "group": "Home",
  731. "permission": [
  732. {
  733. "name": "Passport"
  734. }
  735. ],
  736. "version": "0.1.0",
  737. "parameter": {
  738. "fields": {
  739. "Parameter": [
  740. {
  741. "group": "Parameter",
  742. "type": "int",
  743. "optional": false,
  744. "field": "user_id",
  745. "description": "<p>用户ID</p>"
  746. }
  747. ]
  748. }
  749. },
  750. "success": {
  751. "examples": [
  752. {
  753. "title": "Success-Response:",
  754. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"user\": {}, 用户信息\n \"near_dream\": {}, 当前梦想\n \"sup_dreams\": [], 支持的梦想\n \"imgs\": [], 封面图片\n \"dreams\": [] 曾经的梦想\n \"score\": 2000 支持分数\n }\n}",
  755. "type": "json"
  756. }
  757. ]
  758. },
  759. "error": {
  760. "examples": [
  761. {
  762. "title": "Error-Response:",
  763. "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \" status_code\": 1105,\n \"message\": \"用户不存在\",\n \"data\": null\n }",
  764. "type": "json"
  765. }
  766. ]
  767. },
  768. "filename": "server/app/Http/Controllers/Api/V1/HomeController.php",
  769. "groupTitle": "Home",
  770. "name": "GetApiUserShow"
  771. },
  772. {
  773. "type": "get",
  774. "url": "/api/index/home",
  775. "title": "首页",
  776. "description": "<p>首页</p>",
  777. "group": "Index",
  778. "parameter": {
  779. "fields": {
  780. "Parameter": [
  781. {
  782. "group": "Parameter",
  783. "type": "string",
  784. "optional": true,
  785. "field": "type",
  786. "defaultValue": "hot",
  787. "description": "<p>(热门)hot/(潮流)trend/(最新)news</p>"
  788. },
  789. {
  790. "group": "Parameter",
  791. "type": "int",
  792. "optional": true,
  793. "field": "page",
  794. "defaultValue": "1",
  795. "description": "<p>页码(分页参数)</p>"
  796. }
  797. ]
  798. }
  799. },
  800. "permission": [
  801. {
  802. "name": "none"
  803. }
  804. ],
  805. "version": "0.1.0",
  806. "success": {
  807. "examples": [
  808. {
  809. "title": "Success-Response:",
  810. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"banners\": [ 轮播图\n {\n \"id\": 34,\n \"key\": \"4\",\n \"value\": \"http://w17.9026.com/img/banner/banner_4.png\",\n \"sort\": 0,\n \"category\": \"banner\",\n \"pid\": 0,\n \"status\": 1,\n \"created_at\": null,\n \"updated_at\": null,\n \"deleted_at\": null\n }\n ],\n \"users\": [], 动态用户\n \"dreams\": { 梦想列表\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 5,\n \"user_id\": 1,\n \"name\": \"梦想标题1\",\n \"about\": \"梦想介绍\",\n \"coin\": 2500,\n \"time\": 21, 实现时间\n \"get_coin\": 0,\n \"status\": 0,\n \"video\": null,\n \"score\": 100079365,\n \"sign\": \"\",\n \"created_at\": \"2017-06-25 12:45:22\",\n \"updated_at\": \"2017-06-25 12:45:22\",\n \"care_num\": 0, 关注人数\n \"img\": {\n \"title\": \"\",\n \"pic\": \"https://timgsa.baidu.com/timg?ica852e6e9c6ec46b7b14f12f.jpg\" 梦想封面图片\n }\n },\n ],\n \"from\": 1,\n \"last_page\": 1,\n \"next_page_url\": null,\n \"path\": \"http://www.miao.com/api/index/home\",\n \"per_page\": 20,\n \"prev_page_url\": null,\n \"to\": 5,\n \"total\": 5\n }\n }\n}",
  811. "type": "json"
  812. }
  813. ]
  814. },
  815. "error": {
  816. "examples": [
  817. {
  818. "title": "Error-Response:",
  819. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  820. "type": "json"
  821. }
  822. ]
  823. },
  824. "filename": "server/app/Http/Controllers/Api/V1/IndexController.php",
  825. "groupTitle": "Index",
  826. "name": "GetApiIndexHome"
  827. },
  828. {
  829. "type": "get",
  830. "url": "/api/index/search",
  831. "title": "搜索",
  832. "description": "<p>搜索</p>",
  833. "group": "Index",
  834. "permission": [
  835. {
  836. "name": "none"
  837. }
  838. ],
  839. "version": "0.1.0",
  840. "parameter": {
  841. "fields": {
  842. "Parameter": [
  843. {
  844. "group": "Parameter",
  845. "type": "string",
  846. "optional": true,
  847. "field": "keyword",
  848. "description": "<p>关键字可选 (ha/name)</p>"
  849. }
  850. ]
  851. }
  852. },
  853. "success": {
  854. "examples": [
  855. {
  856. "title": "Success-Response:",
  857. "content": "HTTP/1.1 200 OK\n get\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"hot_searches\": {\n \"name\": 1,\n \"梦想\": 1,\n \"ha\": 1\n },\n \"history_searches\": [\n {\n \"id\": 3,\n \"user_id\": 1,\n \"search\": \"ha\",\n \"times\": 1,\n \"created_at\": \"2017-06-25 16:21:47\",\n \"updated_at\": \"2017-06-25 16:21:47\"\n },\n ]\n }\n}",
  858. "type": "json"
  859. }
  860. ]
  861. },
  862. "error": {
  863. "examples": [
  864. {
  865. "title": "Error-Response:",
  866. "content": "HTTP/1.1 400 Bad Request",
  867. "type": "json"
  868. }
  869. ]
  870. },
  871. "filename": "server/app/Http/Controllers/Api/V1/IndexController.php",
  872. "groupTitle": "Index",
  873. "name": "GetApiIndexSearch"
  874. },
  875. {
  876. "type": "get",
  877. "url": "/api/index/user_search",
  878. "title": "用户搜索",
  879. "description": "<p>用户搜索</p>",
  880. "group": "Index",
  881. "permission": [
  882. {
  883. "name": "none"
  884. }
  885. ],
  886. "version": "0.1.0",
  887. "parameter": {
  888. "fields": {
  889. "Parameter": [
  890. {
  891. "group": "Parameter",
  892. "type": "string",
  893. "optional": false,
  894. "field": "keyword",
  895. "description": "<p>关键字</p>"
  896. }
  897. ]
  898. }
  899. },
  900. "success": {
  901. "examples": [
  902. {
  903. "title": "Success-Response:",
  904. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[\n {\n \"nickname\": \"ha\", 昵称\n \"pic\": \"\", 头像\n ...\n },\n ]\n}",
  905. "type": "json"
  906. }
  907. ]
  908. },
  909. "error": {
  910. "examples": [
  911. {
  912. "title": "Error-Response:",
  913. "content": "HTTP/1.1 400 Bad Request",
  914. "type": "json"
  915. }
  916. ]
  917. },
  918. "filename": "server/app/Http/Controllers/Api/V1/IndexController.php",
  919. "groupTitle": "Index",
  920. "name": "GetApiIndexUser_search"
  921. },
  922. {
  923. "type": "post",
  924. "url": "/api/interaction/comment",
  925. "title": "评论动态",
  926. "description": "<p>评论动态</p>",
  927. "group": "Interaction",
  928. "permission": [
  929. {
  930. "name": "Passport"
  931. }
  932. ],
  933. "version": "0.1.0",
  934. "parameter": {
  935. "fields": {
  936. "Parameter": [
  937. {
  938. "group": "Parameter",
  939. "type": "int",
  940. "optional": false,
  941. "field": "id",
  942. "description": "<p>动态ID不存在</p>"
  943. },
  944. {
  945. "group": "Parameter",
  946. "type": "string",
  947. "optional": false,
  948. "field": "content",
  949. "description": "<p>内容不能为空</p>"
  950. }
  951. ]
  952. }
  953. },
  954. "success": {
  955. "examples": [
  956. {
  957. "title": "Success-Response:",
  958. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}",
  959. "type": "json"
  960. }
  961. ]
  962. },
  963. "error": {
  964. "examples": [
  965. {
  966. "title": "Error-Response:",
  967. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  968. "type": "json"
  969. }
  970. ]
  971. },
  972. "filename": "server/app/Http/Controllers/Api/V1/InteractionController.php",
  973. "groupTitle": "Interaction",
  974. "name": "PostApiInteractionComment"
  975. },
  976. {
  977. "type": "post",
  978. "url": "/api/interaction/reply",
  979. "title": "我的回复",
  980. "description": "<p>我的回复</p>",
  981. "group": "Interaction",
  982. "parameter": {
  983. "fields": {
  984. "Parameter": [
  985. {
  986. "group": "Parameter",
  987. "type": "text",
  988. "optional": false,
  989. "field": "content",
  990. "description": "<p>回复内容</p>"
  991. },
  992. {
  993. "group": "Parameter",
  994. "type": "int",
  995. "optional": false,
  996. "field": "comment_id",
  997. "description": "<p>评论ID</p>"
  998. }
  999. ]
  1000. }
  1001. },
  1002. "permission": [
  1003. {
  1004. "name": "Passport"
  1005. }
  1006. ],
  1007. "version": "0.1.0",
  1008. "success": {
  1009. "examples": [
  1010. {
  1011. "title": "Success-Response:",
  1012. "content": "{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}\nHTTP/1.1 200 OK",
  1013. "type": "json"
  1014. }
  1015. ]
  1016. },
  1017. "error": {
  1018. "examples": [
  1019. {
  1020. "title": "Error-Response:",
  1021. "content": "{\n \"status\": false,\n \"status_code\": 1000,\n \"message\": \"输入不正确\",\n \"data\": null\n}\nHTTP/1.1 400 Bad Request",
  1022. "type": "json"
  1023. }
  1024. ]
  1025. },
  1026. "filename": "server/app/Http/Controllers/Api/V1/InteractionController.php",
  1027. "groupTitle": "Interaction",
  1028. "name": "PostApiInteractionReply"
  1029. },
  1030. {
  1031. "type": "post",
  1032. "url": "/api/interaction/store",
  1033. "title": "新增动态",
  1034. "description": "<p>新增动态</p>",
  1035. "group": "Interaction",
  1036. "permission": [
  1037. {
  1038. "name": "Passport"
  1039. }
  1040. ],
  1041. "version": "0.1.0",
  1042. "parameter": {
  1043. "fields": {
  1044. "Parameter": [
  1045. {
  1046. "group": "Parameter",
  1047. "type": "int",
  1048. "optional": false,
  1049. "field": "id",
  1050. "description": "<p>梦想ID</p>"
  1051. },
  1052. {
  1053. "group": "Parameter",
  1054. "type": "string",
  1055. "optional": false,
  1056. "field": "title",
  1057. "description": "<p>互动标题</p>"
  1058. },
  1059. {
  1060. "group": "Parameter",
  1061. "type": "array",
  1062. "optional": false,
  1063. "field": "pics[]",
  1064. "description": "<p>图片数组</p>"
  1065. }
  1066. ]
  1067. }
  1068. },
  1069. "success": {
  1070. "examples": [
  1071. {
  1072. "title": "Success-Response:",
  1073. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}",
  1074. "type": "json"
  1075. }
  1076. ]
  1077. },
  1078. "error": {
  1079. "examples": [
  1080. {
  1081. "title": "Error-Response:",
  1082. "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
  1083. "type": "json"
  1084. }
  1085. ]
  1086. },
  1087. "filename": "server/app/Http/Controllers/Api/V1/InteractionController.php",
  1088. "groupTitle": "Interaction",
  1089. "name": "PostApiInteractionStore"
  1090. },
  1091. {
  1092. "type": "get",
  1093. "url": "/api/my/bank/list",
  1094. "title": "我的银行账户",
  1095. "description": "<p>我的银行账户</p>",
  1096. "group": "My",
  1097. "permission": [
  1098. {
  1099. "name": "Passport"
  1100. }
  1101. ],
  1102. "version": "0.1.0",
  1103. "success": {
  1104. "examples": [
  1105. {
  1106. "title": "Success-Response:",
  1107. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[] or\n \"data\": [\n {\n \"id\": 1,\n \"user_id\": 1,\n \"bank_name\": \"1\",\n \"bank_number\": \"1\",\n \"bank_phone\": \"1\",\n \"bank_user\": \"1\"\n }\n]",
  1108. "type": "json"
  1109. }
  1110. ]
  1111. },
  1112. "error": {
  1113. "examples": [
  1114. {
  1115. "title": "Error-Response:",
  1116. "content": "HTTP/1.1 400 Bad Request",
  1117. "type": "json"
  1118. }
  1119. ]
  1120. },
  1121. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1122. "groupTitle": "My",
  1123. "name": "GetApiMyBankList"
  1124. },
  1125. {
  1126. "type": "get",
  1127. "url": "/api/my/care",
  1128. "title": "我关注的用户",
  1129. "description": "<p>我关注的用户</p>",
  1130. "group": "My",
  1131. "permission": [
  1132. {
  1133. "name": "Passport"
  1134. }
  1135. ],
  1136. "version": "0.1.0",
  1137. "success": {
  1138. "examples": [
  1139. {
  1140. "title": "Success-Response:",
  1141. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\":[] or\n \"data\": [\n {\n \"id\": 2,\n \"phone\": \"13880642881\",\n \"nickname\": \"name2\",\n \"avatar\": \"http://www.miao.com/upload/user/20170630/08e235d7211944e9b6482965b4d7c42e.jpg\",\n \"birthday\": \"2000-06-21\",\n \"sign\": 0,\n \"money\": 0,\n \"coin\": 800,\n \"sex\": 1,\n \"signture\": \"我的个性签名2\",\n \"height\": 200,\n \"work\": \"兼职\",\n \"emotion\": 2,\n \"address\": \"370105\",\n \"city\": \"成都\",\n \"detail_address\": \"\",\n \"status\": 1,\n \"wechat\": \"\",\n \"weibo\": \"\",\n \"remember_token\": \"\",\n \"created_at\": \"2017-06-25 10:42:06\",\n \"updated_at\": \"2017-06-30 09:15:04\",\n \"deleted_at\": null,\n }\n ]\n}",
  1142. "type": "json"
  1143. }
  1144. ]
  1145. },
  1146. "error": {
  1147. "examples": [
  1148. {
  1149. "title": "Error-Response:",
  1150. "content": "HTTP/1.1 400 Bad Request",
  1151. "type": "json"
  1152. }
  1153. ]
  1154. },
  1155. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1156. "groupTitle": "My",
  1157. "name": "GetApiMyCare"
  1158. },
  1159. {
  1160. "type": "get",
  1161. "url": "/api/my/cash/page",
  1162. "title": "提现页面",
  1163. "description": "<p>提现页面</p>",
  1164. "group": "My",
  1165. "permission": [
  1166. {
  1167. "name": "Passport"
  1168. }
  1169. ],
  1170. "version": "0.1.0",
  1171. "success": {
  1172. "examples": [
  1173. {
  1174. "title": "Success-Response:",
  1175. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 1,\n \"user_id\": 1,\n \"bank_name\": \"4\",\n \"bank_number\": \"3\",\n \"bank_phone\": \"2\",\n \"bank_user\": \"1\",\n \"created_at\": \"2017-08-14 18:09:03\",\n \"updated_at\": \"2017-08-14 18:09:03\"\n }\n ]\n}",
  1176. "type": "json"
  1177. }
  1178. ]
  1179. },
  1180. "error": {
  1181. "examples": [
  1182. {
  1183. "title": "Error-Response:",
  1184. "content": "HTTP/1.1 400 Bad Request",
  1185. "type": "json"
  1186. }
  1187. ]
  1188. },
  1189. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1190. "groupTitle": "My",
  1191. "name": "GetApiMyCashPage"
  1192. },
  1193. {
  1194. "type": "get",
  1195. "url": "/api/my/collection",
  1196. "title": "我的收藏",
  1197. "description": "<p>我的收藏</p>",
  1198. "group": "My",
  1199. "permission": [
  1200. {
  1201. "name": "Passport"
  1202. }
  1203. ],
  1204. "parameter": {
  1205. "fields": {
  1206. "Parameter": [
  1207. {
  1208. "group": "Parameter",
  1209. "type": "string",
  1210. "optional": true,
  1211. "field": "keyword",
  1212. "description": "<p>关键字可选</p>"
  1213. }
  1214. ]
  1215. }
  1216. },
  1217. "version": "0.1.0",
  1218. "success": {
  1219. "examples": [
  1220. {
  1221. "title": "Success-Response:",
  1222. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"data\": [\n { 梦想详情\n \"id\": 12,\n \"user_id\": 2,\n \"name\": \"用户2梦想标题166\",\n \"about\": \"用户2梦想介绍666\",\n \"coin\": 2500,\n \"time\": 21,\n \"get_coin\": 0,\n \"status\": 0,\n \"video\": null,\n \"sign\": \"\",\n },\n \"img\": {\n \"title\": \"\",\n \"pic\": \"https://f12f.jpg\" 梦想封面图片\n }\n ],\n \"users\": {\n \"2\": \"https://xxx.jpeg\" ID号和头像\n }\n }\n}\n keyword存在\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 2,\n \"user_id\": 1,\n \"dream_id\": 12,\n \"dream_user_id\": 2,\n \"interaction_number\": 0,\n \"created_at\": \"2017-06-25 13:11:45\",\n \"updated_at\": \"2017-06-25 13:11:45\",\n \"dreams\": [ 梦想\n {\n \"id\": 12,\n \"user_id\": 2,\n \"name\": \"用户2梦想标题166\",\n \"about\": \"用户2梦想介绍666\",\n \"coin\": 2500,\n \"end_time\": 72000,\n \"get_coin\": 792,\n \"mark\": 5484,\n \"status\": 0,\n \"video\": \"e\",\n \"score\": 158730,\n \"sign\": \"梦想达人\",\n \"created_at\": \"2017-06-25 13:10:56\",\n \"updated_at\": \"2017-06-28 16:53:39\"\n \"img\": { 图片\n \"title\": \"\",\n \"pic\": \"https://timgsa.baidu.com/timg9&di2f.jpg\"\n }\n }\n ]\n }\n ]\n }",
  1223. "type": "json"
  1224. }
  1225. ]
  1226. },
  1227. "error": {
  1228. "examples": [
  1229. {
  1230. "title": "Error-Response:",
  1231. "content": "HTTP/1.1 400 Bad Request",
  1232. "type": "json"
  1233. }
  1234. ]
  1235. },
  1236. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1237. "groupTitle": "My",
  1238. "name": "GetApiMyCollection"
  1239. },
  1240. {
  1241. "type": "get",
  1242. "url": "/api/my/dream",
  1243. "title": "我的梦想",
  1244. "description": "<p>我的梦想</p>",
  1245. "group": "My",
  1246. "permission": [
  1247. {
  1248. "name": "Passport"
  1249. }
  1250. ],
  1251. "version": "0.1.0",
  1252. "success": {
  1253. "examples": [
  1254. {
  1255. "title": "Success-Response:",
  1256. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": [\n {\n \"id\": 5,\n \"user_id\": 1,\n \"name\": \"梦想标题1\",\n \"about\": \"梦想介绍\",\n \"coin\": 2500,\n \"time\": 21,\n \"get_coin\": 0,\n \"status\": 0,\n \"video\": null,\n \"sign\": \"\",\n \"created_at\": \"2017-06-25 12:45:22\",\n \"updated_at\": \"2017-06-25 12:45:22\",\n \"pic\": \"https://timgsa.baidu.com/timg?image7b14f12f.jpg\",\n },\n ]\n}",
  1257. "type": "json"
  1258. }
  1259. ]
  1260. },
  1261. "error": {
  1262. "examples": [
  1263. {
  1264. "title": "Error-Response:",
  1265. "content": "HTTP/1.1 400 Bad Request",
  1266. "type": "json"
  1267. }
  1268. ]
  1269. },
  1270. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1271. "groupTitle": "My",
  1272. "name": "GetApiMyDream"
  1273. },
  1274. {
  1275. "type": "get",
  1276. "url": "/api/my/edit",
  1277. "title": "修改个人信息",
  1278. "description": "<p>修改个人信息</p>",
  1279. "group": "My",
  1280. "permission": [
  1281. {
  1282. "name": "Passport"
  1283. }
  1284. ],
  1285. "version": "0.1.0",
  1286. "success": {
  1287. "examples": [
  1288. {
  1289. "title": "Success-Response:",
  1290. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"emotion\": [\n {\n \"value\": \"1\",\n \"name\": \"未婚\"\n },\n {\n \"value\": \"2\",\n \"name\": \"已婚\"\n },\n {\n \"value\": \"3\",\n \"name\": \"离异\"\n }\n ],\n \"sex\": [\n {\n \"value\": \"0\",\n \"name\": \"男\"\n },\n {\n \"value\": \"1\",\n \"name\": \"女\"\n }\n ]\n }\n}",
  1291. "type": "json"
  1292. }
  1293. ]
  1294. },
  1295. "error": {
  1296. "examples": [
  1297. {
  1298. "title": "Error-Response:",
  1299. "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \"status_code\": 1500,\n \"message\": \"会员不存在\",\n \"data\": null\n }",
  1300. "type": "json"
  1301. }
  1302. ]
  1303. },
  1304. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1305. "groupTitle": "My",
  1306. "name": "GetApiMyEdit"
  1307. },
  1308. {
  1309. "type": "get",
  1310. "url": "/api/my/setting",
  1311. "title": "设置",
  1312. "description": "<p>设置</p>",
  1313. "group": "My",
  1314. "permission": [
  1315. {
  1316. "name": "Passport"
  1317. }
  1318. ],
  1319. "version": "0.1.0",
  1320. "success": {
  1321. "examples": [
  1322. {
  1323. "title": "Success-Response:",
  1324. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"key\": \"2511789\", 电话\n \"value\": \"关于喵喵介绍\" 关于喵喵\n }\n}",
  1325. "type": "json"
  1326. }
  1327. ]
  1328. },
  1329. "error": {
  1330. "examples": [
  1331. {
  1332. "title": "Error-Response:",
  1333. "content": "HTTP/1.1 400 Bad Request",
  1334. "type": "json"
  1335. }
  1336. ]
  1337. },
  1338. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1339. "groupTitle": "My",
  1340. "name": "GetApiMySetting"
  1341. },
  1342. {
  1343. "type": "get",
  1344. "url": "/api/my/show",
  1345. "title": "个人首页",
  1346. "description": "<p>个人首页</p>",
  1347. "group": "My",
  1348. "permission": [
  1349. {
  1350. "name": "Passport"
  1351. }
  1352. ],
  1353. "success": {
  1354. "examples": [
  1355. {
  1356. "title": "Success-Response:",
  1357. "content": "HTTP/1.1 200 O* \"status\": true,\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"id\": 1,\n \"phone\": \"13880642880\",\n \"nickname\": \"name1\",\n \"avatar\": \"https://tims%2Fitem%225_kzrcM.thumb.224_0.jpeg\",\n \"birthday\": \"2000-06-21\",\n \"sign\": 0,\n \"money\": 0,\n \"coin\": 1300,\n \"sex\": 1,\n \"signture\": \"\",\n \"height\": 170,\n \"work\": \"\",\n \"emotion\": 1,\n \"address\": \"\",\n \"city\": \"\",\n \"detail_address\": \"\",\n \"status\": 1,\n \"wechat\": \"\",\n \"weibo\": \"\",\n \"remember_token\": \"\",\n \"created_at\": \"2017-06-25 10:27:08\",\n \"updated_at\": \"2017-06-25 15:20:11\",\n \"deleted_at\": null,\n \"care_dreams_number\": 2,\n \"fans_number\": 0,\n \"collection_number\": 0,\n \"interaction_number\": 0,\n }\n}",
  1358. "type": "json"
  1359. }
  1360. ]
  1361. },
  1362. "error": {
  1363. "examples": [
  1364. {
  1365. "title": "Error-Response:",
  1366. "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"user\": null\n }\n}",
  1367. "type": "json"
  1368. }
  1369. ]
  1370. },
  1371. "version": "0.0.0",
  1372. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1373. "groupTitle": "My",
  1374. "name": "GetApiMyShow"
  1375. },
  1376. {
  1377. "type": "get",
  1378. "url": "/api/my/system_info",
  1379. "title": "系统消息",
  1380. "description": "<p>系统消息</p>",
  1381. "group": "My",
  1382. "permission": [
  1383. {
  1384. "name": "Passport"
  1385. }
  1386. ],
  1387. "version": "0.1.0",
  1388. "success": {
  1389. "examples": [
  1390. {
  1391. "title": "Success-Response:",
  1392. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"data\": [\n ...\n ]\n}",
  1393. "type": "json"
  1394. }
  1395. ]
  1396. },
  1397. "error": {
  1398. "examples": [
  1399. {
  1400. "title": "Error-Response:",
  1401. "content": "HTTP/1.1 400 Bad Request",
  1402. "type": "json"
  1403. }
  1404. ]
  1405. },
  1406. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1407. "groupTitle": "My",
  1408. "name": "GetApiMySystem_info"
  1409. },
  1410. {
  1411. "type": "post",
  1412. "url": "/api/my/bank/create",
  1413. "title": "添加银行卡",
  1414. "description": "<p>添加银行卡</p>",
  1415. "group": "My",
  1416. "parameter": {
  1417. "fields": {
  1418. "Parameter": [
  1419. {
  1420. "group": "Parameter",
  1421. "type": "string",
  1422. "optional": false,
  1423. "field": "data[bank_name]",
  1424. "description": "<p>银行名称</p>"
  1425. },
  1426. {
  1427. "group": "Parameter",
  1428. "type": "string",
  1429. "optional": false,
  1430. "field": "data[bank_number]",
  1431. "description": "<p>银行卡号</p>"
  1432. },
  1433. {
  1434. "group": "Parameter",
  1435. "type": "int",
  1436. "optional": false,
  1437. "field": "data[bank_phone]",
  1438. "description": "<p>银行卡绑定手机号</p>"
  1439. },
  1440. {
  1441. "group": "Parameter",
  1442. "type": "string",
  1443. "optional": false,
  1444. "field": "data[bank_user]",
  1445. "description": "<p>银行卡用户姓名</p>"
  1446. }
  1447. ]
  1448. }
  1449. },
  1450. "permission": [
  1451. {
  1452. "name": "Passport"
  1453. }
  1454. ],
  1455. "version": "0.1.0",
  1456. "success": {
  1457. "examples": [
  1458. {
  1459. "title": "Success-Response:",
  1460. "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 200,\n \"message\": \"操作成功\",\n \"data\": null\n}",
  1461. "type": "json"
  1462. }
  1463. ]
  1464. },
  1465. "error": {
  1466. "examples": [
  1467. {
  1468. "title": "Error-Response:",
  1469. "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
  1470. "type": "json"
  1471. }
  1472. ]
  1473. },
  1474. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1475. "groupTitle": "My",
  1476. "name": "PostApiMyBankCreate"
  1477. },
  1478. {
  1479. "type": "post",
  1480. "url": "/api/my/bank/delete",
  1481. "title": "删除银行卡",
  1482. "description": "<p>删除银行卡</p>",
  1483. "group": "My",
  1484. "parameter": {
  1485. "fields": {
  1486. "Parameter": [
  1487. {
  1488. "group": "Parameter",
  1489. "type": "int",
  1490. "optional": false,
  1491. "field": "id",
  1492. "description": "<p>银行卡id</p>"
  1493. }
  1494. ]
  1495. }
  1496. },
  1497. "permission": [
  1498. {
  1499. "name": "Passport"
  1500. }
  1501. ],
  1502. "version": "0.1.0",
  1503. "success": {
  1504. "examples": [
  1505. {
  1506. "title": "Success-Response:",
  1507. "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 200,\n \"message\": \"操作成功\",\n \"data\": null\n}",
  1508. "type": "json"
  1509. }
  1510. ]
  1511. },
  1512. "error": {
  1513. "examples": [
  1514. {
  1515. "title": "Error-Response:",
  1516. "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
  1517. "type": "json"
  1518. }
  1519. ]
  1520. },
  1521. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1522. "groupTitle": "My",
  1523. "name": "PostApiMyBankDelete"
  1524. },
  1525. {
  1526. "type": "post",
  1527. "url": "/api/my/cash",
  1528. "title": "提现",
  1529. "description": "<p>提现</p>",
  1530. "group": "My",
  1531. "parameter": {
  1532. "fields": {
  1533. "Parameter": [
  1534. {
  1535. "group": "Parameter",
  1536. "type": "int",
  1537. "optional": false,
  1538. "field": "data[bank_id]",
  1539. "description": "<p>银行卡号id</p>"
  1540. },
  1541. {
  1542. "group": "Parameter",
  1543. "type": "int",
  1544. "optional": false,
  1545. "field": "data[cash]",
  1546. "description": "<p>银行卡号id</p>"
  1547. }
  1548. ]
  1549. }
  1550. },
  1551. "permission": [
  1552. {
  1553. "name": "Passport"
  1554. }
  1555. ],
  1556. "version": "0.1.0",
  1557. "success": {
  1558. "examples": [
  1559. {
  1560. "title": "Success-Response:",
  1561. "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 1413,\n \"message\": \"系统审核中\",\n \"data\": null\n}",
  1562. "type": "json"
  1563. }
  1564. ]
  1565. },
  1566. "error": {
  1567. "examples": [
  1568. {
  1569. "title": "Error-Response:",
  1570. "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
  1571. "type": "json"
  1572. }
  1573. ]
  1574. },
  1575. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1576. "groupTitle": "My",
  1577. "name": "PostApiMyCash"
  1578. },
  1579. {
  1580. "type": "post",
  1581. "url": "/api/my/recharge",
  1582. "title": "充值",
  1583. "description": "<p>充值</p>",
  1584. "group": "My",
  1585. "parameter": {
  1586. "fields": {
  1587. "Parameter": [
  1588. {
  1589. "group": "Parameter",
  1590. "type": "int",
  1591. "optional": false,
  1592. "field": "coin",
  1593. "description": "<p>充值金额</p>"
  1594. }
  1595. ]
  1596. }
  1597. },
  1598. "permission": [
  1599. {
  1600. "name": "Passport"
  1601. }
  1602. ],
  1603. "version": "0.1.0",
  1604. "success": {
  1605. "examples": [
  1606. {
  1607. "title": "Success-Response:",
  1608. "content": "HTTP/1.1 200 OK",
  1609. "type": "json"
  1610. }
  1611. ]
  1612. },
  1613. "error": {
  1614. "examples": [
  1615. {
  1616. "title": "Error-Response:",
  1617. "content": "HTTP/1.1 400 Bad Request",
  1618. "type": "json"
  1619. }
  1620. ]
  1621. },
  1622. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1623. "groupTitle": "My",
  1624. "name": "PostApiMyRecharge"
  1625. },
  1626. {
  1627. "type": "post",
  1628. "url": "/api/my/suggest",
  1629. "title": "联系客服",
  1630. "description": "<p>联系客服</p>",
  1631. "group": "My",
  1632. "parameter": {
  1633. "fields": {
  1634. "Parameter": [
  1635. {
  1636. "group": "Parameter",
  1637. "type": "string",
  1638. "optional": false,
  1639. "field": "data[content]",
  1640. "description": "<p>内容</p>"
  1641. },
  1642. {
  1643. "group": "Parameter",
  1644. "type": "string",
  1645. "optional": false,
  1646. "field": "data[email]",
  1647. "description": "<p>邮箱</p>"
  1648. }
  1649. ]
  1650. }
  1651. },
  1652. "permission": [
  1653. {
  1654. "name": "Passport"
  1655. }
  1656. ],
  1657. "version": "0.1.0",
  1658. "success": {
  1659. "examples": [
  1660. {
  1661. "title": "Success-Response:",
  1662. "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 200,\n \"message\": \"操作成功\",\n \"data\": null\n}",
  1663. "type": "json"
  1664. }
  1665. ]
  1666. },
  1667. "error": {
  1668. "examples": [
  1669. {
  1670. "title": "Error-Response:",
  1671. "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
  1672. "type": "json"
  1673. }
  1674. ]
  1675. },
  1676. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1677. "groupTitle": "My",
  1678. "name": "PostApiMySuggest"
  1679. },
  1680. {
  1681. "type": "post",
  1682. "url": "/api/my/update",
  1683. "title": "保存个人信息",
  1684. "description": "<p>保存个人信息</p>",
  1685. "parameter": {
  1686. "fields": {
  1687. "Parameter": [
  1688. {
  1689. "group": "Parameter",
  1690. "type": "string",
  1691. "optional": false,
  1692. "field": "pic",
  1693. "description": "<p>头像</p>"
  1694. },
  1695. {
  1696. "group": "Parameter",
  1697. "type": "int",
  1698. "optional": false,
  1699. "field": "sex",
  1700. "description": "<p>性别</p>"
  1701. },
  1702. {
  1703. "group": "Parameter",
  1704. "type": "string",
  1705. "optional": false,
  1706. "field": "signture",
  1707. "description": "<p>个性签名</p>"
  1708. },
  1709. {
  1710. "group": "Parameter",
  1711. "type": "int",
  1712. "optional": false,
  1713. "field": "emotion",
  1714. "description": "<p>情感状态</p>"
  1715. },
  1716. {
  1717. "group": "Parameter",
  1718. "type": "string",
  1719. "optional": false,
  1720. "field": "work",
  1721. "description": "<p>职业</p>"
  1722. },
  1723. {
  1724. "group": "Parameter",
  1725. "type": "int",
  1726. "optional": false,
  1727. "field": "height",
  1728. "description": "<p>身高</p>"
  1729. }
  1730. ]
  1731. }
  1732. },
  1733. "group": "My",
  1734. "permission": [
  1735. {
  1736. "name": "Passport"
  1737. }
  1738. ],
  1739. "version": "0.1.0",
  1740. "success": {
  1741. "examples": [
  1742. {
  1743. "title": "Success-Response:",
  1744. "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}",
  1745. "type": "json"
  1746. }
  1747. ]
  1748. },
  1749. "error": {
  1750. "examples": [
  1751. {
  1752. "title": "Error-Response:",
  1753. "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \"status_code\": 600,\n \"message\": \"保存用户数据失败\",\n \"data\": null\n}",
  1754. "type": "json"
  1755. }
  1756. ]
  1757. },
  1758. "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
  1759. "groupTitle": "My",
  1760. "name": "PostApiMyUpdate"
  1761. }
  1762. ] });