1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885 |
- [
- {
- "type": "get",
- "url": "v1/review.list",
- "title": "评论列表",
- "version": "1.0.0",
- "name": "review_list",
- "group": "Comment",
- "description": "<p>评论列表</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "session",
- "description": "<p>验证用户的session</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "type",
- "description": "<p>评论的类型:1为资讯2为课程</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>评论的类型id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "review",
- "description": "<p>评论信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "review.id",
- "description": "<p>评论id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "review.content",
- "description": "<p>评论内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "review.cdate",
- "description": "<p>时间</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "review.user",
- "description": "<p>评论用户信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "review.user.id",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "review.user.pic",
- "description": "<p>用户头像</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "review.user.name",
- "description": "<p>用户昵称</p>"
- }
- ]
- },
- "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": "<p>用户提交新评论接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "session",
- "description": "<p>验证用户的session</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "type",
- "description": "<p>评论的类型:1为资讯2为课程</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>评论的类型id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "content",
- "description": "<p>用户提交的评论内容</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>评论id</p>"
- }
- ]
- },
- "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": "<p>用户分享回流接口,当path路径中有share_id时,请调用本接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "session",
- "description": "<p>验证用户的session</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "share_uid",
- "description": "<p>分享人的用户id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "share_id",
- "description": "<p>分享的id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "share_key",
- "description": "<p>分享的session</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Bool",
- "optional": false,
- "field": "state",
- "description": "<p>是否成功,无需关注这个接口返回值</p>"
- }
- ]
- },
- "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": "<p>用户提交分享接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "session",
- "description": "<p>验证用户的session</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "type",
- "description": "<p>分享的类型:1为资讯2为课程</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>分享的类型id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "content",
- "description": "<p>分享的内容</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "share_uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "share_key",
- "description": "<p>分享的session</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "share_id",
- "description": "<p>分享的唯一id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "desc",
- "description": "<p>请将上述几个字段都放到分享的path中:/path/?share_uid=1&share_key=1&share_id=1</p>"
- }
- ]
- },
- "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": "<p>用户提交点赞数接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "session",
- "description": "<p>验证用户的session</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "type",
- "description": "<p>点赞的类型:1为资讯2为课程</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>点赞的类型id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>点赞id</p>"
- }
- ]
- },
- "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": "<p>小程序的首页接口</p> <p>apiSampleRequest /v1/news.index</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "cate",
- "description": "<p>主栏目信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "cate.id",
- "description": "<p>栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate.name",
- "description": "<p>栏目名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "cate_child",
- "description": "<p>子栏目信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "cate_child.id",
- "description": "<p>栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate_child.name",
- "description": "<p>栏目名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "cate_child.cate_id",
- "description": "<p>上级栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "cate_child.news",
- "description": "<p>资讯信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "cate_child.news.id",
- "description": "<p>资讯id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate_child.news.name",
- "description": "<p>资讯标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate_child.news.content",
- "description": "<p>资讯内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate_child.news.num_view",
- "description": "<p>阅读数</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate_child.news.cdate",
- "description": "<p>时间</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "cate_child.news.author",
- "description": "<p>作者信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "cate_child.news.author.id",
- "description": "<p>作者id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate_child.news.author.name",
- "description": "<p>作者姓名</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "cate_child.news.author.pic",
- "description": "<p>作者头像</p>"
- }
- ]
- },
- "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\":\"<p>\\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": "<p>小程序的听课列表接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "course",
- "description": "<p>听课信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "course.id",
- "description": "<p>听课id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.name",
- "description": "<p>听课标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.content",
- "description": "<p>听课内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.num_view",
- "description": "<p>阅读数</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.video",
- "description": "<p>视频地址</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.audio",
- "description": "<p>音频地址</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.cdate",
- "description": "<p>时间</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "course.author",
- "description": "<p>作者信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "course.author.id",
- "description": "<p>作者id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.author.name",
- "description": "<p>作者姓名</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.author.pic",
- "description": "<p>作者头像</p>"
- }
- ]
- },
- "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\":\"<p>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": "<p>小程序的课程详情接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>课程id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "course",
- "description": "<p>听课信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "course.id",
- "description": "<p>听课id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.name",
- "description": "<p>听课标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.content",
- "description": "<p>听课内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.num_view",
- "description": "<p>阅读数</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.video",
- "description": "<p>视频地址</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.audio",
- "description": "<p>音频地址</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.cdate",
- "description": "<p>时间</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "course.author",
- "description": "<p>作者信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "course.author.id",
- "description": "<p>作者id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.author.name",
- "description": "<p>作者姓名</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "course.author.pic",
- "description": "<p>作者头像</p>"
- }
- ]
- },
- "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\":\"<p>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": "<p>小程序的会议列表接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "meeting",
- "description": "<p>听课信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "meeting.id",
- "description": "<p>听课id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.name",
- "description": "<p>听课标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.content",
- "description": "<p>听课内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.num_view",
- "description": "<p>阅读数</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.cdate",
- "description": "<p>时间</p>"
- }
- ]
- },
- "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": "<p>小程序的会议详情接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>会议id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "meeting",
- "description": "<p>听课信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "meeting.id",
- "description": "<p>听课id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.name",
- "description": "<p>听课标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.content",
- "description": "<p>听课内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.num_view",
- "description": "<p>阅读数</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "meeting.cdate",
- "description": "<p>时间</p>"
- }
- ]
- },
- "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": "<p>小程序的资讯列表接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "cateid",
- "description": "<p>子栏目id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "news",
- "description": "<p>资讯信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "news.id",
- "description": "<p>资讯id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.name",
- "description": "<p>资讯标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.content",
- "description": "<p>资讯内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.num_view",
- "description": "<p>阅读数</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.cdate",
- "description": "<p>时间</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "news.author",
- "description": "<p>作者信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "news.author.id",
- "description": "<p>作者id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.author.name",
- "description": "<p>作者姓名</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.author.pic",
- "description": "<p>作者头像</p>"
- }
- ]
- },
- "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\":\"<p>\\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": "<p>小程序的资讯详情接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "id",
- "description": "<p>资讯id</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "info",
- "description": "<p>小程序基本信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.id",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.name",
- "description": "<p>小程序名称</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "info.cate_id",
- "description": "<p>小程序所属栏目id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.logo",
- "description": "<p>小程序logo</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.title",
- "description": "<p>首页标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "info.pic",
- "description": "<p>首页头图</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "news",
- "description": "<p>资讯信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "news.id",
- "description": "<p>资讯id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.name",
- "description": "<p>资讯标题</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.content",
- "description": "<p>资讯内容</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.num_view",
- "description": "<p>阅读数</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.cdate",
- "description": "<p>时间</p>"
- },
- {
- "group": "Success 200",
- "type": "Object[]",
- "optional": false,
- "field": "news.author",
- "description": "<p>作者信息</p>"
- },
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "news.author.id",
- "description": "<p>作者id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.author.name",
- "description": "<p>作者姓名</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "news.author.pic",
- "description": "<p>作者头像</p>"
- }
- ]
- },
- "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\":\"<p>\\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": "<p>用户登录接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "code",
- "description": "<p>小程序登录的code</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Success 200",
- "type": "String",
- "optional": false,
- "field": "session",
- "description": "<p>验证用户有效性的session key 请保存在客户端</p>"
- }
- ]
- },
- "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": "<p>用户更新信息接口</p>",
- "parameter": {
- "fields": {
- "Parameter": [
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "appid",
- "description": "<p>小程序id</p>"
- },
- {
- "group": "Parameter",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- },
- {
- "group": "Parameter",
- "type": "String",
- "optional": false,
- "field": "session",
- "description": "<p>验证用户的session</p>"
- }
- ]
- }
- },
- "success": {
- "fields": {
- "Success 200": [
- {
- "group": "Success 200",
- "type": "Number",
- "optional": false,
- "field": "uid",
- "description": "<p>用户id</p>"
- }
- ]
- },
- "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"
- }
- ]
|