[ { "type": "get", "url": "v1/review.list", "title": "评论列表", "version": "1.0.0", "name": "review_list", "group": "Comment", "description": "

评论列表

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "session", "description": "

验证用户的session

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "type", "description": "

评论的类型:1为资讯2为课程

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "

评论的类型id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "review", "description": "

评论信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "review.id", "description": "

评论id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "review.content", "description": "

评论内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "review.cdate", "description": "

时间

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "review.user", "description": "

评论用户信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "review.user.id", "description": "

用户id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "review.user.pic", "description": "

用户头像

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "review.user.name", "description": "

用户昵称

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"uid\":1,\"session\":\"111\"}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Review.php", "groupTitle": "Comment" }, { "type": "get", "url": "v1/review.submit", "title": "提交新评论", "version": "1.0.0", "name": "review_submit", "group": "Comment", "description": "

用户提交新评论接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "session", "description": "

验证用户的session

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "type", "description": "

评论的类型:1为资讯2为课程

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "

评论的类型id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "content", "description": "

用户提交的评论内容

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Number", "optional": false, "field": "id", "description": "

评论id

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Review.php", "groupTitle": "Comment" }, { "type": "get", "url": "v1/share.reflux", "title": "分享回流", "version": "1.0.0", "name": "share_reflux", "group": "Comment", "description": "

用户分享回流接口,当path路径中有share_id时,请调用本接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "session", "description": "

验证用户的session

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "share_uid", "description": "

分享人的用户id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "share_id", "description": "

分享的id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "share_key", "description": "

分享的session

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Bool", "optional": false, "field": "state", "description": "

是否成功,无需关注这个接口返回值

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":true}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Share.php", "groupTitle": "Comment" }, { "type": "get", "url": "v1/share.submit", "title": "提交分享", "version": "1.0.0", "name": "share_submit", "group": "Comment", "description": "

用户提交分享接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "session", "description": "

验证用户的session

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "type", "description": "

分享的类型:1为资讯2为课程

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "

分享的类型id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "content", "description": "

分享的内容

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Number", "optional": false, "field": "share_uid", "description": "

用户id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "share_key", "description": "

分享的session

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "share_id", "description": "

分享的唯一id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "desc", "description": "

请将上述几个字段都放到分享的path中:/path/?share_uid=1&share_key=1&share_id=1

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"type\":1,\"id\":1,\"uid\":1,\"key\":\"11\", \"share_id\":1}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Share.php", "groupTitle": "Comment" }, { "type": "get", "url": "v1/vote.submit", "title": "提交点赞", "version": "1.0.0", "name": "vote_submit", "group": "Comment", "description": "

用户提交点赞数接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "session", "description": "

验证用户的session

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "type", "description": "

点赞的类型:1为资讯2为课程

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "

点赞的类型id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Number", "optional": false, "field": "id", "description": "

点赞id

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Vote.php", "groupTitle": "Comment" }, { "type": "get", "url": "v1/news.index", "title": "首页接口", "version": "1.0.0", "name": "api_index", "group": "Data", "description": "

小程序的首页接口

apiSampleRequest /v1/news.index

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "cate", "description": "

主栏目信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "cate.id", "description": "

栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate.name", "description": "

栏目名称

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "cate_child", "description": "

子栏目信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "cate_child.id", "description": "

栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate_child.name", "description": "

栏目名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "cate_child.cate_id", "description": "

上级栏目id

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "cate_child.news", "description": "

资讯信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "cate_child.news.id", "description": "

资讯id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate_child.news.name", "description": "

资讯标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate_child.news.content", "description": "

资讯内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate_child.news.num_view", "description": "

阅读数

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate_child.news.cdate", "description": "

时间

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "cate_child.news.author", "description": "

作者信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "cate_child.news.author.id", "description": "

作者id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate_child.news.author.name", "description": "

作者姓名

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "cate_child.news.author.pic", "description": "

作者头像

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"info\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u600e\\u4e48\\u641e\",\"cate_id\":\"1\",\"logo\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"title\":\"test\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"state\":\"1\",\"cdate\":\"1521858466\"},\"cate\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u4e0d\\u5f97\\u4e0d\\u5b66\\u4e60\\u7cfb\\u5217\",\"cate_id\":\"-1\",\"reorder\":\"1\",\"state\":\"1\",\"cdate\":\"1521814022\"},\"cate_child\":[{\"id\":\"3\",\"name\":\"\\u5341\\u5927\\u6848\\u4f8b\",\"cate_id\":\"1\",\"reorder\":\"1\",\"state\":\"1\",\"cdate\":\"1521858511\",\"news\":[{\"id\":\"1\",\"name\":\"\\u4e07\\u8fbe\\u57ce\\u521b\\u65b0\\u4e1a\\u6001\\u7814\\u7a76\\u62a5\\u544a\",\"pic\":[\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\"],\"top\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"cate_id\":\"3\",\"info_id\":\"1\",\"author_id\":\"1\",\"content\":\"

\\u5730\\u65b9\\u5927\\u5e45\\u5ea6\\u53d1<\\/p>\",\"num_view\":\"0\",\"cdate\":\"9\\u5c0f\\u65f6\\u524d\",\"author\":{\"id\":\"1\",\"name\":\"\\u7a0b\\u8302\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"state\":\"1\",\"cdate\":\"1521858481\"}}]},{\"id\":\"2\",\"name\":\"\\u5341\\u5927\\u680f\\u76ee\",\"cate_id\":\"1\",\"reorder\":\"1\",\"state\":\"1\",\"cdate\":\"1521858505\"}]},\"page\":{\"total\":\"1\",\"current_page\":1,\"total_page\":1,\"next_page\":1,\"prev_page\":1,\"html\":\"\",\"status\":0}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/News.php", "groupTitle": "Data" }, { "type": "get", "url": "v1/course.list", "title": "听课列表", "version": "1.0.0", "name": "course_list", "group": "Data", "description": "

小程序的听课列表接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "course", "description": "

听课信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "course.id", "description": "

听课id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.name", "description": "

听课标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.content", "description": "

听课内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.num_view", "description": "

阅读数

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.video", "description": "

视频地址

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.audio", "description": "

音频地址

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.cdate", "description": "

时间

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "course.author", "description": "

作者信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "course.author.id", "description": "

作者id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.author.name", "description": "

作者姓名

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.author.pic", "description": "

作者头像

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"info\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u600e\\u4e48\\u641e\",\"cate_id\":\"1\",\"logo\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"title\":\"test\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"state\":\"1\",\"cdate\":\"1521858466\"},\"course\":[{\"id\":\"1\",\"name\":\"\\u662f\\u662f\\u662f\",\"pic\":[\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\"],\"top\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"info_id\":\"1\",\"author_id\":\"1\",\"content\":\"

23132323<\\/p>\",\"num_view\":\"2\",\"cdate\":\"1\\u5206\\u949f\\u524d\",\"author\":{\"id\":\"1\",\"name\":\"\\u7a0b\\u8302\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"state\":\"1\",\"cdate\":\"1521858481\"}}]},\"page\":{\"total\":\"1\",\"current_page\":1,\"total_page\":1,\"next_page\":1,\"prev_page\":1,\"html\":\"\",\"status\":0}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Course.php", "groupTitle": "Data" }, { "type": "get", "url": "v1/course.view", "title": "课程详情", "version": "1.0.0", "name": "course_view", "group": "Data", "description": "

小程序的课程详情接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "

课程id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "course", "description": "

听课信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "course.id", "description": "

听课id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.name", "description": "

听课标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.content", "description": "

听课内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.num_view", "description": "

阅读数

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.video", "description": "

视频地址

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.audio", "description": "

音频地址

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.cdate", "description": "

时间

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "course.author", "description": "

作者信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "course.author.id", "description": "

作者id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.author.name", "description": "

作者姓名

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "course.author.pic", "description": "

作者头像

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"info\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u600e\\u4e48\\u641e\",\"cate_id\":\"1\",\"logo\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"title\":\"test\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"state\":\"1\",\"cdate\":\"1521858466\"},\"course\":{\"id\":\"1\",\"name\":\"\\u662f\\u662f\\u662f\",\"info_id\":\"1\",\"author_id\":\"1\",\"video\":\"123123\",\"audio\":\"3232\",\"num_add_view\":\"0\",\"num_up\":\"0\",\"num_view\":\"1\",\"num_review\":\"0\",\"pic\":[\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\"],\"top\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"content\":\"

23132323<\\/p>\",\"reorder\":\"1\",\"state\":\"1\",\"cdate\":\"42\\u79d2\\u524d\",\"author\":{\"id\":\"1\",\"name\":\"\\u7a0b\\u8302\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"state\":\"1\",\"cdate\":\"1521858481\"}}}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Course.php", "groupTitle": "Data" }, { "type": "get", "url": "v1/meeting.list", "title": "会议列表", "version": "1.0.0", "name": "meeting_list", "group": "Data", "description": "

小程序的会议列表接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "meeting", "description": "

听课信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "meeting.id", "description": "

听课id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.name", "description": "

听课标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.content", "description": "

听课内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.num_view", "description": "

阅读数

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.cdate", "description": "

时间

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"info\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u600e\\u4e48\\u641e\",\"cate_id\":\"1\",\"logo\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"title\":\"test\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"state\":\"1\",\"cdate\":\"1521858466\"},\"meeting\":[{\"id\":\"1\",\"name\":\"\\u6d4b\\u8bd5\",\"info_id\":\"1\",\"desc\":\"\\u98a0\\u4e09\\u5012\\u56db\",\"pic\":[\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\"],\"top\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"sdate\":\"1521734400\",\"edate\":\"1537804800\",\"content\":\"\",\"reorder\":\"1\",\"state\":\"1\",\"cdate\":\"4\\u5206\\u949f\\u524d\"}]},\"page\":{\"total\":\"1\",\"current_page\":1,\"total_page\":1,\"next_page\":1,\"prev_page\":1,\"html\":\"\",\"status\":0}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Meeting.php", "groupTitle": "Data" }, { "type": "get", "url": "v1/meeting.view", "title": "会议详情", "version": "1.0.0", "name": "meeting_view", "group": "Data", "description": "

小程序的会议详情接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "

会议id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "meeting", "description": "

听课信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "meeting.id", "description": "

听课id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.name", "description": "

听课标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.content", "description": "

听课内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.num_view", "description": "

阅读数

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "meeting.cdate", "description": "

时间

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"info\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u600e\\u4e48\\u641e\",\"cate_id\":\"1\",\"logo\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"title\":\"test\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"state\":\"1\",\"cdate\":\"1521858466\"},\"meeting\":{\"id\":\"1\",\"name\":\"\\u6d4b\\u8bd5\",\"info_id\":\"1\",\"desc\":\"\\u98a0\\u4e09\\u5012\\u56db\",\"pic\":[\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\"],\"top\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"sdate\":\"1521734400\",\"edate\":\"1537804800\",\"content\":\"\",\"reorder\":\"1\",\"state\":\"1\",\"cdate\":\"4\\u5206\\u949f\\u524d\"}}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Meeting.php", "groupTitle": "Data" }, { "type": "get", "url": "v1/news.list", "title": "资讯列表", "version": "1.0.0", "name": "news_list", "group": "Data", "description": "

小程序的资讯列表接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "cateid", "description": "

子栏目id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "news", "description": "

资讯信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "news.id", "description": "

资讯id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.name", "description": "

资讯标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.content", "description": "

资讯内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.num_view", "description": "

阅读数

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.cdate", "description": "

时间

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "news.author", "description": "

作者信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "news.author.id", "description": "

作者id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.author.name", "description": "

作者姓名

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.author.pic", "description": "

作者头像

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"info\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u600e\\u4e48\\u641e\",\"cate_id\":\"1\",\"logo\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"title\":\"test\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"state\":\"1\",\"cdate\":\"1521858466\"},\"news\":[{\"id\":\"1\",\"name\":\"\\u4e07\\u8fbe\\u57ce\\u521b\\u65b0\\u4e1a\\u6001\\u7814\\u7a76\\u62a5\\u544a\",\"pic\":[\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\"],\"top\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"cate_id\":\"3\",\"info_id\":\"1\",\"author_id\":\"1\",\"content\":\"

\\u5730\\u65b9\\u5927\\u5e45\\u5ea6\\u53d1<\\/p>\",\"num_view\":\"0\",\"cdate\":\"9\\u5c0f\\u65f6\\u524d\",\"author\":{\"id\":\"1\",\"name\":\"\\u7a0b\\u8302\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"state\":\"1\",\"cdate\":\"1521858481\"}}]},\"page\":{\"total\":\"1\",\"current_page\":1,\"total_page\":1,\"next_page\":1,\"prev_page\":1,\"html\":\"\",\"status\":0}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/News.php", "groupTitle": "Data" }, { "type": "get", "url": "v1/news.view", "title": "资讯详情", "version": "1.0.0", "name": "news_view", "group": "Data", "description": "

小程序的资讯详情接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "

资讯id

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object[]", "optional": false, "field": "info", "description": "

小程序基本信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.id", "description": "

小程序id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.name", "description": "

小程序名称

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "info.cate_id", "description": "

小程序所属栏目id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.logo", "description": "

小程序logo

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.title", "description": "

首页标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "info.pic", "description": "

首页头图

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "news", "description": "

资讯信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "news.id", "description": "

资讯id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.name", "description": "

资讯标题

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.content", "description": "

资讯内容

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.num_view", "description": "

阅读数

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.cdate", "description": "

时间

" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "news.author", "description": "

作者信息

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "news.author.id", "description": "

作者id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.author.name", "description": "

作者姓名

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "news.author.pic", "description": "

作者头像

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"info\":{\"id\":\"1\",\"name\":\"\\u7279\\u8272\\u5c0f\\u9547\\u600e\\u4e48\\u641e\",\"cate_id\":\"1\",\"logo\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"title\":\"test\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"state\":\"1\",\"cdate\":\"1521858466\"},\"news\":{\"id\":\"1\",\"name\":\"\\u4e07\\u8fbe\\u57ce\\u521b\\u65b0\\u4e1a\\u6001\\u7814\\u7a76\\u62a5\\u544a\",\"info_id\":\"1\",\"author_id\":\"1\",\"cate_id_parent\":\"1\",\"cate_id\":\"3\",\"num_add_view\":\"0\",\"num_up\":\"0\",\"num_view\":\"0\",\"num_review\":\"0\",\"pic\":[\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\"],\"top\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/da31b5d54d15192fea10406f77f4b0cb.jpg\",\"content\":\"

\\u5730\\u65b9\\u5927\\u5e45\\u5ea6\\u53d1<\\/p>\",\"reorder\":\"1\",\"state\":\"1\",\"cdate\":\"9\\u5c0f\\u65f6\\u524d\",\"author\":{\"id\":\"1\",\"name\":\"\\u7a0b\\u8302\",\"pic\":\"http:\\/\\/192.168.33.10\\/plant\\/data\\/upload\\/1\\/2018\\/03\\/24\\/1e493a87d4cdddde7fd06ad9762694d2.jpg\",\"state\":\"1\",\"cdate\":\"1521858481\"}}}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/News.php", "groupTitle": "Data" }, { "type": "get", "url": "v1/login.bind", "title": "用户登录", "version": "1.0.0", "name": "login_bind", "group": "User", "description": "

用户登录接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "code", "description": "

小程序登录的code

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "session", "description": "

验证用户有效性的session key 请保存在客户端

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"uid\":1,\"session\":\"111\"}}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Login.php", "groupTitle": "User" }, { "type": "get", "url": "v1/login.update", "title": "更新用户信息", "version": "1.0.0", "name": "login_update", "group": "User", "description": "

用户更新信息接口

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "appid", "description": "

小程序id

" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" }, { "group": "Parameter", "type": "String", "optional": false, "field": "session", "description": "

验证用户的session

" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Number", "optional": false, "field": "uid", "description": "

用户id

" } ] }, "examples": [ { "title": "操作成功", "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}", "type": "json" } ] }, "error": { "examples": [ { "title": "操作失败", "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}", "type": "json" } ] }, "filename": "/root/input/content/v1/Login.php", "groupTitle": "User" } ]