123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778 |
- [
- {
- "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": "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": "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 \"real\": \"真实路径\"\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": "app/Http/Controllers/Api/V1/AttachmentController.php",
- "groupTitle": "Attachment",
- "name": "PostApiAttachmentUpload"
- },
- {
- "type": "post",
- "url": "/api//login",
- "title": "登陆(login)",
- "description": "<p>登陆(login)login</p>",
- "group": "Auth",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "nickname",
- "description": "<p>手机号码</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "avatar",
- "description": ""
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "password",
- "description": "<p>password</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 1102 INCORRECT_USER_OR_PASS 用户名或密码不正确",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/LoginController.php",
- "groupTitle": "Auth",
- "name": "PostApiLogin"
- },
- {
- "type": "get",
- "url": "/api/index/get_message",
- "title": "获取知识(indexGetMessage)",
- "description": "<p>获取知识(indexMenu)indexGetMessage</p>",
- "group": "Index",
- "permission": [
- {
- "name": "none"
- }
- ],
- "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": "type",
- "description": "<p>知识类型 1 悬赏 2 付费</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 \"msg\": \"获取成功\"\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": "app/Http/Controllers/Api/V1/IndexController.php",
- "groupTitle": "Index",
- "name": "GetApiIndexGet_message"
- },
- {
- "type": "get",
- "url": "/api/index/menu",
- "title": "知识列表(indexMenu)",
- "description": "<p>知识列表(indexMenu)indexMenu</p>",
- "group": "Index",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "tag_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 \"menu\": [\n {\n \"id\": 4,\n \"name\": \"标签4\",\n \"sort\": 4,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:04:31\",\n \"updated_at\": \"2018-07-12 17:04:34\"\n }\n ],\n \"message\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 0,\n \"owner\": \"Richod\"\n }\n ],\n \"first_page_url\": \"http://zsff.xcx.com/api/index/menu?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://zsff.xcx.com/api/index/menu?page=1\",\n \"next_page_url\": null,\n \"path\": \"http://zsff.xcx.com/api/index/menu\",\n \"per_page\": 1,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n }\n}",
- "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": "app/Http/Controllers/Api/V1/IndexController.php",
- "groupTitle": "Index",
- "name": "GetApiIndexMenu"
- },
- {
- "type": "get",
- "url": "/api/index/message",
- "title": "知识详情(indexMessage)",
- "description": "<p>知识详情(indexMenu)indexMessage</p>",
- "group": "Index",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "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 \"message\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"content\": \"爱我的\",\n \"user_id\": 1,\n \"price\": 0,\n \"phone\": \"18228068397\",\n \"comment\": \"瓦坎达入口\",\n \"type\": 0,\n \"sort\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:06:23\",\n \"updated_at\": \"2018-07-12 17:06:26\",\n \"state\": 0,\n \"is_pay\": \"是否需要付费 0 需要付费 1 不需要\"\n }\n }\n}",
- "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": "app/Http/Controllers/Api/V1/IndexController.php",
- "groupTitle": "Index",
- "name": "GetApiIndexMessage"
- },
- {
- "type": "get",
- "url": "/api/index/tag",
- "title": "筛选标签(indexTag)",
- "description": "<p>筛选标签(indexTag)indexTag</p>",
- "group": "Index",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "keywords",
- "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\": 1,\n \"name\": \"标签1\",\n \"sort\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:03:07\",\n \"updated_at\": \"2018-07-12 17:03:11\"\n }\n ]\n}",
- "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": "app/Http/Controllers/Api/V1/IndexController.php",
- "groupTitle": "Index",
- "name": "GetApiIndexTag"
- },
- {
- "type": "get",
- "url": "/api/user/complete_message",
- "title": "结束悬赏(userCompleteMessages)",
- "description": "<p>结束悬赏(userCompleteMessages)userCompleteMessages</p>",
- "group": "User",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "message_id",
- "description": "<p>知识id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "follower_id",
- "description": "<p>悬赏者信息id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "type",
- "description": "<p>操作类型 1 添加 0 删除</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 \"msg\": \"添加成功\"\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": "app/Http/Controllers/Api/V1/UserController.php",
- "groupTitle": "User",
- "name": "GetApiUserComplete_message"
- },
- {
- "type": "get",
- "url": "/api/user/edit_favorite",
- "title": "添加/删除收藏(userEditFavorite)",
- "description": "<p>添加/删除收藏(userEditFavorite)userEditFavorite</p>",
- "group": "User",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "message_id",
- "description": "<p>知识id</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "type",
- "description": "<p>操作类型 1 添加 0 删除</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 \"msg\": \"添加成功\"\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": "app/Http/Controllers/Api/V1/UserController.php",
- "groupTitle": "User",
- "name": "GetApiUserEdit_favorite"
- },
- {
- "type": "get",
- "url": "/api/user/favorite",
- "title": "添加/删除收藏(userFavorite)",
- "description": "<p>添加/删除收藏(userFavorite)userFavorite</p>",
- "group": "User",
- "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 \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 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}",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/UserController.php",
- "groupTitle": "User",
- "name": "GetApiUserFavorite"
- },
- {
- "type": "get",
- "url": "/api/user/get_message",
- "title": "我的参与(userGetMessages)",
- "description": "<p>我的参与(userGetMessages)userGetMessages</p>",
- "group": "User",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "state",
- "description": "<p>类型 -1 全部 0 免费 1 悬赏 2 付费</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 \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 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}",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/UserController.php",
- "groupTitle": "User",
- "name": "GetApiUserGet_message"
- },
- {
- "type": "get",
- "url": "/api/user/message_detail",
- "title": "我的发布详情(userMessageDetail)",
- "description": "<p>我的发布详情(userMessageDetail)userMessageDetail</p>",
- "group": "User",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "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 \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"content\": \"爱我的\",\n \"user_id\": 1,\n \"price\": 1,\n \"phone\": \"18228068397\",\n \"comment\": \"瓦坎达入口\",\n \"type\": 1,\n \"sort\": 1,\n \"deleted_at\": null,\n \"created_at\": \"2018-07-12 17:06:23\",\n \"updated_at\": \"2018-07-12 17:06:26\",\n \"state\": 0,\n \"pic_url\": \"\",\n \"followers_num\": 1,\n \"followers\": [\n {\n \"id\": 5,\n \"messages_id\": 1,\n \"user_id\": 1,\n \"username\": \"Richod\",\n \"mobile\": \"1111\",\n \"deleted_at\": null,\n \"created_at\": \"2018-07-17 09:21:18\",\n \"updated_at\": \"2018-07-17 09:21:18\",\n \"state\": 0\n }\n ],\n \"income\": \"\"\n }\n }\n}",
- "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": "app/Http/Controllers/Api/V1/UserController.php",
- "groupTitle": "User",
- "name": "GetApiUserMessage_detail"
- },
- {
- "type": "get",
- "url": "/api/user/my_message",
- "title": "我的发布(userMyMessage)",
- "description": "<p>我的发布(userMyMessage)userMyMessage</p>",
- "group": "User",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "state",
- "description": "<p>类型 -1 全部 0 免费 1 悬赏 2 付费</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 \"messages\": {\n \"id\": 1,\n \"title\": \"爱我的\",\n \"type\": 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}",
- "type": "json"
- }
- ]
- },
- "filename": "app/Http/Controllers/Api/V1/UserController.php",
- "groupTitle": "User",
- "name": "GetApiUserMy_message"
- },
- {
- "type": "post",
- "url": "/api/user/release",
- "title": "发布知识(userRelease)",
- "description": "<p>发布知识(userRelease)userRelease</p>",
- "group": "User",
- "permission": [
- {
- "name": "none"
- }
- ],
- "version": "0.1.0",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "text",
- "optional": false,
- "field": "content",
- "description": "<p>内容</p>"
- },
- {
- "group": "Parameter",
- "type": "string",
- "optional": false,
- "field": "title",
- "description": "<p>标题</p>"
- },
- {
- "group": "Parameter",
- "type": "number",
- "optional": false,
- "field": "price",
- "description": "<p>价格</p>"
- },
- {
- "group": "Parameter",
- "type": "int",
- "optional": false,
- "field": "type",
- "description": "<p>知识类型 1 悬赏 2 付费 0免费</p>"
- },
- {
- "group": "Parameter",
- "type": "text",
- "optional": false,
- "field": "pic_url",
- "description": "<p>图片</p>"
- },
- {
- "group": "Parameter",
- "type": "array",
- "optional": false,
- "field": "tag",
- "description": "<p>['id'] 标签ID tag['name'] 标签内容</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 \"msg\": \"添加成功\"\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": "app/Http/Controllers/Api/V1/UserController.php",
- "groupTitle": "User",
- "name": "PostApiUserRelease"
- }
- ]
|