api_data.js 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688
  1. define({ "api": [
  2. {
  3. "type": "get",
  4. "url": "v1/review.list",
  5. "title": "评论列表",
  6. "version": "1.0.0",
  7. "name": "review_list",
  8. "group": "Comment",
  9. "description": "<p>评论列表</p>",
  10. "parameter": {
  11. "fields": {
  12. "Parameter": [
  13. {
  14. "group": "Parameter",
  15. "type": "Number",
  16. "optional": false,
  17. "field": "appid",
  18. "description": "<p>小程序id</p>"
  19. },
  20. {
  21. "group": "Parameter",
  22. "type": "Number",
  23. "optional": false,
  24. "field": "uid",
  25. "description": "<p>用户id</p>"
  26. },
  27. {
  28. "group": "Parameter",
  29. "type": "String",
  30. "optional": false,
  31. "field": "session",
  32. "description": "<p>验证用户的session</p>"
  33. },
  34. {
  35. "group": "Parameter",
  36. "type": "Number",
  37. "optional": false,
  38. "field": "type",
  39. "description": "<p>评论的类型:1为资讯2为课程</p>"
  40. },
  41. {
  42. "group": "Parameter",
  43. "type": "Number",
  44. "optional": false,
  45. "field": "id",
  46. "description": "<p>评论的类型id</p>"
  47. }
  48. ]
  49. }
  50. },
  51. "success": {
  52. "fields": {
  53. "Success 200": [
  54. {
  55. "group": "Success 200",
  56. "type": "Object[]",
  57. "optional": false,
  58. "field": "info",
  59. "description": "<p>小程序基本信息</p>"
  60. },
  61. {
  62. "group": "Success 200",
  63. "type": "Number",
  64. "optional": false,
  65. "field": "info.id",
  66. "description": "<p>小程序id</p>"
  67. },
  68. {
  69. "group": "Success 200",
  70. "type": "String",
  71. "optional": false,
  72. "field": "info.name",
  73. "description": "<p>小程序名称</p>"
  74. },
  75. {
  76. "group": "Success 200",
  77. "type": "Number",
  78. "optional": false,
  79. "field": "info.cate_id",
  80. "description": "<p>小程序所属栏目id</p>"
  81. },
  82. {
  83. "group": "Success 200",
  84. "type": "String",
  85. "optional": false,
  86. "field": "info.logo",
  87. "description": "<p>小程序logo</p>"
  88. },
  89. {
  90. "group": "Success 200",
  91. "type": "String",
  92. "optional": false,
  93. "field": "info.title",
  94. "description": "<p>首页标题</p>"
  95. },
  96. {
  97. "group": "Success 200",
  98. "type": "String",
  99. "optional": false,
  100. "field": "info.pic",
  101. "description": "<p>首页头图</p>"
  102. },
  103. {
  104. "group": "Success 200",
  105. "type": "Object[]",
  106. "optional": false,
  107. "field": "review",
  108. "description": "<p>评论信息</p>"
  109. },
  110. {
  111. "group": "Success 200",
  112. "type": "Number",
  113. "optional": false,
  114. "field": "review.id",
  115. "description": "<p>评论id</p>"
  116. },
  117. {
  118. "group": "Success 200",
  119. "type": "String",
  120. "optional": false,
  121. "field": "review.content",
  122. "description": "<p>评论内容</p>"
  123. },
  124. {
  125. "group": "Success 200",
  126. "type": "String",
  127. "optional": false,
  128. "field": "review.cdate",
  129. "description": "<p>时间</p>"
  130. },
  131. {
  132. "group": "Success 200",
  133. "type": "Object[]",
  134. "optional": false,
  135. "field": "review.user",
  136. "description": "<p>评论用户信息</p>"
  137. },
  138. {
  139. "group": "Success 200",
  140. "type": "Number",
  141. "optional": false,
  142. "field": "review.user.id",
  143. "description": "<p>用户id</p>"
  144. },
  145. {
  146. "group": "Success 200",
  147. "type": "String",
  148. "optional": false,
  149. "field": "review.user.pic",
  150. "description": "<p>用户头像</p>"
  151. },
  152. {
  153. "group": "Success 200",
  154. "type": "String",
  155. "optional": false,
  156. "field": "review.user.name",
  157. "description": "<p>用户昵称</p>"
  158. }
  159. ]
  160. },
  161. "examples": [
  162. {
  163. "title": "操作成功",
  164. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"uid\":1,\"session\":\"111\"}}",
  165. "type": "json"
  166. }
  167. ]
  168. },
  169. "error": {
  170. "examples": [
  171. {
  172. "title": "操作失败",
  173. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  174. "type": "json"
  175. }
  176. ]
  177. },
  178. "filename": "/root/input/content/v1/Review.php",
  179. "groupTitle": "Comment"
  180. },
  181. {
  182. "type": "get",
  183. "url": "v1/review.submit",
  184. "title": "提交新评论",
  185. "version": "1.0.0",
  186. "name": "review_submit",
  187. "group": "Comment",
  188. "description": "<p>用户提交新评论接口</p>",
  189. "parameter": {
  190. "fields": {
  191. "Parameter": [
  192. {
  193. "group": "Parameter",
  194. "type": "Number",
  195. "optional": false,
  196. "field": "appid",
  197. "description": "<p>小程序id</p>"
  198. },
  199. {
  200. "group": "Parameter",
  201. "type": "Number",
  202. "optional": false,
  203. "field": "uid",
  204. "description": "<p>用户id</p>"
  205. },
  206. {
  207. "group": "Parameter",
  208. "type": "String",
  209. "optional": false,
  210. "field": "session",
  211. "description": "<p>验证用户的session</p>"
  212. },
  213. {
  214. "group": "Parameter",
  215. "type": "Number",
  216. "optional": false,
  217. "field": "type",
  218. "description": "<p>评论的类型:1为资讯2为课程</p>"
  219. },
  220. {
  221. "group": "Parameter",
  222. "type": "Number",
  223. "optional": false,
  224. "field": "id",
  225. "description": "<p>评论的类型id</p>"
  226. },
  227. {
  228. "group": "Parameter",
  229. "type": "String",
  230. "optional": false,
  231. "field": "content",
  232. "description": "<p>用户提交的评论内容</p>"
  233. }
  234. ]
  235. }
  236. },
  237. "success": {
  238. "fields": {
  239. "Success 200": [
  240. {
  241. "group": "Success 200",
  242. "type": "Number",
  243. "optional": false,
  244. "field": "id",
  245. "description": "<p>评论id</p>"
  246. }
  247. ]
  248. },
  249. "examples": [
  250. {
  251. "title": "操作成功",
  252. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}",
  253. "type": "json"
  254. }
  255. ]
  256. },
  257. "error": {
  258. "examples": [
  259. {
  260. "title": "操作失败",
  261. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  262. "type": "json"
  263. }
  264. ]
  265. },
  266. "filename": "/root/input/content/v1/Review.php",
  267. "groupTitle": "Comment"
  268. },
  269. {
  270. "type": "get",
  271. "url": "v1/vote.submit",
  272. "title": "提交点赞",
  273. "version": "1.0.0",
  274. "name": "vote_submit",
  275. "group": "Comment",
  276. "description": "<p>用户提交点赞数接口</p>",
  277. "parameter": {
  278. "fields": {
  279. "Parameter": [
  280. {
  281. "group": "Parameter",
  282. "type": "Number",
  283. "optional": false,
  284. "field": "appid",
  285. "description": "<p>小程序id</p>"
  286. },
  287. {
  288. "group": "Parameter",
  289. "type": "Number",
  290. "optional": false,
  291. "field": "uid",
  292. "description": "<p>用户id</p>"
  293. },
  294. {
  295. "group": "Parameter",
  296. "type": "String",
  297. "optional": false,
  298. "field": "session",
  299. "description": "<p>验证用户的session</p>"
  300. },
  301. {
  302. "group": "Parameter",
  303. "type": "Number",
  304. "optional": false,
  305. "field": "type",
  306. "description": "<p>点赞的类型:1为资讯2为课程</p>"
  307. },
  308. {
  309. "group": "Parameter",
  310. "type": "Number",
  311. "optional": false,
  312. "field": "id",
  313. "description": "<p>点赞的类型id</p>"
  314. }
  315. ]
  316. }
  317. },
  318. "success": {
  319. "fields": {
  320. "Success 200": [
  321. {
  322. "group": "Success 200",
  323. "type": "Number",
  324. "optional": false,
  325. "field": "id",
  326. "description": "<p>点赞id</p>"
  327. }
  328. ]
  329. },
  330. "examples": [
  331. {
  332. "title": "操作成功",
  333. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}",
  334. "type": "json"
  335. }
  336. ]
  337. },
  338. "error": {
  339. "examples": [
  340. {
  341. "title": "操作失败",
  342. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  343. "type": "json"
  344. }
  345. ]
  346. },
  347. "filename": "/root/input/content/v1/Vote.php",
  348. "groupTitle": "Comment"
  349. },
  350. {
  351. "type": "get",
  352. "url": "v1/news.index",
  353. "title": "首页接口",
  354. "version": "1.0.0",
  355. "name": "api_index",
  356. "group": "Data",
  357. "description": "<p>小程序的首页接口</p> <p>apiSampleRequest /v1/news.index</p>",
  358. "parameter": {
  359. "fields": {
  360. "Parameter": [
  361. {
  362. "group": "Parameter",
  363. "type": "Number",
  364. "optional": false,
  365. "field": "appid",
  366. "description": "<p>小程序id</p>"
  367. }
  368. ]
  369. }
  370. },
  371. "success": {
  372. "fields": {
  373. "Success 200": [
  374. {
  375. "group": "Success 200",
  376. "type": "Object[]",
  377. "optional": false,
  378. "field": "info",
  379. "description": "<p>小程序基本信息</p>"
  380. },
  381. {
  382. "group": "Success 200",
  383. "type": "Number",
  384. "optional": false,
  385. "field": "info.id",
  386. "description": "<p>小程序id</p>"
  387. },
  388. {
  389. "group": "Success 200",
  390. "type": "String",
  391. "optional": false,
  392. "field": "info.name",
  393. "description": "<p>小程序名称</p>"
  394. },
  395. {
  396. "group": "Success 200",
  397. "type": "Number",
  398. "optional": false,
  399. "field": "info.cate_id",
  400. "description": "<p>小程序所属栏目id</p>"
  401. },
  402. {
  403. "group": "Success 200",
  404. "type": "String",
  405. "optional": false,
  406. "field": "info.logo",
  407. "description": "<p>小程序logo</p>"
  408. },
  409. {
  410. "group": "Success 200",
  411. "type": "String",
  412. "optional": false,
  413. "field": "info.title",
  414. "description": "<p>首页标题</p>"
  415. },
  416. {
  417. "group": "Success 200",
  418. "type": "String",
  419. "optional": false,
  420. "field": "info.pic",
  421. "description": "<p>首页头图</p>"
  422. },
  423. {
  424. "group": "Success 200",
  425. "type": "Object[]",
  426. "optional": false,
  427. "field": "cate",
  428. "description": "<p>主栏目信息</p>"
  429. },
  430. {
  431. "group": "Success 200",
  432. "type": "Number",
  433. "optional": false,
  434. "field": "cate.id",
  435. "description": "<p>栏目id</p>"
  436. },
  437. {
  438. "group": "Success 200",
  439. "type": "String",
  440. "optional": false,
  441. "field": "cate.name",
  442. "description": "<p>栏目名称</p>"
  443. },
  444. {
  445. "group": "Success 200",
  446. "type": "Object[]",
  447. "optional": false,
  448. "field": "cate_child",
  449. "description": "<p>子栏目信息</p>"
  450. },
  451. {
  452. "group": "Success 200",
  453. "type": "Number",
  454. "optional": false,
  455. "field": "cate_child.id",
  456. "description": "<p>栏目id</p>"
  457. },
  458. {
  459. "group": "Success 200",
  460. "type": "String",
  461. "optional": false,
  462. "field": "cate_child.name",
  463. "description": "<p>栏目名称</p>"
  464. },
  465. {
  466. "group": "Success 200",
  467. "type": "Number",
  468. "optional": false,
  469. "field": "cate_child.cate_id",
  470. "description": "<p>上级栏目id</p>"
  471. },
  472. {
  473. "group": "Success 200",
  474. "type": "Object[]",
  475. "optional": false,
  476. "field": "cate_child.news",
  477. "description": "<p>资讯信息</p>"
  478. },
  479. {
  480. "group": "Success 200",
  481. "type": "Number",
  482. "optional": false,
  483. "field": "cate_child.news.id",
  484. "description": "<p>资讯id</p>"
  485. },
  486. {
  487. "group": "Success 200",
  488. "type": "String",
  489. "optional": false,
  490. "field": "cate_child.news.name",
  491. "description": "<p>资讯标题</p>"
  492. },
  493. {
  494. "group": "Success 200",
  495. "type": "String",
  496. "optional": false,
  497. "field": "cate_child.news.content",
  498. "description": "<p>资讯内容</p>"
  499. },
  500. {
  501. "group": "Success 200",
  502. "type": "String",
  503. "optional": false,
  504. "field": "cate_child.news.num_view",
  505. "description": "<p>阅读数</p>"
  506. },
  507. {
  508. "group": "Success 200",
  509. "type": "String",
  510. "optional": false,
  511. "field": "cate_child.news.cdate",
  512. "description": "<p>时间</p>"
  513. },
  514. {
  515. "group": "Success 200",
  516. "type": "Object[]",
  517. "optional": false,
  518. "field": "cate_child.news.author",
  519. "description": "<p>作者信息</p>"
  520. },
  521. {
  522. "group": "Success 200",
  523. "type": "Number",
  524. "optional": false,
  525. "field": "cate_child.news.author.id",
  526. "description": "<p>作者id</p>"
  527. },
  528. {
  529. "group": "Success 200",
  530. "type": "String",
  531. "optional": false,
  532. "field": "cate_child.news.author.name",
  533. "description": "<p>作者姓名</p>"
  534. },
  535. {
  536. "group": "Success 200",
  537. "type": "String",
  538. "optional": false,
  539. "field": "cate_child.news.author.pic",
  540. "description": "<p>作者头像</p>"
  541. }
  542. ]
  543. },
  544. "examples": [
  545. {
  546. "title": "操作成功",
  547. "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}}",
  548. "type": "json"
  549. }
  550. ]
  551. },
  552. "error": {
  553. "examples": [
  554. {
  555. "title": "操作失败",
  556. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  557. "type": "json"
  558. }
  559. ]
  560. },
  561. "filename": "/root/input/content/v1/News.php",
  562. "groupTitle": "Data"
  563. },
  564. {
  565. "type": "get",
  566. "url": "v1/course.list",
  567. "title": "听课列表",
  568. "version": "1.0.0",
  569. "name": "course_list",
  570. "group": "Data",
  571. "description": "<p>小程序的听课列表接口</p>",
  572. "parameter": {
  573. "fields": {
  574. "Parameter": [
  575. {
  576. "group": "Parameter",
  577. "type": "Number",
  578. "optional": false,
  579. "field": "appid",
  580. "description": "<p>小程序id</p>"
  581. }
  582. ]
  583. }
  584. },
  585. "success": {
  586. "fields": {
  587. "Success 200": [
  588. {
  589. "group": "Success 200",
  590. "type": "Object[]",
  591. "optional": false,
  592. "field": "info",
  593. "description": "<p>小程序基本信息</p>"
  594. },
  595. {
  596. "group": "Success 200",
  597. "type": "Number",
  598. "optional": false,
  599. "field": "info.id",
  600. "description": "<p>小程序id</p>"
  601. },
  602. {
  603. "group": "Success 200",
  604. "type": "String",
  605. "optional": false,
  606. "field": "info.name",
  607. "description": "<p>小程序名称</p>"
  608. },
  609. {
  610. "group": "Success 200",
  611. "type": "Number",
  612. "optional": false,
  613. "field": "info.cate_id",
  614. "description": "<p>小程序所属栏目id</p>"
  615. },
  616. {
  617. "group": "Success 200",
  618. "type": "String",
  619. "optional": false,
  620. "field": "info.logo",
  621. "description": "<p>小程序logo</p>"
  622. },
  623. {
  624. "group": "Success 200",
  625. "type": "String",
  626. "optional": false,
  627. "field": "info.title",
  628. "description": "<p>首页标题</p>"
  629. },
  630. {
  631. "group": "Success 200",
  632. "type": "String",
  633. "optional": false,
  634. "field": "info.pic",
  635. "description": "<p>首页头图</p>"
  636. },
  637. {
  638. "group": "Success 200",
  639. "type": "Object[]",
  640. "optional": false,
  641. "field": "course",
  642. "description": "<p>听课信息</p>"
  643. },
  644. {
  645. "group": "Success 200",
  646. "type": "Number",
  647. "optional": false,
  648. "field": "course.id",
  649. "description": "<p>听课id</p>"
  650. },
  651. {
  652. "group": "Success 200",
  653. "type": "String",
  654. "optional": false,
  655. "field": "course.name",
  656. "description": "<p>听课标题</p>"
  657. },
  658. {
  659. "group": "Success 200",
  660. "type": "String",
  661. "optional": false,
  662. "field": "course.content",
  663. "description": "<p>听课内容</p>"
  664. },
  665. {
  666. "group": "Success 200",
  667. "type": "String",
  668. "optional": false,
  669. "field": "course.num_view",
  670. "description": "<p>阅读数</p>"
  671. },
  672. {
  673. "group": "Success 200",
  674. "type": "String",
  675. "optional": false,
  676. "field": "course.video",
  677. "description": "<p>视频地址</p>"
  678. },
  679. {
  680. "group": "Success 200",
  681. "type": "String",
  682. "optional": false,
  683. "field": "course.audio",
  684. "description": "<p>音频地址</p>"
  685. },
  686. {
  687. "group": "Success 200",
  688. "type": "String",
  689. "optional": false,
  690. "field": "course.cdate",
  691. "description": "<p>时间</p>"
  692. },
  693. {
  694. "group": "Success 200",
  695. "type": "Object[]",
  696. "optional": false,
  697. "field": "course.author",
  698. "description": "<p>作者信息</p>"
  699. },
  700. {
  701. "group": "Success 200",
  702. "type": "Number",
  703. "optional": false,
  704. "field": "course.author.id",
  705. "description": "<p>作者id</p>"
  706. },
  707. {
  708. "group": "Success 200",
  709. "type": "String",
  710. "optional": false,
  711. "field": "course.author.name",
  712. "description": "<p>作者姓名</p>"
  713. },
  714. {
  715. "group": "Success 200",
  716. "type": "String",
  717. "optional": false,
  718. "field": "course.author.pic",
  719. "description": "<p>作者头像</p>"
  720. }
  721. ]
  722. },
  723. "examples": [
  724. {
  725. "title": "操作成功",
  726. "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}}",
  727. "type": "json"
  728. }
  729. ]
  730. },
  731. "error": {
  732. "examples": [
  733. {
  734. "title": "操作失败",
  735. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  736. "type": "json"
  737. }
  738. ]
  739. },
  740. "filename": "/root/input/content/v1/Course.php",
  741. "groupTitle": "Data"
  742. },
  743. {
  744. "type": "get",
  745. "url": "v1/course.view",
  746. "title": "课程详情",
  747. "version": "1.0.0",
  748. "name": "course_view",
  749. "group": "Data",
  750. "description": "<p>小程序的课程详情接口</p>",
  751. "parameter": {
  752. "fields": {
  753. "Parameter": [
  754. {
  755. "group": "Parameter",
  756. "type": "Number",
  757. "optional": false,
  758. "field": "appid",
  759. "description": "<p>小程序id</p>"
  760. },
  761. {
  762. "group": "Parameter",
  763. "type": "Number",
  764. "optional": false,
  765. "field": "id",
  766. "description": "<p>课程id</p>"
  767. }
  768. ]
  769. }
  770. },
  771. "success": {
  772. "fields": {
  773. "Success 200": [
  774. {
  775. "group": "Success 200",
  776. "type": "Object[]",
  777. "optional": false,
  778. "field": "info",
  779. "description": "<p>小程序基本信息</p>"
  780. },
  781. {
  782. "group": "Success 200",
  783. "type": "Number",
  784. "optional": false,
  785. "field": "info.id",
  786. "description": "<p>小程序id</p>"
  787. },
  788. {
  789. "group": "Success 200",
  790. "type": "String",
  791. "optional": false,
  792. "field": "info.name",
  793. "description": "<p>小程序名称</p>"
  794. },
  795. {
  796. "group": "Success 200",
  797. "type": "Number",
  798. "optional": false,
  799. "field": "info.cate_id",
  800. "description": "<p>小程序所属栏目id</p>"
  801. },
  802. {
  803. "group": "Success 200",
  804. "type": "String",
  805. "optional": false,
  806. "field": "info.logo",
  807. "description": "<p>小程序logo</p>"
  808. },
  809. {
  810. "group": "Success 200",
  811. "type": "String",
  812. "optional": false,
  813. "field": "info.title",
  814. "description": "<p>首页标题</p>"
  815. },
  816. {
  817. "group": "Success 200",
  818. "type": "String",
  819. "optional": false,
  820. "field": "info.pic",
  821. "description": "<p>首页头图</p>"
  822. },
  823. {
  824. "group": "Success 200",
  825. "type": "Object[]",
  826. "optional": false,
  827. "field": "course",
  828. "description": "<p>听课信息</p>"
  829. },
  830. {
  831. "group": "Success 200",
  832. "type": "Number",
  833. "optional": false,
  834. "field": "course.id",
  835. "description": "<p>听课id</p>"
  836. },
  837. {
  838. "group": "Success 200",
  839. "type": "String",
  840. "optional": false,
  841. "field": "course.name",
  842. "description": "<p>听课标题</p>"
  843. },
  844. {
  845. "group": "Success 200",
  846. "type": "String",
  847. "optional": false,
  848. "field": "course.content",
  849. "description": "<p>听课内容</p>"
  850. },
  851. {
  852. "group": "Success 200",
  853. "type": "String",
  854. "optional": false,
  855. "field": "course.num_view",
  856. "description": "<p>阅读数</p>"
  857. },
  858. {
  859. "group": "Success 200",
  860. "type": "String",
  861. "optional": false,
  862. "field": "course.video",
  863. "description": "<p>视频地址</p>"
  864. },
  865. {
  866. "group": "Success 200",
  867. "type": "String",
  868. "optional": false,
  869. "field": "course.audio",
  870. "description": "<p>音频地址</p>"
  871. },
  872. {
  873. "group": "Success 200",
  874. "type": "String",
  875. "optional": false,
  876. "field": "course.cdate",
  877. "description": "<p>时间</p>"
  878. },
  879. {
  880. "group": "Success 200",
  881. "type": "Object[]",
  882. "optional": false,
  883. "field": "course.author",
  884. "description": "<p>作者信息</p>"
  885. },
  886. {
  887. "group": "Success 200",
  888. "type": "Number",
  889. "optional": false,
  890. "field": "course.author.id",
  891. "description": "<p>作者id</p>"
  892. },
  893. {
  894. "group": "Success 200",
  895. "type": "String",
  896. "optional": false,
  897. "field": "course.author.name",
  898. "description": "<p>作者姓名</p>"
  899. },
  900. {
  901. "group": "Success 200",
  902. "type": "String",
  903. "optional": false,
  904. "field": "course.author.pic",
  905. "description": "<p>作者头像</p>"
  906. }
  907. ]
  908. },
  909. "examples": [
  910. {
  911. "title": "操作成功",
  912. "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\"}}}}",
  913. "type": "json"
  914. }
  915. ]
  916. },
  917. "error": {
  918. "examples": [
  919. {
  920. "title": "操作失败",
  921. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  922. "type": "json"
  923. }
  924. ]
  925. },
  926. "filename": "/root/input/content/v1/Course.php",
  927. "groupTitle": "Data"
  928. },
  929. {
  930. "type": "get",
  931. "url": "v1/meeting.list",
  932. "title": "会议列表",
  933. "version": "1.0.0",
  934. "name": "meeting_list",
  935. "group": "Data",
  936. "description": "<p>小程序的会议列表接口</p>",
  937. "parameter": {
  938. "fields": {
  939. "Parameter": [
  940. {
  941. "group": "Parameter",
  942. "type": "Number",
  943. "optional": false,
  944. "field": "appid",
  945. "description": "<p>小程序id</p>"
  946. }
  947. ]
  948. }
  949. },
  950. "success": {
  951. "fields": {
  952. "Success 200": [
  953. {
  954. "group": "Success 200",
  955. "type": "Object[]",
  956. "optional": false,
  957. "field": "info",
  958. "description": "<p>小程序基本信息</p>"
  959. },
  960. {
  961. "group": "Success 200",
  962. "type": "Number",
  963. "optional": false,
  964. "field": "info.id",
  965. "description": "<p>小程序id</p>"
  966. },
  967. {
  968. "group": "Success 200",
  969. "type": "String",
  970. "optional": false,
  971. "field": "info.name",
  972. "description": "<p>小程序名称</p>"
  973. },
  974. {
  975. "group": "Success 200",
  976. "type": "Number",
  977. "optional": false,
  978. "field": "info.cate_id",
  979. "description": "<p>小程序所属栏目id</p>"
  980. },
  981. {
  982. "group": "Success 200",
  983. "type": "String",
  984. "optional": false,
  985. "field": "info.logo",
  986. "description": "<p>小程序logo</p>"
  987. },
  988. {
  989. "group": "Success 200",
  990. "type": "String",
  991. "optional": false,
  992. "field": "info.title",
  993. "description": "<p>首页标题</p>"
  994. },
  995. {
  996. "group": "Success 200",
  997. "type": "String",
  998. "optional": false,
  999. "field": "info.pic",
  1000. "description": "<p>首页头图</p>"
  1001. },
  1002. {
  1003. "group": "Success 200",
  1004. "type": "Object[]",
  1005. "optional": false,
  1006. "field": "meeting",
  1007. "description": "<p>听课信息</p>"
  1008. },
  1009. {
  1010. "group": "Success 200",
  1011. "type": "Number",
  1012. "optional": false,
  1013. "field": "meeting.id",
  1014. "description": "<p>听课id</p>"
  1015. },
  1016. {
  1017. "group": "Success 200",
  1018. "type": "String",
  1019. "optional": false,
  1020. "field": "meeting.name",
  1021. "description": "<p>听课标题</p>"
  1022. },
  1023. {
  1024. "group": "Success 200",
  1025. "type": "String",
  1026. "optional": false,
  1027. "field": "meeting.content",
  1028. "description": "<p>听课内容</p>"
  1029. },
  1030. {
  1031. "group": "Success 200",
  1032. "type": "String",
  1033. "optional": false,
  1034. "field": "meeting.num_view",
  1035. "description": "<p>阅读数</p>"
  1036. },
  1037. {
  1038. "group": "Success 200",
  1039. "type": "String",
  1040. "optional": false,
  1041. "field": "meeting.cdate",
  1042. "description": "<p>时间</p>"
  1043. }
  1044. ]
  1045. },
  1046. "examples": [
  1047. {
  1048. "title": "操作成功",
  1049. "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}}",
  1050. "type": "json"
  1051. }
  1052. ]
  1053. },
  1054. "error": {
  1055. "examples": [
  1056. {
  1057. "title": "操作失败",
  1058. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1059. "type": "json"
  1060. }
  1061. ]
  1062. },
  1063. "filename": "/root/input/content/v1/Meeting.php",
  1064. "groupTitle": "Data"
  1065. },
  1066. {
  1067. "type": "get",
  1068. "url": "v1/meeting.view",
  1069. "title": "会议详情",
  1070. "version": "1.0.0",
  1071. "name": "meeting_view",
  1072. "group": "Data",
  1073. "description": "<p>小程序的会议详情接口</p>",
  1074. "parameter": {
  1075. "fields": {
  1076. "Parameter": [
  1077. {
  1078. "group": "Parameter",
  1079. "type": "Number",
  1080. "optional": false,
  1081. "field": "appid",
  1082. "description": "<p>小程序id</p>"
  1083. },
  1084. {
  1085. "group": "Parameter",
  1086. "type": "Number",
  1087. "optional": false,
  1088. "field": "id",
  1089. "description": "<p>会议id</p>"
  1090. }
  1091. ]
  1092. }
  1093. },
  1094. "success": {
  1095. "fields": {
  1096. "Success 200": [
  1097. {
  1098. "group": "Success 200",
  1099. "type": "Object[]",
  1100. "optional": false,
  1101. "field": "info",
  1102. "description": "<p>小程序基本信息</p>"
  1103. },
  1104. {
  1105. "group": "Success 200",
  1106. "type": "Number",
  1107. "optional": false,
  1108. "field": "info.id",
  1109. "description": "<p>小程序id</p>"
  1110. },
  1111. {
  1112. "group": "Success 200",
  1113. "type": "String",
  1114. "optional": false,
  1115. "field": "info.name",
  1116. "description": "<p>小程序名称</p>"
  1117. },
  1118. {
  1119. "group": "Success 200",
  1120. "type": "Number",
  1121. "optional": false,
  1122. "field": "info.cate_id",
  1123. "description": "<p>小程序所属栏目id</p>"
  1124. },
  1125. {
  1126. "group": "Success 200",
  1127. "type": "String",
  1128. "optional": false,
  1129. "field": "info.logo",
  1130. "description": "<p>小程序logo</p>"
  1131. },
  1132. {
  1133. "group": "Success 200",
  1134. "type": "String",
  1135. "optional": false,
  1136. "field": "info.title",
  1137. "description": "<p>首页标题</p>"
  1138. },
  1139. {
  1140. "group": "Success 200",
  1141. "type": "String",
  1142. "optional": false,
  1143. "field": "info.pic",
  1144. "description": "<p>首页头图</p>"
  1145. },
  1146. {
  1147. "group": "Success 200",
  1148. "type": "Object[]",
  1149. "optional": false,
  1150. "field": "meeting",
  1151. "description": "<p>听课信息</p>"
  1152. },
  1153. {
  1154. "group": "Success 200",
  1155. "type": "Number",
  1156. "optional": false,
  1157. "field": "meeting.id",
  1158. "description": "<p>听课id</p>"
  1159. },
  1160. {
  1161. "group": "Success 200",
  1162. "type": "String",
  1163. "optional": false,
  1164. "field": "meeting.name",
  1165. "description": "<p>听课标题</p>"
  1166. },
  1167. {
  1168. "group": "Success 200",
  1169. "type": "String",
  1170. "optional": false,
  1171. "field": "meeting.content",
  1172. "description": "<p>听课内容</p>"
  1173. },
  1174. {
  1175. "group": "Success 200",
  1176. "type": "String",
  1177. "optional": false,
  1178. "field": "meeting.num_view",
  1179. "description": "<p>阅读数</p>"
  1180. },
  1181. {
  1182. "group": "Success 200",
  1183. "type": "String",
  1184. "optional": false,
  1185. "field": "meeting.cdate",
  1186. "description": "<p>时间</p>"
  1187. }
  1188. ]
  1189. },
  1190. "examples": [
  1191. {
  1192. "title": "操作成功",
  1193. "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\"}}}",
  1194. "type": "json"
  1195. }
  1196. ]
  1197. },
  1198. "error": {
  1199. "examples": [
  1200. {
  1201. "title": "操作失败",
  1202. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1203. "type": "json"
  1204. }
  1205. ]
  1206. },
  1207. "filename": "/root/input/content/v1/Meeting.php",
  1208. "groupTitle": "Data"
  1209. },
  1210. {
  1211. "type": "get",
  1212. "url": "v1/news.list",
  1213. "title": "资讯列表",
  1214. "version": "1.0.0",
  1215. "name": "news_list",
  1216. "group": "Data",
  1217. "description": "<p>小程序的资讯列表接口</p>",
  1218. "parameter": {
  1219. "fields": {
  1220. "Parameter": [
  1221. {
  1222. "group": "Parameter",
  1223. "type": "Number",
  1224. "optional": false,
  1225. "field": "appid",
  1226. "description": "<p>小程序id</p>"
  1227. },
  1228. {
  1229. "group": "Parameter",
  1230. "type": "Number",
  1231. "optional": false,
  1232. "field": "cateid",
  1233. "description": "<p>子栏目id</p>"
  1234. }
  1235. ]
  1236. }
  1237. },
  1238. "success": {
  1239. "fields": {
  1240. "Success 200": [
  1241. {
  1242. "group": "Success 200",
  1243. "type": "Object[]",
  1244. "optional": false,
  1245. "field": "info",
  1246. "description": "<p>小程序基本信息</p>"
  1247. },
  1248. {
  1249. "group": "Success 200",
  1250. "type": "Number",
  1251. "optional": false,
  1252. "field": "info.id",
  1253. "description": "<p>小程序id</p>"
  1254. },
  1255. {
  1256. "group": "Success 200",
  1257. "type": "String",
  1258. "optional": false,
  1259. "field": "info.name",
  1260. "description": "<p>小程序名称</p>"
  1261. },
  1262. {
  1263. "group": "Success 200",
  1264. "type": "Number",
  1265. "optional": false,
  1266. "field": "info.cate_id",
  1267. "description": "<p>小程序所属栏目id</p>"
  1268. },
  1269. {
  1270. "group": "Success 200",
  1271. "type": "String",
  1272. "optional": false,
  1273. "field": "info.logo",
  1274. "description": "<p>小程序logo</p>"
  1275. },
  1276. {
  1277. "group": "Success 200",
  1278. "type": "String",
  1279. "optional": false,
  1280. "field": "info.title",
  1281. "description": "<p>首页标题</p>"
  1282. },
  1283. {
  1284. "group": "Success 200",
  1285. "type": "String",
  1286. "optional": false,
  1287. "field": "info.pic",
  1288. "description": "<p>首页头图</p>"
  1289. },
  1290. {
  1291. "group": "Success 200",
  1292. "type": "Object[]",
  1293. "optional": false,
  1294. "field": "news",
  1295. "description": "<p>资讯信息</p>"
  1296. },
  1297. {
  1298. "group": "Success 200",
  1299. "type": "Number",
  1300. "optional": false,
  1301. "field": "news.id",
  1302. "description": "<p>资讯id</p>"
  1303. },
  1304. {
  1305. "group": "Success 200",
  1306. "type": "String",
  1307. "optional": false,
  1308. "field": "news.name",
  1309. "description": "<p>资讯标题</p>"
  1310. },
  1311. {
  1312. "group": "Success 200",
  1313. "type": "String",
  1314. "optional": false,
  1315. "field": "news.content",
  1316. "description": "<p>资讯内容</p>"
  1317. },
  1318. {
  1319. "group": "Success 200",
  1320. "type": "String",
  1321. "optional": false,
  1322. "field": "news.num_view",
  1323. "description": "<p>阅读数</p>"
  1324. },
  1325. {
  1326. "group": "Success 200",
  1327. "type": "String",
  1328. "optional": false,
  1329. "field": "news.cdate",
  1330. "description": "<p>时间</p>"
  1331. },
  1332. {
  1333. "group": "Success 200",
  1334. "type": "Object[]",
  1335. "optional": false,
  1336. "field": "news.author",
  1337. "description": "<p>作者信息</p>"
  1338. },
  1339. {
  1340. "group": "Success 200",
  1341. "type": "Number",
  1342. "optional": false,
  1343. "field": "news.author.id",
  1344. "description": "<p>作者id</p>"
  1345. },
  1346. {
  1347. "group": "Success 200",
  1348. "type": "String",
  1349. "optional": false,
  1350. "field": "news.author.name",
  1351. "description": "<p>作者姓名</p>"
  1352. },
  1353. {
  1354. "group": "Success 200",
  1355. "type": "String",
  1356. "optional": false,
  1357. "field": "news.author.pic",
  1358. "description": "<p>作者头像</p>"
  1359. }
  1360. ]
  1361. },
  1362. "examples": [
  1363. {
  1364. "title": "操作成功",
  1365. "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}}",
  1366. "type": "json"
  1367. }
  1368. ]
  1369. },
  1370. "error": {
  1371. "examples": [
  1372. {
  1373. "title": "操作失败",
  1374. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1375. "type": "json"
  1376. }
  1377. ]
  1378. },
  1379. "filename": "/root/input/content/v1/News.php",
  1380. "groupTitle": "Data"
  1381. },
  1382. {
  1383. "type": "get",
  1384. "url": "v1/news.view",
  1385. "title": "资讯详情",
  1386. "version": "1.0.0",
  1387. "name": "news_view",
  1388. "group": "Data",
  1389. "description": "<p>小程序的资讯详情接口</p>",
  1390. "parameter": {
  1391. "fields": {
  1392. "Parameter": [
  1393. {
  1394. "group": "Parameter",
  1395. "type": "Number",
  1396. "optional": false,
  1397. "field": "appid",
  1398. "description": "<p>小程序id</p>"
  1399. },
  1400. {
  1401. "group": "Parameter",
  1402. "type": "Number",
  1403. "optional": false,
  1404. "field": "id",
  1405. "description": "<p>资讯id</p>"
  1406. }
  1407. ]
  1408. }
  1409. },
  1410. "success": {
  1411. "fields": {
  1412. "Success 200": [
  1413. {
  1414. "group": "Success 200",
  1415. "type": "Object[]",
  1416. "optional": false,
  1417. "field": "info",
  1418. "description": "<p>小程序基本信息</p>"
  1419. },
  1420. {
  1421. "group": "Success 200",
  1422. "type": "Number",
  1423. "optional": false,
  1424. "field": "info.id",
  1425. "description": "<p>小程序id</p>"
  1426. },
  1427. {
  1428. "group": "Success 200",
  1429. "type": "String",
  1430. "optional": false,
  1431. "field": "info.name",
  1432. "description": "<p>小程序名称</p>"
  1433. },
  1434. {
  1435. "group": "Success 200",
  1436. "type": "Number",
  1437. "optional": false,
  1438. "field": "info.cate_id",
  1439. "description": "<p>小程序所属栏目id</p>"
  1440. },
  1441. {
  1442. "group": "Success 200",
  1443. "type": "String",
  1444. "optional": false,
  1445. "field": "info.logo",
  1446. "description": "<p>小程序logo</p>"
  1447. },
  1448. {
  1449. "group": "Success 200",
  1450. "type": "String",
  1451. "optional": false,
  1452. "field": "info.title",
  1453. "description": "<p>首页标题</p>"
  1454. },
  1455. {
  1456. "group": "Success 200",
  1457. "type": "String",
  1458. "optional": false,
  1459. "field": "info.pic",
  1460. "description": "<p>首页头图</p>"
  1461. },
  1462. {
  1463. "group": "Success 200",
  1464. "type": "Object[]",
  1465. "optional": false,
  1466. "field": "news",
  1467. "description": "<p>资讯信息</p>"
  1468. },
  1469. {
  1470. "group": "Success 200",
  1471. "type": "Number",
  1472. "optional": false,
  1473. "field": "news.id",
  1474. "description": "<p>资讯id</p>"
  1475. },
  1476. {
  1477. "group": "Success 200",
  1478. "type": "String",
  1479. "optional": false,
  1480. "field": "news.name",
  1481. "description": "<p>资讯标题</p>"
  1482. },
  1483. {
  1484. "group": "Success 200",
  1485. "type": "String",
  1486. "optional": false,
  1487. "field": "news.content",
  1488. "description": "<p>资讯内容</p>"
  1489. },
  1490. {
  1491. "group": "Success 200",
  1492. "type": "String",
  1493. "optional": false,
  1494. "field": "news.num_view",
  1495. "description": "<p>阅读数</p>"
  1496. },
  1497. {
  1498. "group": "Success 200",
  1499. "type": "String",
  1500. "optional": false,
  1501. "field": "news.cdate",
  1502. "description": "<p>时间</p>"
  1503. },
  1504. {
  1505. "group": "Success 200",
  1506. "type": "Object[]",
  1507. "optional": false,
  1508. "field": "news.author",
  1509. "description": "<p>作者信息</p>"
  1510. },
  1511. {
  1512. "group": "Success 200",
  1513. "type": "Number",
  1514. "optional": false,
  1515. "field": "news.author.id",
  1516. "description": "<p>作者id</p>"
  1517. },
  1518. {
  1519. "group": "Success 200",
  1520. "type": "String",
  1521. "optional": false,
  1522. "field": "news.author.name",
  1523. "description": "<p>作者姓名</p>"
  1524. },
  1525. {
  1526. "group": "Success 200",
  1527. "type": "String",
  1528. "optional": false,
  1529. "field": "news.author.pic",
  1530. "description": "<p>作者头像</p>"
  1531. }
  1532. ]
  1533. },
  1534. "examples": [
  1535. {
  1536. "title": "操作成功",
  1537. "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\"}}}}",
  1538. "type": "json"
  1539. }
  1540. ]
  1541. },
  1542. "error": {
  1543. "examples": [
  1544. {
  1545. "title": "操作失败",
  1546. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1547. "type": "json"
  1548. }
  1549. ]
  1550. },
  1551. "filename": "/root/input/content/v1/News.php",
  1552. "groupTitle": "Data"
  1553. },
  1554. {
  1555. "type": "get",
  1556. "url": "v1/login.bind",
  1557. "title": "用户登录",
  1558. "version": "1.0.0",
  1559. "name": "login_bind",
  1560. "group": "User",
  1561. "description": "<p>用户登录接口</p>",
  1562. "parameter": {
  1563. "fields": {
  1564. "Parameter": [
  1565. {
  1566. "group": "Parameter",
  1567. "type": "Number",
  1568. "optional": false,
  1569. "field": "appid",
  1570. "description": "<p>小程序id</p>"
  1571. },
  1572. {
  1573. "group": "Parameter",
  1574. "type": "String",
  1575. "optional": false,
  1576. "field": "code",
  1577. "description": "<p>小程序登录的code</p>"
  1578. }
  1579. ]
  1580. }
  1581. },
  1582. "success": {
  1583. "fields": {
  1584. "Success 200": [
  1585. {
  1586. "group": "Success 200",
  1587. "type": "Number",
  1588. "optional": false,
  1589. "field": "uid",
  1590. "description": "<p>用户id</p>"
  1591. },
  1592. {
  1593. "group": "Success 200",
  1594. "type": "String",
  1595. "optional": false,
  1596. "field": "session",
  1597. "description": "<p>验证用户有效性的session key 请保存在客户端</p>"
  1598. }
  1599. ]
  1600. },
  1601. "examples": [
  1602. {
  1603. "title": "操作成功",
  1604. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"uid\":1,\"session\":\"111\"}}",
  1605. "type": "json"
  1606. }
  1607. ]
  1608. },
  1609. "error": {
  1610. "examples": [
  1611. {
  1612. "title": "操作失败",
  1613. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1614. "type": "json"
  1615. }
  1616. ]
  1617. },
  1618. "filename": "/root/input/content/v1/Login.php",
  1619. "groupTitle": "User"
  1620. },
  1621. {
  1622. "type": "get",
  1623. "url": "v1/login.update",
  1624. "title": "更新用户信息",
  1625. "version": "1.0.0",
  1626. "name": "login_update",
  1627. "group": "User",
  1628. "description": "<p>用户更新信息接口</p>",
  1629. "parameter": {
  1630. "fields": {
  1631. "Parameter": [
  1632. {
  1633. "group": "Parameter",
  1634. "type": "Number",
  1635. "optional": false,
  1636. "field": "appid",
  1637. "description": "<p>小程序id</p>"
  1638. },
  1639. {
  1640. "group": "Parameter",
  1641. "type": "Number",
  1642. "optional": false,
  1643. "field": "uid",
  1644. "description": "<p>用户id</p>"
  1645. },
  1646. {
  1647. "group": "Parameter",
  1648. "type": "String",
  1649. "optional": false,
  1650. "field": "session",
  1651. "description": "<p>验证用户的session</p>"
  1652. }
  1653. ]
  1654. }
  1655. },
  1656. "success": {
  1657. "fields": {
  1658. "Success 200": [
  1659. {
  1660. "group": "Success 200",
  1661. "type": "Number",
  1662. "optional": false,
  1663. "field": "uid",
  1664. "description": "<p>用户id</p>"
  1665. }
  1666. ]
  1667. },
  1668. "examples": [
  1669. {
  1670. "title": "操作成功",
  1671. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}",
  1672. "type": "json"
  1673. }
  1674. ]
  1675. },
  1676. "error": {
  1677. "examples": [
  1678. {
  1679. "title": "操作失败",
  1680. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1681. "type": "json"
  1682. }
  1683. ]
  1684. },
  1685. "filename": "/root/input/content/v1/Login.php",
  1686. "groupTitle": "User"
  1687. }
  1688. ] });