1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762 |
- define({ "api": [
- {
- "type": "get",
- "url": "/api/attachment/delete/{md5}",
- "title": "删除文件(图片)",
- "description": "<p>删除文件(图片)</p>",
- "group": "Attachment",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "md5",
- "description": "<p>图片md5码</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"result\": true/false\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 附件不存在",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/AttachmentController.php",
- "groupTitle": "Attachment",
- "name": "GetApiAttachmentDeleteMd5"
- },
- {
- "type": "get",
- "url": "/api/attachment/download/{md5}",
- "title": "下载文件(图片)",
- "description": "<p>下载文件(图片)(get code)</p>",
- "group": "Attachment",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "md5",
- "description": "<p>图片md5码</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n 文件二进制码\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 404 Not found",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/AttachmentController.php",
- "groupTitle": "Attachment",
- "name": "GetApiAttachmentDownloadMd5"
- },
- {
- "type": "post",
- "url": "/api/attachment/upload",
- "title": "通用上传接口",
- "description": "<p>通用上传接口</p>",
- "group": "Attachment",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "tag",
- "description": "<p>附件标签 avatar video dream</p>"
- },
- {
- "group": "Parameter",
- "type": "File",
- "optional": false,
- "field": "file",
- "description": "<p>附件(可以多个,使用file.xxx,可返回多个)[默认大小【10M】, 类型图片png jpg gif,视频类型mp4]</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 附件不存在",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/AttachmentController.php",
- "groupTitle": "Attachment",
- "name": "PostApiAttachmentUpload"
- },
- {
- "type": "get",
- "url": "/api/auth/logout",
- "title": "退出(logout)",
- "description": "<p>退出(logout)</p>",
- "group": "Auth",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"result\": true/false\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 退出失败",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/AuthController.php",
- "groupTitle": "Auth",
- "name": "GetApiAuthLogout"
- },
- {
- "type": "post",
- "url": "/api/auth/avatar",
- "title": "上传头像(avatar)",
- "description": "<p>上传头像(reset)</p>",
- "group": "Auth",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "File",
- "optional": false,
- "field": "avatar",
- "description": "<p>头像图片</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"md5\": \"fdf8dd78eb383b8acf6d94d4752c1424\",\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 附件不存在",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/AuthController.php",
- "groupTitle": "Auth",
- "name": "PostApiAuthAvatar"
- },
- {
- "type": "post",
- "url": "/api/auth/code",
- "title": "获取验证码(get code)",
- "description": "<p>获取验证码(get code),验证码有效期暂定为15分钟</p>",
- "group": "Auth",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "phone",
- "description": "<p>手机</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"state\": true,\n \"code\": 0,\n \"message\": \"\",\n \"data\": {\n \"verify_code\": \"1234\"//该值调试时使用,sms调通后取消\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 传入参数不正确",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/AuthController.php",
- "groupTitle": "Auth",
- "name": "PostApiAuthCode"
- },
- {
- "type": "post",
- "url": "/api/auth/login",
- "title": "登陆(login)",
- "description": "<p>登陆(login)</p>",
- "group": "Auth",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "phone",
- "description": "<p>手机号码</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "verify_code",
- "description": "<p>手机验证码</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 验证码错误",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/AuthController.php",
- "groupTitle": "Auth",
- "name": "PostApiAuthLogin"
- },
- {
- "type": "get",
- "url": "/api/dream/collection",
- "title": "收藏梦想",
- "description": "<p>收藏梦想</p>",
- "group": "Dream",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>梦想ID</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "is_collection",
- "description": "<p>0取消关注 1关注</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
- "groupTitle": "Dream",
- "name": "GetApiDreamCollection"
- },
- {
- "type": "get",
- "url": "/api/dream/search",
- "title": "梦想搜索",
- "description": "<p>梦想搜索)</p>",
- "group": "Dream",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "keyword",
- "description": "<p>关键字</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
- "groupTitle": "Dream",
- "name": "GetApiDreamSearch"
- },
- {
- "type": "get",
- "url": "/api/dream/show",
- "title": "梦想详情",
- "description": "<p>梦想详情</p>",
- "group": "Dream",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "type",
- "defaultValue": "home",
- "description": "<p>home interaction paihang 默认all</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>梦想ID</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \"status_code\": 1105,\n \"message\": \"用户不存在\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
- "groupTitle": "Dream",
- "name": "GetApiDreamShow"
- },
- {
- "type": "get",
- "url": "/api/user/care",
- "title": "关注用户",
- "description": "<p>关注用户</p>",
- "group": "Dream",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>用户ID</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "is_care",
- "description": "<p>0取消关注 1关注</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n 1 1已关注 0 未关注\n }\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/HomeController.php",
- "groupTitle": "Dream",
- "name": "GetApiUserCare"
- },
- {
- "type": "post",
- "url": "/api/dream/store",
- "title": "发布梦想",
- "description": "<p>发布梦想</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "pics",
- "description": "<p>梦想图片 数组</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "video",
- "description": "<p>梦想视频</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "name",
- "description": "<p>梦想标题</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "about",
- "description": "<p>梦想介绍</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "coin",
- "description": "<p>梦想币</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "time",
- "description": "<p>实现时间默认21*3600</p>"
- }
- ]
- }
- },
- "group": "Dream",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}\nHTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "{\n \"status\": false,\n \"status_code\": 1203,\n \"message\": \"附件不存在\",\n \"data\": null\n}\nHTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
- "groupTitle": "Dream",
- "name": "PostApiDreamStore"
- },
- {
- "type": "post",
- "url": "/api/dream/support",
- "title": "支持梦想",
- "description": "<p>支持梦想</p>",
- "group": "Dream",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "coin",
- "description": "<p>支持梦想币数量</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>梦想ID</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/DreamController.php",
- "groupTitle": "Dream",
- "name": "PostApiDreamSupport"
- },
- {
- "type": "get",
- "url": "/api/user/meet/",
- "title": "见面",
- "description": "<p>见面</p>",
- "group": "Home",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "dream_id",
- "description": "<p>梦想id</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n {\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n {\n \"status\": false,\n \"status_code\": 1412,\n \"message\": \"梦想暂未实现\", /梦想不存在/不是最大支持者\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/HomeController.php",
- "groupTitle": "Home",
- "name": "GetApiUserMeet"
- },
- {
- "type": "get",
- "url": "/api/user/show/",
- "title": "用户信息",
- "description": "<p>用户信息</p>",
- "group": "Home",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "user_id",
- "description": "<p>用户ID</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \" status_code\": 1105,\n \"message\": \"用户不存在\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/HomeController.php",
- "groupTitle": "Home",
- "name": "GetApiUserShow"
- },
- {
- "type": "get",
- "url": "/api/index/home",
- "title": "首页",
- "description": "<p>首页</p>",
- "group": "Index",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "type",
- "defaultValue": "hot",
- "description": "<p>(热门)hot/(潮流)trend/(最新)news</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": true,
- "field": "page",
- "defaultValue": "1",
- "description": "<p>页码(分页参数)</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/IndexController.php",
- "groupTitle": "Index",
- "name": "GetApiIndexHome"
- },
- {
- "type": "get",
- "url": "/api/index/search",
- "title": "搜索",
- "description": "<p>搜索</p>",
- "group": "Index",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "keyword",
- "description": "<p>关键字可选 (ha/name)</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/IndexController.php",
- "groupTitle": "Index",
- "name": "GetApiIndexSearch"
- },
- {
- "type": "get",
- "url": "/api/index/user_search",
- "title": "用户搜索",
- "description": "<p>用户搜索</p>",
- "group": "Index",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "keyword",
- "description": "<p>关键字</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/IndexController.php",
- "groupTitle": "Index",
- "name": "GetApiIndexUser_search"
- },
- {
- "type": "post",
- "url": "/api/interaction/comment",
- "title": "评论动态",
- "description": "<p>评论动态</p>",
- "group": "Interaction",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>动态ID不存在</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "content",
- "description": "<p>内容不能为空</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/InteractionController.php",
- "groupTitle": "Interaction",
- "name": "PostApiInteractionComment"
- },
- {
- "type": "post",
- "url": "/api/interaction/reply",
- "title": "我的回复",
- "description": "<p>我的回复</p>",
- "group": "Interaction",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "text",
- "optional": false,
- "field": "content",
- "description": "<p>回复内容</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "comment_id",
- "description": "<p>评论ID</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}\nHTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "{\n \"status\": false,\n \"status_code\": 1000,\n \"message\": \"输入不正确\",\n \"data\": null\n}\nHTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/InteractionController.php",
- "groupTitle": "Interaction",
- "name": "PostApiInteractionReply"
- },
- {
- "type": "post",
- "url": "/api/interaction/store",
- "title": "新增动态",
- "description": "<p>新增动态</p>",
- "group": "Interaction",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>梦想ID</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "title",
- "description": "<p>互动标题</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": false,
- "field": "pics[]",
- "description": "<p>图片数组</p>"
- }
- ]
- }
- },
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"state\": false,\n \"code\": 1000,\n \"message\": \"传入参数不正确\",\n \"data\": null or []\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/InteractionController.php",
- "groupTitle": "Interaction",
- "name": "PostApiInteractionStore"
- },
- {
- "type": "get",
- "url": "/api/my/bank/list",
- "title": "我的银行账户",
- "description": "<p>我的银行账户</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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]",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyBankList"
- },
- {
- "type": "get",
- "url": "/api/my/care",
- "title": "我关注的用户",
- "description": "<p>我关注的用户</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyCare"
- },
- {
- "type": "get",
- "url": "/api/my/cash/page",
- "title": "提现页面",
- "description": "<p>提现页面</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyCashPage"
- },
- {
- "type": "get",
- "url": "/api/my/collection",
- "title": "我的收藏",
- "description": "<p>我的收藏</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": true,
- "field": "keyword",
- "description": "<p>关键字可选</p>"
- }
- ]
- }
- },
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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 }",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyCollection"
- },
- {
- "type": "get",
- "url": "/api/my/dream",
- "title": "我的梦想",
- "description": "<p>我的梦想</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyDream"
- },
- {
- "type": "get",
- "url": "/api/my/edit",
- "title": "修改个人信息",
- "description": "<p>修改个人信息</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \"status_code\": 1500,\n \"message\": \"会员不存在\",\n \"data\": null\n }",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyEdit"
- },
- {
- "type": "get",
- "url": "/api/my/setting",
- "title": "设置",
- "description": "<p>设置</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMySetting"
- },
- {
- "type": "get",
- "url": "/api/my/show",
- "title": "个人首页",
- "description": "<p>个人首页</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "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}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"user\": null\n }\n}",
- "type": "json"
- }
- ]
- },
- "version": "0.0.0",
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMyShow"
- },
- {
- "type": "get",
- "url": "/api/my/system_info",
- "title": "系统消息",
- "description": "<p>系统消息</p>",
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": {\n \"data\": [\n ...\n ]\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "GetApiMySystem_info"
- },
- {
- "type": "post",
- "url": "/api/my/bank/create",
- "title": "添加银行卡",
- "description": "<p>添加银行卡</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "data[bank_name]",
- "description": "<p>银行名称</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "data[bank_number]",
- "description": "<p>银行卡号</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "data[bank_phone]",
- "description": "<p>银行卡绑定手机号</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "data[bank_user]",
- "description": "<p>银行卡用户姓名</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 200,\n \"message\": \"操作成功\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "PostApiMyBankCreate"
- },
- {
- "type": "post",
- "url": "/api/my/bank/delete",
- "title": "删除银行卡",
- "description": "<p>删除银行卡</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "id",
- "description": "<p>银行卡id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 200,\n \"message\": \"操作成功\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "PostApiMyBankDelete"
- },
- {
- "type": "post",
- "url": "/api/my/cash",
- "title": "提现",
- "description": "<p>提现</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "data[bank_id]",
- "description": "<p>银行卡号id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "data[cash]",
- "description": "<p>银行卡号id</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 1413,\n \"message\": \"系统审核中\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "PostApiMyCash"
- },
- {
- "type": "post",
- "url": "/api/my/recharge",
- "title": "充值",
- "description": "<p>充值</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "coin",
- "description": "<p>充值金额</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "PostApiMyRecharge"
- },
- {
- "type": "post",
- "url": "/api/my/suggest",
- "title": "联系客服",
- "description": "<p>联系客服</p>",
- "group": "My",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "data[content]",
- "description": "<p>内容</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "data[email]",
- "description": "<p>邮箱</p>"
- }
- ]
- }
- },
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": false,\n \"status_code\": 200,\n \"message\": \"操作成功\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "{\n \"status\": false,\n \"status_code\": 700,\n \"message\": \"操作失败\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "PostApiMySuggest"
- },
- {
- "type": "post",
- "url": "/api/my/update",
- "title": "保存个人信息",
- "description": "<p>保存个人信息</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "pic",
- "description": "<p>头像</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "sex",
- "description": "<p>性别</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "signture",
- "description": "<p>个性签名</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "emotion",
- "description": "<p>情感状态</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "work",
- "description": "<p>职业</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "height",
- "description": "<p>身高</p>"
- }
- ]
- }
- },
- "group": "My",
- "permission": [
- {
- "name": "Passport"
- }
- ],
- "version": "0.1.0",
- "success": {
- "examples": [
- {
- "title": "Success-Response:",
- "content": "HTTP/1.1 200 OK\n{\n \"status\": true,\n \"status_code\": 0,\n \"message\": \"\",\n \"data\": \"\"\n}",
- "type": "json"
- }
- ]
- },
- "error": {
- "examples": [
- {
- "title": "Error-Response:",
- "content": "HTTP/1.1 400 Bad Request\n{\n \"status\": false,\n \"status_code\": 600,\n \"message\": \"保存用户数据失败\",\n \"data\": null\n}",
- "type": "json"
- }
- ]
- },
- "filename": "server/app/Http/Controllers/Api/V1/MyController.php",
- "groupTitle": "My",
- "name": "PostApiMyUpdate"
- }
- ] });
|