12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688 |
- define({ "api": [
- {
- "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/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"
- }
- ] });
|