api_data.json 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885
  1. [
  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/share.reflux",
  272. "title": "分享回流",
  273. "version": "1.0.0",
  274. "name": "share_reflux",
  275. "group": "Comment",
  276. "description": "<p>用户分享回流接口,当path路径中有share_id时,请调用本接口</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": "share_uid",
  306. "description": "<p>分享人的用户id</p>"
  307. },
  308. {
  309. "group": "Parameter",
  310. "type": "Number",
  311. "optional": false,
  312. "field": "share_id",
  313. "description": "<p>分享的id</p>"
  314. },
  315. {
  316. "group": "Parameter",
  317. "type": "Number",
  318. "optional": false,
  319. "field": "share_key",
  320. "description": "<p>分享的session</p>"
  321. }
  322. ]
  323. }
  324. },
  325. "success": {
  326. "fields": {
  327. "Success 200": [
  328. {
  329. "group": "Success 200",
  330. "type": "Bool",
  331. "optional": false,
  332. "field": "state",
  333. "description": "<p>是否成功,无需关注这个接口返回值</p>"
  334. }
  335. ]
  336. },
  337. "examples": [
  338. {
  339. "title": "操作成功",
  340. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":true}",
  341. "type": "json"
  342. }
  343. ]
  344. },
  345. "error": {
  346. "examples": [
  347. {
  348. "title": "操作失败",
  349. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  350. "type": "json"
  351. }
  352. ]
  353. },
  354. "filename": "/root/input/content/v1/Share.php",
  355. "groupTitle": "Comment"
  356. },
  357. {
  358. "type": "get",
  359. "url": "v1/share.submit",
  360. "title": "提交分享",
  361. "version": "1.0.0",
  362. "name": "share_submit",
  363. "group": "Comment",
  364. "description": "<p>用户提交分享接口</p>",
  365. "parameter": {
  366. "fields": {
  367. "Parameter": [
  368. {
  369. "group": "Parameter",
  370. "type": "Number",
  371. "optional": false,
  372. "field": "appid",
  373. "description": "<p>小程序id</p>"
  374. },
  375. {
  376. "group": "Parameter",
  377. "type": "Number",
  378. "optional": false,
  379. "field": "uid",
  380. "description": "<p>用户id</p>"
  381. },
  382. {
  383. "group": "Parameter",
  384. "type": "String",
  385. "optional": false,
  386. "field": "session",
  387. "description": "<p>验证用户的session</p>"
  388. },
  389. {
  390. "group": "Parameter",
  391. "type": "Number",
  392. "optional": false,
  393. "field": "type",
  394. "description": "<p>分享的类型:1为资讯2为课程</p>"
  395. },
  396. {
  397. "group": "Parameter",
  398. "type": "Number",
  399. "optional": false,
  400. "field": "id",
  401. "description": "<p>分享的类型id</p>"
  402. },
  403. {
  404. "group": "Parameter",
  405. "type": "String",
  406. "optional": false,
  407. "field": "content",
  408. "description": "<p>分享的内容</p>"
  409. }
  410. ]
  411. }
  412. },
  413. "success": {
  414. "fields": {
  415. "Success 200": [
  416. {
  417. "group": "Success 200",
  418. "type": "Number",
  419. "optional": false,
  420. "field": "share_uid",
  421. "description": "<p>用户id</p>"
  422. },
  423. {
  424. "group": "Success 200",
  425. "type": "String",
  426. "optional": false,
  427. "field": "share_key",
  428. "description": "<p>分享的session</p>"
  429. },
  430. {
  431. "group": "Success 200",
  432. "type": "Number",
  433. "optional": false,
  434. "field": "share_id",
  435. "description": "<p>分享的唯一id</p>"
  436. },
  437. {
  438. "group": "Success 200",
  439. "type": "String",
  440. "optional": false,
  441. "field": "desc",
  442. "description": "<p>请将上述几个字段都放到分享的path中:/path/?share_uid=1&amp;share_key=1&amp;share_id=1</p>"
  443. }
  444. ]
  445. },
  446. "examples": [
  447. {
  448. "title": "操作成功",
  449. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"type\":1,\"id\":1,\"uid\":1,\"key\":\"11\", \"share_id\":1}}",
  450. "type": "json"
  451. }
  452. ]
  453. },
  454. "error": {
  455. "examples": [
  456. {
  457. "title": "操作失败",
  458. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  459. "type": "json"
  460. }
  461. ]
  462. },
  463. "filename": "/root/input/content/v1/Share.php",
  464. "groupTitle": "Comment"
  465. },
  466. {
  467. "type": "get",
  468. "url": "v1/vote.submit",
  469. "title": "提交点赞",
  470. "version": "1.0.0",
  471. "name": "vote_submit",
  472. "group": "Comment",
  473. "description": "<p>用户提交点赞数接口</p>",
  474. "parameter": {
  475. "fields": {
  476. "Parameter": [
  477. {
  478. "group": "Parameter",
  479. "type": "Number",
  480. "optional": false,
  481. "field": "appid",
  482. "description": "<p>小程序id</p>"
  483. },
  484. {
  485. "group": "Parameter",
  486. "type": "Number",
  487. "optional": false,
  488. "field": "uid",
  489. "description": "<p>用户id</p>"
  490. },
  491. {
  492. "group": "Parameter",
  493. "type": "String",
  494. "optional": false,
  495. "field": "session",
  496. "description": "<p>验证用户的session</p>"
  497. },
  498. {
  499. "group": "Parameter",
  500. "type": "Number",
  501. "optional": false,
  502. "field": "type",
  503. "description": "<p>点赞的类型:1为资讯2为课程</p>"
  504. },
  505. {
  506. "group": "Parameter",
  507. "type": "Number",
  508. "optional": false,
  509. "field": "id",
  510. "description": "<p>点赞的类型id</p>"
  511. }
  512. ]
  513. }
  514. },
  515. "success": {
  516. "fields": {
  517. "Success 200": [
  518. {
  519. "group": "Success 200",
  520. "type": "Number",
  521. "optional": false,
  522. "field": "id",
  523. "description": "<p>点赞id</p>"
  524. }
  525. ]
  526. },
  527. "examples": [
  528. {
  529. "title": "操作成功",
  530. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}",
  531. "type": "json"
  532. }
  533. ]
  534. },
  535. "error": {
  536. "examples": [
  537. {
  538. "title": "操作失败",
  539. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  540. "type": "json"
  541. }
  542. ]
  543. },
  544. "filename": "/root/input/content/v1/Vote.php",
  545. "groupTitle": "Comment"
  546. },
  547. {
  548. "type": "get",
  549. "url": "v1/news.index",
  550. "title": "首页接口",
  551. "version": "1.0.0",
  552. "name": "api_index",
  553. "group": "Data",
  554. "description": "<p>小程序的首页接口</p> <p>apiSampleRequest /v1/news.index</p>",
  555. "parameter": {
  556. "fields": {
  557. "Parameter": [
  558. {
  559. "group": "Parameter",
  560. "type": "Number",
  561. "optional": false,
  562. "field": "appid",
  563. "description": "<p>小程序id</p>"
  564. }
  565. ]
  566. }
  567. },
  568. "success": {
  569. "fields": {
  570. "Success 200": [
  571. {
  572. "group": "Success 200",
  573. "type": "Object[]",
  574. "optional": false,
  575. "field": "info",
  576. "description": "<p>小程序基本信息</p>"
  577. },
  578. {
  579. "group": "Success 200",
  580. "type": "Number",
  581. "optional": false,
  582. "field": "info.id",
  583. "description": "<p>小程序id</p>"
  584. },
  585. {
  586. "group": "Success 200",
  587. "type": "String",
  588. "optional": false,
  589. "field": "info.name",
  590. "description": "<p>小程序名称</p>"
  591. },
  592. {
  593. "group": "Success 200",
  594. "type": "Number",
  595. "optional": false,
  596. "field": "info.cate_id",
  597. "description": "<p>小程序所属栏目id</p>"
  598. },
  599. {
  600. "group": "Success 200",
  601. "type": "String",
  602. "optional": false,
  603. "field": "info.logo",
  604. "description": "<p>小程序logo</p>"
  605. },
  606. {
  607. "group": "Success 200",
  608. "type": "String",
  609. "optional": false,
  610. "field": "info.title",
  611. "description": "<p>首页标题</p>"
  612. },
  613. {
  614. "group": "Success 200",
  615. "type": "String",
  616. "optional": false,
  617. "field": "info.pic",
  618. "description": "<p>首页头图</p>"
  619. },
  620. {
  621. "group": "Success 200",
  622. "type": "Object[]",
  623. "optional": false,
  624. "field": "cate",
  625. "description": "<p>主栏目信息</p>"
  626. },
  627. {
  628. "group": "Success 200",
  629. "type": "Number",
  630. "optional": false,
  631. "field": "cate.id",
  632. "description": "<p>栏目id</p>"
  633. },
  634. {
  635. "group": "Success 200",
  636. "type": "String",
  637. "optional": false,
  638. "field": "cate.name",
  639. "description": "<p>栏目名称</p>"
  640. },
  641. {
  642. "group": "Success 200",
  643. "type": "Object[]",
  644. "optional": false,
  645. "field": "cate_child",
  646. "description": "<p>子栏目信息</p>"
  647. },
  648. {
  649. "group": "Success 200",
  650. "type": "Number",
  651. "optional": false,
  652. "field": "cate_child.id",
  653. "description": "<p>栏目id</p>"
  654. },
  655. {
  656. "group": "Success 200",
  657. "type": "String",
  658. "optional": false,
  659. "field": "cate_child.name",
  660. "description": "<p>栏目名称</p>"
  661. },
  662. {
  663. "group": "Success 200",
  664. "type": "Number",
  665. "optional": false,
  666. "field": "cate_child.cate_id",
  667. "description": "<p>上级栏目id</p>"
  668. },
  669. {
  670. "group": "Success 200",
  671. "type": "Object[]",
  672. "optional": false,
  673. "field": "cate_child.news",
  674. "description": "<p>资讯信息</p>"
  675. },
  676. {
  677. "group": "Success 200",
  678. "type": "Number",
  679. "optional": false,
  680. "field": "cate_child.news.id",
  681. "description": "<p>资讯id</p>"
  682. },
  683. {
  684. "group": "Success 200",
  685. "type": "String",
  686. "optional": false,
  687. "field": "cate_child.news.name",
  688. "description": "<p>资讯标题</p>"
  689. },
  690. {
  691. "group": "Success 200",
  692. "type": "String",
  693. "optional": false,
  694. "field": "cate_child.news.content",
  695. "description": "<p>资讯内容</p>"
  696. },
  697. {
  698. "group": "Success 200",
  699. "type": "String",
  700. "optional": false,
  701. "field": "cate_child.news.num_view",
  702. "description": "<p>阅读数</p>"
  703. },
  704. {
  705. "group": "Success 200",
  706. "type": "String",
  707. "optional": false,
  708. "field": "cate_child.news.cdate",
  709. "description": "<p>时间</p>"
  710. },
  711. {
  712. "group": "Success 200",
  713. "type": "Object[]",
  714. "optional": false,
  715. "field": "cate_child.news.author",
  716. "description": "<p>作者信息</p>"
  717. },
  718. {
  719. "group": "Success 200",
  720. "type": "Number",
  721. "optional": false,
  722. "field": "cate_child.news.author.id",
  723. "description": "<p>作者id</p>"
  724. },
  725. {
  726. "group": "Success 200",
  727. "type": "String",
  728. "optional": false,
  729. "field": "cate_child.news.author.name",
  730. "description": "<p>作者姓名</p>"
  731. },
  732. {
  733. "group": "Success 200",
  734. "type": "String",
  735. "optional": false,
  736. "field": "cate_child.news.author.pic",
  737. "description": "<p>作者头像</p>"
  738. }
  739. ]
  740. },
  741. "examples": [
  742. {
  743. "title": "操作成功",
  744. "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}}",
  745. "type": "json"
  746. }
  747. ]
  748. },
  749. "error": {
  750. "examples": [
  751. {
  752. "title": "操作失败",
  753. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  754. "type": "json"
  755. }
  756. ]
  757. },
  758. "filename": "/root/input/content/v1/News.php",
  759. "groupTitle": "Data"
  760. },
  761. {
  762. "type": "get",
  763. "url": "v1/course.list",
  764. "title": "听课列表",
  765. "version": "1.0.0",
  766. "name": "course_list",
  767. "group": "Data",
  768. "description": "<p>小程序的听课列表接口</p>",
  769. "parameter": {
  770. "fields": {
  771. "Parameter": [
  772. {
  773. "group": "Parameter",
  774. "type": "Number",
  775. "optional": false,
  776. "field": "appid",
  777. "description": "<p>小程序id</p>"
  778. }
  779. ]
  780. }
  781. },
  782. "success": {
  783. "fields": {
  784. "Success 200": [
  785. {
  786. "group": "Success 200",
  787. "type": "Object[]",
  788. "optional": false,
  789. "field": "info",
  790. "description": "<p>小程序基本信息</p>"
  791. },
  792. {
  793. "group": "Success 200",
  794. "type": "Number",
  795. "optional": false,
  796. "field": "info.id",
  797. "description": "<p>小程序id</p>"
  798. },
  799. {
  800. "group": "Success 200",
  801. "type": "String",
  802. "optional": false,
  803. "field": "info.name",
  804. "description": "<p>小程序名称</p>"
  805. },
  806. {
  807. "group": "Success 200",
  808. "type": "Number",
  809. "optional": false,
  810. "field": "info.cate_id",
  811. "description": "<p>小程序所属栏目id</p>"
  812. },
  813. {
  814. "group": "Success 200",
  815. "type": "String",
  816. "optional": false,
  817. "field": "info.logo",
  818. "description": "<p>小程序logo</p>"
  819. },
  820. {
  821. "group": "Success 200",
  822. "type": "String",
  823. "optional": false,
  824. "field": "info.title",
  825. "description": "<p>首页标题</p>"
  826. },
  827. {
  828. "group": "Success 200",
  829. "type": "String",
  830. "optional": false,
  831. "field": "info.pic",
  832. "description": "<p>首页头图</p>"
  833. },
  834. {
  835. "group": "Success 200",
  836. "type": "Object[]",
  837. "optional": false,
  838. "field": "course",
  839. "description": "<p>听课信息</p>"
  840. },
  841. {
  842. "group": "Success 200",
  843. "type": "Number",
  844. "optional": false,
  845. "field": "course.id",
  846. "description": "<p>听课id</p>"
  847. },
  848. {
  849. "group": "Success 200",
  850. "type": "String",
  851. "optional": false,
  852. "field": "course.name",
  853. "description": "<p>听课标题</p>"
  854. },
  855. {
  856. "group": "Success 200",
  857. "type": "String",
  858. "optional": false,
  859. "field": "course.content",
  860. "description": "<p>听课内容</p>"
  861. },
  862. {
  863. "group": "Success 200",
  864. "type": "String",
  865. "optional": false,
  866. "field": "course.num_view",
  867. "description": "<p>阅读数</p>"
  868. },
  869. {
  870. "group": "Success 200",
  871. "type": "String",
  872. "optional": false,
  873. "field": "course.video",
  874. "description": "<p>视频地址</p>"
  875. },
  876. {
  877. "group": "Success 200",
  878. "type": "String",
  879. "optional": false,
  880. "field": "course.audio",
  881. "description": "<p>音频地址</p>"
  882. },
  883. {
  884. "group": "Success 200",
  885. "type": "String",
  886. "optional": false,
  887. "field": "course.cdate",
  888. "description": "<p>时间</p>"
  889. },
  890. {
  891. "group": "Success 200",
  892. "type": "Object[]",
  893. "optional": false,
  894. "field": "course.author",
  895. "description": "<p>作者信息</p>"
  896. },
  897. {
  898. "group": "Success 200",
  899. "type": "Number",
  900. "optional": false,
  901. "field": "course.author.id",
  902. "description": "<p>作者id</p>"
  903. },
  904. {
  905. "group": "Success 200",
  906. "type": "String",
  907. "optional": false,
  908. "field": "course.author.name",
  909. "description": "<p>作者姓名</p>"
  910. },
  911. {
  912. "group": "Success 200",
  913. "type": "String",
  914. "optional": false,
  915. "field": "course.author.pic",
  916. "description": "<p>作者头像</p>"
  917. }
  918. ]
  919. },
  920. "examples": [
  921. {
  922. "title": "操作成功",
  923. "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}}",
  924. "type": "json"
  925. }
  926. ]
  927. },
  928. "error": {
  929. "examples": [
  930. {
  931. "title": "操作失败",
  932. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  933. "type": "json"
  934. }
  935. ]
  936. },
  937. "filename": "/root/input/content/v1/Course.php",
  938. "groupTitle": "Data"
  939. },
  940. {
  941. "type": "get",
  942. "url": "v1/course.view",
  943. "title": "课程详情",
  944. "version": "1.0.0",
  945. "name": "course_view",
  946. "group": "Data",
  947. "description": "<p>小程序的课程详情接口</p>",
  948. "parameter": {
  949. "fields": {
  950. "Parameter": [
  951. {
  952. "group": "Parameter",
  953. "type": "Number",
  954. "optional": false,
  955. "field": "appid",
  956. "description": "<p>小程序id</p>"
  957. },
  958. {
  959. "group": "Parameter",
  960. "type": "Number",
  961. "optional": false,
  962. "field": "id",
  963. "description": "<p>课程id</p>"
  964. }
  965. ]
  966. }
  967. },
  968. "success": {
  969. "fields": {
  970. "Success 200": [
  971. {
  972. "group": "Success 200",
  973. "type": "Object[]",
  974. "optional": false,
  975. "field": "info",
  976. "description": "<p>小程序基本信息</p>"
  977. },
  978. {
  979. "group": "Success 200",
  980. "type": "Number",
  981. "optional": false,
  982. "field": "info.id",
  983. "description": "<p>小程序id</p>"
  984. },
  985. {
  986. "group": "Success 200",
  987. "type": "String",
  988. "optional": false,
  989. "field": "info.name",
  990. "description": "<p>小程序名称</p>"
  991. },
  992. {
  993. "group": "Success 200",
  994. "type": "Number",
  995. "optional": false,
  996. "field": "info.cate_id",
  997. "description": "<p>小程序所属栏目id</p>"
  998. },
  999. {
  1000. "group": "Success 200",
  1001. "type": "String",
  1002. "optional": false,
  1003. "field": "info.logo",
  1004. "description": "<p>小程序logo</p>"
  1005. },
  1006. {
  1007. "group": "Success 200",
  1008. "type": "String",
  1009. "optional": false,
  1010. "field": "info.title",
  1011. "description": "<p>首页标题</p>"
  1012. },
  1013. {
  1014. "group": "Success 200",
  1015. "type": "String",
  1016. "optional": false,
  1017. "field": "info.pic",
  1018. "description": "<p>首页头图</p>"
  1019. },
  1020. {
  1021. "group": "Success 200",
  1022. "type": "Object[]",
  1023. "optional": false,
  1024. "field": "course",
  1025. "description": "<p>听课信息</p>"
  1026. },
  1027. {
  1028. "group": "Success 200",
  1029. "type": "Number",
  1030. "optional": false,
  1031. "field": "course.id",
  1032. "description": "<p>听课id</p>"
  1033. },
  1034. {
  1035. "group": "Success 200",
  1036. "type": "String",
  1037. "optional": false,
  1038. "field": "course.name",
  1039. "description": "<p>听课标题</p>"
  1040. },
  1041. {
  1042. "group": "Success 200",
  1043. "type": "String",
  1044. "optional": false,
  1045. "field": "course.content",
  1046. "description": "<p>听课内容</p>"
  1047. },
  1048. {
  1049. "group": "Success 200",
  1050. "type": "String",
  1051. "optional": false,
  1052. "field": "course.num_view",
  1053. "description": "<p>阅读数</p>"
  1054. },
  1055. {
  1056. "group": "Success 200",
  1057. "type": "String",
  1058. "optional": false,
  1059. "field": "course.video",
  1060. "description": "<p>视频地址</p>"
  1061. },
  1062. {
  1063. "group": "Success 200",
  1064. "type": "String",
  1065. "optional": false,
  1066. "field": "course.audio",
  1067. "description": "<p>音频地址</p>"
  1068. },
  1069. {
  1070. "group": "Success 200",
  1071. "type": "String",
  1072. "optional": false,
  1073. "field": "course.cdate",
  1074. "description": "<p>时间</p>"
  1075. },
  1076. {
  1077. "group": "Success 200",
  1078. "type": "Object[]",
  1079. "optional": false,
  1080. "field": "course.author",
  1081. "description": "<p>作者信息</p>"
  1082. },
  1083. {
  1084. "group": "Success 200",
  1085. "type": "Number",
  1086. "optional": false,
  1087. "field": "course.author.id",
  1088. "description": "<p>作者id</p>"
  1089. },
  1090. {
  1091. "group": "Success 200",
  1092. "type": "String",
  1093. "optional": false,
  1094. "field": "course.author.name",
  1095. "description": "<p>作者姓名</p>"
  1096. },
  1097. {
  1098. "group": "Success 200",
  1099. "type": "String",
  1100. "optional": false,
  1101. "field": "course.author.pic",
  1102. "description": "<p>作者头像</p>"
  1103. }
  1104. ]
  1105. },
  1106. "examples": [
  1107. {
  1108. "title": "操作成功",
  1109. "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\"}}}}",
  1110. "type": "json"
  1111. }
  1112. ]
  1113. },
  1114. "error": {
  1115. "examples": [
  1116. {
  1117. "title": "操作失败",
  1118. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1119. "type": "json"
  1120. }
  1121. ]
  1122. },
  1123. "filename": "/root/input/content/v1/Course.php",
  1124. "groupTitle": "Data"
  1125. },
  1126. {
  1127. "type": "get",
  1128. "url": "v1/meeting.list",
  1129. "title": "会议列表",
  1130. "version": "1.0.0",
  1131. "name": "meeting_list",
  1132. "group": "Data",
  1133. "description": "<p>小程序的会议列表接口</p>",
  1134. "parameter": {
  1135. "fields": {
  1136. "Parameter": [
  1137. {
  1138. "group": "Parameter",
  1139. "type": "Number",
  1140. "optional": false,
  1141. "field": "appid",
  1142. "description": "<p>小程序id</p>"
  1143. }
  1144. ]
  1145. }
  1146. },
  1147. "success": {
  1148. "fields": {
  1149. "Success 200": [
  1150. {
  1151. "group": "Success 200",
  1152. "type": "Object[]",
  1153. "optional": false,
  1154. "field": "info",
  1155. "description": "<p>小程序基本信息</p>"
  1156. },
  1157. {
  1158. "group": "Success 200",
  1159. "type": "Number",
  1160. "optional": false,
  1161. "field": "info.id",
  1162. "description": "<p>小程序id</p>"
  1163. },
  1164. {
  1165. "group": "Success 200",
  1166. "type": "String",
  1167. "optional": false,
  1168. "field": "info.name",
  1169. "description": "<p>小程序名称</p>"
  1170. },
  1171. {
  1172. "group": "Success 200",
  1173. "type": "Number",
  1174. "optional": false,
  1175. "field": "info.cate_id",
  1176. "description": "<p>小程序所属栏目id</p>"
  1177. },
  1178. {
  1179. "group": "Success 200",
  1180. "type": "String",
  1181. "optional": false,
  1182. "field": "info.logo",
  1183. "description": "<p>小程序logo</p>"
  1184. },
  1185. {
  1186. "group": "Success 200",
  1187. "type": "String",
  1188. "optional": false,
  1189. "field": "info.title",
  1190. "description": "<p>首页标题</p>"
  1191. },
  1192. {
  1193. "group": "Success 200",
  1194. "type": "String",
  1195. "optional": false,
  1196. "field": "info.pic",
  1197. "description": "<p>首页头图</p>"
  1198. },
  1199. {
  1200. "group": "Success 200",
  1201. "type": "Object[]",
  1202. "optional": false,
  1203. "field": "meeting",
  1204. "description": "<p>听课信息</p>"
  1205. },
  1206. {
  1207. "group": "Success 200",
  1208. "type": "Number",
  1209. "optional": false,
  1210. "field": "meeting.id",
  1211. "description": "<p>听课id</p>"
  1212. },
  1213. {
  1214. "group": "Success 200",
  1215. "type": "String",
  1216. "optional": false,
  1217. "field": "meeting.name",
  1218. "description": "<p>听课标题</p>"
  1219. },
  1220. {
  1221. "group": "Success 200",
  1222. "type": "String",
  1223. "optional": false,
  1224. "field": "meeting.content",
  1225. "description": "<p>听课内容</p>"
  1226. },
  1227. {
  1228. "group": "Success 200",
  1229. "type": "String",
  1230. "optional": false,
  1231. "field": "meeting.num_view",
  1232. "description": "<p>阅读数</p>"
  1233. },
  1234. {
  1235. "group": "Success 200",
  1236. "type": "String",
  1237. "optional": false,
  1238. "field": "meeting.cdate",
  1239. "description": "<p>时间</p>"
  1240. }
  1241. ]
  1242. },
  1243. "examples": [
  1244. {
  1245. "title": "操作成功",
  1246. "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}}",
  1247. "type": "json"
  1248. }
  1249. ]
  1250. },
  1251. "error": {
  1252. "examples": [
  1253. {
  1254. "title": "操作失败",
  1255. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1256. "type": "json"
  1257. }
  1258. ]
  1259. },
  1260. "filename": "/root/input/content/v1/Meeting.php",
  1261. "groupTitle": "Data"
  1262. },
  1263. {
  1264. "type": "get",
  1265. "url": "v1/meeting.view",
  1266. "title": "会议详情",
  1267. "version": "1.0.0",
  1268. "name": "meeting_view",
  1269. "group": "Data",
  1270. "description": "<p>小程序的会议详情接口</p>",
  1271. "parameter": {
  1272. "fields": {
  1273. "Parameter": [
  1274. {
  1275. "group": "Parameter",
  1276. "type": "Number",
  1277. "optional": false,
  1278. "field": "appid",
  1279. "description": "<p>小程序id</p>"
  1280. },
  1281. {
  1282. "group": "Parameter",
  1283. "type": "Number",
  1284. "optional": false,
  1285. "field": "id",
  1286. "description": "<p>会议id</p>"
  1287. }
  1288. ]
  1289. }
  1290. },
  1291. "success": {
  1292. "fields": {
  1293. "Success 200": [
  1294. {
  1295. "group": "Success 200",
  1296. "type": "Object[]",
  1297. "optional": false,
  1298. "field": "info",
  1299. "description": "<p>小程序基本信息</p>"
  1300. },
  1301. {
  1302. "group": "Success 200",
  1303. "type": "Number",
  1304. "optional": false,
  1305. "field": "info.id",
  1306. "description": "<p>小程序id</p>"
  1307. },
  1308. {
  1309. "group": "Success 200",
  1310. "type": "String",
  1311. "optional": false,
  1312. "field": "info.name",
  1313. "description": "<p>小程序名称</p>"
  1314. },
  1315. {
  1316. "group": "Success 200",
  1317. "type": "Number",
  1318. "optional": false,
  1319. "field": "info.cate_id",
  1320. "description": "<p>小程序所属栏目id</p>"
  1321. },
  1322. {
  1323. "group": "Success 200",
  1324. "type": "String",
  1325. "optional": false,
  1326. "field": "info.logo",
  1327. "description": "<p>小程序logo</p>"
  1328. },
  1329. {
  1330. "group": "Success 200",
  1331. "type": "String",
  1332. "optional": false,
  1333. "field": "info.title",
  1334. "description": "<p>首页标题</p>"
  1335. },
  1336. {
  1337. "group": "Success 200",
  1338. "type": "String",
  1339. "optional": false,
  1340. "field": "info.pic",
  1341. "description": "<p>首页头图</p>"
  1342. },
  1343. {
  1344. "group": "Success 200",
  1345. "type": "Object[]",
  1346. "optional": false,
  1347. "field": "meeting",
  1348. "description": "<p>听课信息</p>"
  1349. },
  1350. {
  1351. "group": "Success 200",
  1352. "type": "Number",
  1353. "optional": false,
  1354. "field": "meeting.id",
  1355. "description": "<p>听课id</p>"
  1356. },
  1357. {
  1358. "group": "Success 200",
  1359. "type": "String",
  1360. "optional": false,
  1361. "field": "meeting.name",
  1362. "description": "<p>听课标题</p>"
  1363. },
  1364. {
  1365. "group": "Success 200",
  1366. "type": "String",
  1367. "optional": false,
  1368. "field": "meeting.content",
  1369. "description": "<p>听课内容</p>"
  1370. },
  1371. {
  1372. "group": "Success 200",
  1373. "type": "String",
  1374. "optional": false,
  1375. "field": "meeting.num_view",
  1376. "description": "<p>阅读数</p>"
  1377. },
  1378. {
  1379. "group": "Success 200",
  1380. "type": "String",
  1381. "optional": false,
  1382. "field": "meeting.cdate",
  1383. "description": "<p>时间</p>"
  1384. }
  1385. ]
  1386. },
  1387. "examples": [
  1388. {
  1389. "title": "操作成功",
  1390. "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\"}}}",
  1391. "type": "json"
  1392. }
  1393. ]
  1394. },
  1395. "error": {
  1396. "examples": [
  1397. {
  1398. "title": "操作失败",
  1399. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1400. "type": "json"
  1401. }
  1402. ]
  1403. },
  1404. "filename": "/root/input/content/v1/Meeting.php",
  1405. "groupTitle": "Data"
  1406. },
  1407. {
  1408. "type": "get",
  1409. "url": "v1/news.list",
  1410. "title": "资讯列表",
  1411. "version": "1.0.0",
  1412. "name": "news_list",
  1413. "group": "Data",
  1414. "description": "<p>小程序的资讯列表接口</p>",
  1415. "parameter": {
  1416. "fields": {
  1417. "Parameter": [
  1418. {
  1419. "group": "Parameter",
  1420. "type": "Number",
  1421. "optional": false,
  1422. "field": "appid",
  1423. "description": "<p>小程序id</p>"
  1424. },
  1425. {
  1426. "group": "Parameter",
  1427. "type": "Number",
  1428. "optional": false,
  1429. "field": "cateid",
  1430. "description": "<p>子栏目id</p>"
  1431. }
  1432. ]
  1433. }
  1434. },
  1435. "success": {
  1436. "fields": {
  1437. "Success 200": [
  1438. {
  1439. "group": "Success 200",
  1440. "type": "Object[]",
  1441. "optional": false,
  1442. "field": "info",
  1443. "description": "<p>小程序基本信息</p>"
  1444. },
  1445. {
  1446. "group": "Success 200",
  1447. "type": "Number",
  1448. "optional": false,
  1449. "field": "info.id",
  1450. "description": "<p>小程序id</p>"
  1451. },
  1452. {
  1453. "group": "Success 200",
  1454. "type": "String",
  1455. "optional": false,
  1456. "field": "info.name",
  1457. "description": "<p>小程序名称</p>"
  1458. },
  1459. {
  1460. "group": "Success 200",
  1461. "type": "Number",
  1462. "optional": false,
  1463. "field": "info.cate_id",
  1464. "description": "<p>小程序所属栏目id</p>"
  1465. },
  1466. {
  1467. "group": "Success 200",
  1468. "type": "String",
  1469. "optional": false,
  1470. "field": "info.logo",
  1471. "description": "<p>小程序logo</p>"
  1472. },
  1473. {
  1474. "group": "Success 200",
  1475. "type": "String",
  1476. "optional": false,
  1477. "field": "info.title",
  1478. "description": "<p>首页标题</p>"
  1479. },
  1480. {
  1481. "group": "Success 200",
  1482. "type": "String",
  1483. "optional": false,
  1484. "field": "info.pic",
  1485. "description": "<p>首页头图</p>"
  1486. },
  1487. {
  1488. "group": "Success 200",
  1489. "type": "Object[]",
  1490. "optional": false,
  1491. "field": "news",
  1492. "description": "<p>资讯信息</p>"
  1493. },
  1494. {
  1495. "group": "Success 200",
  1496. "type": "Number",
  1497. "optional": false,
  1498. "field": "news.id",
  1499. "description": "<p>资讯id</p>"
  1500. },
  1501. {
  1502. "group": "Success 200",
  1503. "type": "String",
  1504. "optional": false,
  1505. "field": "news.name",
  1506. "description": "<p>资讯标题</p>"
  1507. },
  1508. {
  1509. "group": "Success 200",
  1510. "type": "String",
  1511. "optional": false,
  1512. "field": "news.content",
  1513. "description": "<p>资讯内容</p>"
  1514. },
  1515. {
  1516. "group": "Success 200",
  1517. "type": "String",
  1518. "optional": false,
  1519. "field": "news.num_view",
  1520. "description": "<p>阅读数</p>"
  1521. },
  1522. {
  1523. "group": "Success 200",
  1524. "type": "String",
  1525. "optional": false,
  1526. "field": "news.cdate",
  1527. "description": "<p>时间</p>"
  1528. },
  1529. {
  1530. "group": "Success 200",
  1531. "type": "Object[]",
  1532. "optional": false,
  1533. "field": "news.author",
  1534. "description": "<p>作者信息</p>"
  1535. },
  1536. {
  1537. "group": "Success 200",
  1538. "type": "Number",
  1539. "optional": false,
  1540. "field": "news.author.id",
  1541. "description": "<p>作者id</p>"
  1542. },
  1543. {
  1544. "group": "Success 200",
  1545. "type": "String",
  1546. "optional": false,
  1547. "field": "news.author.name",
  1548. "description": "<p>作者姓名</p>"
  1549. },
  1550. {
  1551. "group": "Success 200",
  1552. "type": "String",
  1553. "optional": false,
  1554. "field": "news.author.pic",
  1555. "description": "<p>作者头像</p>"
  1556. }
  1557. ]
  1558. },
  1559. "examples": [
  1560. {
  1561. "title": "操作成功",
  1562. "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}}",
  1563. "type": "json"
  1564. }
  1565. ]
  1566. },
  1567. "error": {
  1568. "examples": [
  1569. {
  1570. "title": "操作失败",
  1571. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1572. "type": "json"
  1573. }
  1574. ]
  1575. },
  1576. "filename": "/root/input/content/v1/News.php",
  1577. "groupTitle": "Data"
  1578. },
  1579. {
  1580. "type": "get",
  1581. "url": "v1/news.view",
  1582. "title": "资讯详情",
  1583. "version": "1.0.0",
  1584. "name": "news_view",
  1585. "group": "Data",
  1586. "description": "<p>小程序的资讯详情接口</p>",
  1587. "parameter": {
  1588. "fields": {
  1589. "Parameter": [
  1590. {
  1591. "group": "Parameter",
  1592. "type": "Number",
  1593. "optional": false,
  1594. "field": "appid",
  1595. "description": "<p>小程序id</p>"
  1596. },
  1597. {
  1598. "group": "Parameter",
  1599. "type": "Number",
  1600. "optional": false,
  1601. "field": "id",
  1602. "description": "<p>资讯id</p>"
  1603. }
  1604. ]
  1605. }
  1606. },
  1607. "success": {
  1608. "fields": {
  1609. "Success 200": [
  1610. {
  1611. "group": "Success 200",
  1612. "type": "Object[]",
  1613. "optional": false,
  1614. "field": "info",
  1615. "description": "<p>小程序基本信息</p>"
  1616. },
  1617. {
  1618. "group": "Success 200",
  1619. "type": "Number",
  1620. "optional": false,
  1621. "field": "info.id",
  1622. "description": "<p>小程序id</p>"
  1623. },
  1624. {
  1625. "group": "Success 200",
  1626. "type": "String",
  1627. "optional": false,
  1628. "field": "info.name",
  1629. "description": "<p>小程序名称</p>"
  1630. },
  1631. {
  1632. "group": "Success 200",
  1633. "type": "Number",
  1634. "optional": false,
  1635. "field": "info.cate_id",
  1636. "description": "<p>小程序所属栏目id</p>"
  1637. },
  1638. {
  1639. "group": "Success 200",
  1640. "type": "String",
  1641. "optional": false,
  1642. "field": "info.logo",
  1643. "description": "<p>小程序logo</p>"
  1644. },
  1645. {
  1646. "group": "Success 200",
  1647. "type": "String",
  1648. "optional": false,
  1649. "field": "info.title",
  1650. "description": "<p>首页标题</p>"
  1651. },
  1652. {
  1653. "group": "Success 200",
  1654. "type": "String",
  1655. "optional": false,
  1656. "field": "info.pic",
  1657. "description": "<p>首页头图</p>"
  1658. },
  1659. {
  1660. "group": "Success 200",
  1661. "type": "Object[]",
  1662. "optional": false,
  1663. "field": "news",
  1664. "description": "<p>资讯信息</p>"
  1665. },
  1666. {
  1667. "group": "Success 200",
  1668. "type": "Number",
  1669. "optional": false,
  1670. "field": "news.id",
  1671. "description": "<p>资讯id</p>"
  1672. },
  1673. {
  1674. "group": "Success 200",
  1675. "type": "String",
  1676. "optional": false,
  1677. "field": "news.name",
  1678. "description": "<p>资讯标题</p>"
  1679. },
  1680. {
  1681. "group": "Success 200",
  1682. "type": "String",
  1683. "optional": false,
  1684. "field": "news.content",
  1685. "description": "<p>资讯内容</p>"
  1686. },
  1687. {
  1688. "group": "Success 200",
  1689. "type": "String",
  1690. "optional": false,
  1691. "field": "news.num_view",
  1692. "description": "<p>阅读数</p>"
  1693. },
  1694. {
  1695. "group": "Success 200",
  1696. "type": "String",
  1697. "optional": false,
  1698. "field": "news.cdate",
  1699. "description": "<p>时间</p>"
  1700. },
  1701. {
  1702. "group": "Success 200",
  1703. "type": "Object[]",
  1704. "optional": false,
  1705. "field": "news.author",
  1706. "description": "<p>作者信息</p>"
  1707. },
  1708. {
  1709. "group": "Success 200",
  1710. "type": "Number",
  1711. "optional": false,
  1712. "field": "news.author.id",
  1713. "description": "<p>作者id</p>"
  1714. },
  1715. {
  1716. "group": "Success 200",
  1717. "type": "String",
  1718. "optional": false,
  1719. "field": "news.author.name",
  1720. "description": "<p>作者姓名</p>"
  1721. },
  1722. {
  1723. "group": "Success 200",
  1724. "type": "String",
  1725. "optional": false,
  1726. "field": "news.author.pic",
  1727. "description": "<p>作者头像</p>"
  1728. }
  1729. ]
  1730. },
  1731. "examples": [
  1732. {
  1733. "title": "操作成功",
  1734. "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\"}}}}",
  1735. "type": "json"
  1736. }
  1737. ]
  1738. },
  1739. "error": {
  1740. "examples": [
  1741. {
  1742. "title": "操作失败",
  1743. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1744. "type": "json"
  1745. }
  1746. ]
  1747. },
  1748. "filename": "/root/input/content/v1/News.php",
  1749. "groupTitle": "Data"
  1750. },
  1751. {
  1752. "type": "get",
  1753. "url": "v1/login.bind",
  1754. "title": "用户登录",
  1755. "version": "1.0.0",
  1756. "name": "login_bind",
  1757. "group": "User",
  1758. "description": "<p>用户登录接口</p>",
  1759. "parameter": {
  1760. "fields": {
  1761. "Parameter": [
  1762. {
  1763. "group": "Parameter",
  1764. "type": "Number",
  1765. "optional": false,
  1766. "field": "appid",
  1767. "description": "<p>小程序id</p>"
  1768. },
  1769. {
  1770. "group": "Parameter",
  1771. "type": "String",
  1772. "optional": false,
  1773. "field": "code",
  1774. "description": "<p>小程序登录的code</p>"
  1775. }
  1776. ]
  1777. }
  1778. },
  1779. "success": {
  1780. "fields": {
  1781. "Success 200": [
  1782. {
  1783. "group": "Success 200",
  1784. "type": "Number",
  1785. "optional": false,
  1786. "field": "uid",
  1787. "description": "<p>用户id</p>"
  1788. },
  1789. {
  1790. "group": "Success 200",
  1791. "type": "String",
  1792. "optional": false,
  1793. "field": "session",
  1794. "description": "<p>验证用户有效性的session key 请保存在客户端</p>"
  1795. }
  1796. ]
  1797. },
  1798. "examples": [
  1799. {
  1800. "title": "操作成功",
  1801. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"uid\":1,\"session\":\"111\"}}",
  1802. "type": "json"
  1803. }
  1804. ]
  1805. },
  1806. "error": {
  1807. "examples": [
  1808. {
  1809. "title": "操作失败",
  1810. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1811. "type": "json"
  1812. }
  1813. ]
  1814. },
  1815. "filename": "/root/input/content/v1/Login.php",
  1816. "groupTitle": "User"
  1817. },
  1818. {
  1819. "type": "get",
  1820. "url": "v1/login.update",
  1821. "title": "更新用户信息",
  1822. "version": "1.0.0",
  1823. "name": "login_update",
  1824. "group": "User",
  1825. "description": "<p>用户更新信息接口</p>",
  1826. "parameter": {
  1827. "fields": {
  1828. "Parameter": [
  1829. {
  1830. "group": "Parameter",
  1831. "type": "Number",
  1832. "optional": false,
  1833. "field": "appid",
  1834. "description": "<p>小程序id</p>"
  1835. },
  1836. {
  1837. "group": "Parameter",
  1838. "type": "Number",
  1839. "optional": false,
  1840. "field": "uid",
  1841. "description": "<p>用户id</p>"
  1842. },
  1843. {
  1844. "group": "Parameter",
  1845. "type": "String",
  1846. "optional": false,
  1847. "field": "session",
  1848. "description": "<p>验证用户的session</p>"
  1849. }
  1850. ]
  1851. }
  1852. },
  1853. "success": {
  1854. "fields": {
  1855. "Success 200": [
  1856. {
  1857. "group": "Success 200",
  1858. "type": "Number",
  1859. "optional": false,
  1860. "field": "uid",
  1861. "description": "<p>用户id</p>"
  1862. }
  1863. ]
  1864. },
  1865. "examples": [
  1866. {
  1867. "title": "操作成功",
  1868. "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":1}",
  1869. "type": "json"
  1870. }
  1871. ]
  1872. },
  1873. "error": {
  1874. "examples": [
  1875. {
  1876. "title": "操作失败",
  1877. "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
  1878. "type": "json"
  1879. }
  1880. ]
  1881. },
  1882. "filename": "/root/input/content/v1/Login.php",
  1883. "groupTitle": "User"
  1884. }
  1885. ]