api_data.js 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084
  1. define({ "api": [
  2. {
  3. "type": "get",
  4. "url": "common",
  5. "title": "公共参数说明",
  6. "version": "1.0.0",
  7. "name": "common",
  8. "group": "Common",
  9. "description": "<p>介绍公共参数</p>",
  10. "parameter": {
  11. "fields": {
  12. "Parameter": [
  13. {
  14. "group": "Parameter",
  15. "type": "Number",
  16. "optional": false,
  17. "field": "json",
  18. "description": "<p>是否返回json格式的数据1为返回2为不返回</p>"
  19. },
  20. {
  21. "group": "Parameter",
  22. "type": "Number",
  23. "optional": false,
  24. "field": "signature",
  25. "description": "<p>用于登录后的uid验证,每次都要传入,请登录后将这个值保存在本地</p>"
  26. },
  27. {
  28. "group": "Parameter",
  29. "type": "Number",
  30. "optional": false,
  31. "field": "pg",
  32. "description": "<p>用于分页传参,比如请求第二页数据,则加上该参数pg=2,没有分页和瀑布流不需要该参数</p>"
  33. }
  34. ]
  35. }
  36. },
  37. "success": {
  38. "fields": {
  39. "Success 200": [
  40. {
  41. "group": "Success 200",
  42. "type": "Number",
  43. "optional": false,
  44. "field": "status",
  45. "description": "<p>状态,1为有效2为无效</p>"
  46. },
  47. {
  48. "group": "Success 200",
  49. "type": "String",
  50. "optional": false,
  51. "field": "msg",
  52. "description": "<p>请求的数据是否成功的提示</p>"
  53. },
  54. {
  55. "group": "Success 200",
  56. "type": "String",
  57. "optional": false,
  58. "field": "data",
  59. "description": "<p>如果status为1,data有值</p>"
  60. },
  61. {
  62. "group": "Success 200",
  63. "type": "Object[]",
  64. "optional": false,
  65. "field": "page",
  66. "description": "<p>分页信息</p>"
  67. },
  68. {
  69. "group": "Success 200",
  70. "type": "Number",
  71. "optional": false,
  72. "field": "page.total",
  73. "description": "<p>分页总数</p>"
  74. },
  75. {
  76. "group": "Success 200",
  77. "type": "Number",
  78. "optional": false,
  79. "field": "page.current_page",
  80. "description": "<p>当前页</p>"
  81. },
  82. {
  83. "group": "Success 200",
  84. "type": "Number",
  85. "optional": false,
  86. "field": "page.total_page",
  87. "description": "<p>总页数</p>"
  88. },
  89. {
  90. "group": "Success 200",
  91. "type": "Number",
  92. "optional": false,
  93. "field": "page.next_page",
  94. "description": "<p>下一页</p>"
  95. },
  96. {
  97. "group": "Success 200",
  98. "type": "Number",
  99. "optional": false,
  100. "field": "page.prev_page",
  101. "description": "<p>上一页</p>"
  102. },
  103. {
  104. "group": "Success 200",
  105. "type": "Number",
  106. "optional": false,
  107. "field": "page.status",
  108. "description": "<p>是否有下一页数据,0为没有</p>"
  109. }
  110. ]
  111. }
  112. },
  113. "filename": "/root/input/doc/apidoc.php",
  114. "groupTitle": "Common"
  115. },
  116. {
  117. "type": "get",
  118. "url": "passport/?l=applet.bind",
  119. "title": "用户登录",
  120. "version": "1.0.0",
  121. "name": "applet_bind",
  122. "group": "Passport",
  123. "description": "<p>用户登录</p>",
  124. "parameter": {
  125. "fields": {
  126. "Parameter": [
  127. {
  128. "group": "Parameter",
  129. "type": "String",
  130. "optional": false,
  131. "field": "code",
  132. "description": "<p>微信登录返回的code</p>"
  133. }
  134. ]
  135. }
  136. },
  137. "success": {
  138. "fields": {
  139. "Success 200": [
  140. {
  141. "group": "Success 200",
  142. "type": "Number",
  143. "optional": false,
  144. "field": "vid",
  145. "description": "<p>微信id,请保存在本地</p>"
  146. },
  147. {
  148. "group": "Success 200",
  149. "type": "Number",
  150. "optional": false,
  151. "field": "uid",
  152. "description": "<p>用户id,请保存在本地</p>"
  153. },
  154. {
  155. "group": "Success 200",
  156. "type": "String",
  157. "optional": false,
  158. "field": "signature",
  159. "description": "<p>用于登录后的uid验证,每次都要传入,请登录后将这个值保存在本地</p>"
  160. }
  161. ]
  162. }
  163. },
  164. "filename": "/root/input/doc/apidoc.php",
  165. "groupTitle": "Passport"
  166. },
  167. {
  168. "type": "get",
  169. "url": "passport/?l=applet.bind_mobile",
  170. "title": "绑定手机号-验证码绑定",
  171. "version": "1.0.0",
  172. "name": "applet_bind_mobile",
  173. "group": "Passport",
  174. "description": "<p>绑定手机号-验证码绑定</p>",
  175. "parameter": {
  176. "fields": {
  177. "Parameter": [
  178. {
  179. "group": "Parameter",
  180. "type": "Number",
  181. "optional": false,
  182. "field": "uid",
  183. "description": "<p>用户id</p>"
  184. },
  185. {
  186. "group": "Parameter",
  187. "type": "Number",
  188. "optional": false,
  189. "field": "mobile",
  190. "description": "<p>手机号</p>"
  191. },
  192. {
  193. "group": "Parameter",
  194. "type": "String",
  195. "optional": false,
  196. "field": "mcode",
  197. "description": "<p>验证码</p>"
  198. },
  199. {
  200. "group": "Parameter",
  201. "type": "String",
  202. "optional": false,
  203. "field": "signature",
  204. "description": "<p>signature</p>"
  205. }
  206. ]
  207. }
  208. },
  209. "success": {
  210. "fields": {
  211. "Success 200": [
  212. {
  213. "group": "Success 200",
  214. "type": "Number",
  215. "optional": false,
  216. "field": "uid",
  217. "description": "<p>用户id,请保存在本地</p>"
  218. },
  219. {
  220. "group": "Success 200",
  221. "type": "String",
  222. "optional": false,
  223. "field": "signature",
  224. "description": "<p>用于登录后的uid验证,每次都要传入,请登录后将这个值保存在本地</p>"
  225. }
  226. ]
  227. }
  228. },
  229. "filename": "/root/input/doc/apidoc.php",
  230. "groupTitle": "Passport"
  231. },
  232. {
  233. "type": "get",
  234. "url": "passport/?l=applet.mobile",
  235. "title": "更新用户手机号-微信绑定",
  236. "version": "1.0.0",
  237. "name": "applet_mobile",
  238. "group": "Passport",
  239. "description": "<p>更新用户手机号-微信绑定</p>",
  240. "parameter": {
  241. "fields": {
  242. "Parameter": [
  243. {
  244. "group": "Parameter",
  245. "type": "String",
  246. "optional": false,
  247. "field": "iv",
  248. "description": "<p>微信的加密参数</p>"
  249. },
  250. {
  251. "group": "Parameter",
  252. "type": "String",
  253. "optional": false,
  254. "field": "encryptedData",
  255. "description": "<p>微信的加密参数</p>"
  256. },
  257. {
  258. "group": "Parameter",
  259. "type": "Number",
  260. "optional": false,
  261. "field": "vid",
  262. "description": "<p>微信id</p>"
  263. },
  264. {
  265. "group": "Parameter",
  266. "type": "Number",
  267. "optional": false,
  268. "field": "uid",
  269. "description": "<p>用户id</p>"
  270. },
  271. {
  272. "group": "Parameter",
  273. "type": "String",
  274. "optional": false,
  275. "field": "signature",
  276. "description": "<p>signature</p>"
  277. }
  278. ]
  279. }
  280. },
  281. "success": {
  282. "fields": {
  283. "Success 200": [
  284. {
  285. "group": "Success 200",
  286. "type": "Number",
  287. "optional": false,
  288. "field": "vid",
  289. "description": "<p>微信id,请保存在本地</p>"
  290. },
  291. {
  292. "group": "Success 200",
  293. "type": "Number",
  294. "optional": false,
  295. "field": "uid",
  296. "description": "<p>用户id,请保存在本地</p>"
  297. },
  298. {
  299. "group": "Success 200",
  300. "type": "String",
  301. "optional": false,
  302. "field": "signature",
  303. "description": "<p>用于登录后的uid验证,每次都要传入,请登录后将这个值保存在本地</p>"
  304. }
  305. ]
  306. }
  307. },
  308. "filename": "/root/input/doc/apidoc.php",
  309. "groupTitle": "Passport"
  310. },
  311. {
  312. "type": "get",
  313. "url": "passport/?l=applet.update",
  314. "title": "更新用户信息",
  315. "version": "1.0.0",
  316. "name": "applet_update",
  317. "group": "Passport",
  318. "description": "<p>更新用户信息</p>",
  319. "parameter": {
  320. "fields": {
  321. "Parameter": [
  322. {
  323. "group": "Parameter",
  324. "type": "String",
  325. "optional": false,
  326. "field": "nickname",
  327. "description": "<p>用户昵称</p>"
  328. },
  329. {
  330. "group": "Parameter",
  331. "type": "String",
  332. "optional": false,
  333. "field": "avatarurl",
  334. "description": "<p>用户头像</p>"
  335. },
  336. {
  337. "group": "Parameter",
  338. "type": "String",
  339. "optional": false,
  340. "field": "iv",
  341. "description": "<p>微信的加密参数</p>"
  342. },
  343. {
  344. "group": "Parameter",
  345. "type": "String",
  346. "optional": false,
  347. "field": "encryptedData",
  348. "description": "<p>微信的加密参数</p>"
  349. },
  350. {
  351. "group": "Parameter",
  352. "type": "Number",
  353. "optional": false,
  354. "field": "vid",
  355. "description": "<p>微信id</p>"
  356. },
  357. {
  358. "group": "Parameter",
  359. "type": "Number",
  360. "optional": false,
  361. "field": "uid",
  362. "description": "<p>用户id</p>"
  363. },
  364. {
  365. "group": "Parameter",
  366. "type": "String",
  367. "optional": false,
  368. "field": "signature",
  369. "description": "<p>signature</p>"
  370. }
  371. ]
  372. }
  373. },
  374. "success": {
  375. "fields": {
  376. "Success 200": [
  377. {
  378. "group": "Success 200",
  379. "type": "Number",
  380. "optional": false,
  381. "field": "vid",
  382. "description": "<p>微信id,请保存在本地</p>"
  383. },
  384. {
  385. "group": "Success 200",
  386. "type": "Number",
  387. "optional": false,
  388. "field": "uid",
  389. "description": "<p>用户id,请保存在本地</p>"
  390. },
  391. {
  392. "group": "Success 200",
  393. "type": "String",
  394. "optional": false,
  395. "field": "signature",
  396. "description": "<p>用于登录后的uid验证,每次都要传入,请登录后将这个值保存在本地</p>"
  397. }
  398. ]
  399. }
  400. },
  401. "filename": "/root/input/doc/apidoc.php",
  402. "groupTitle": "Passport"
  403. },
  404. {
  405. "type": "get",
  406. "url": "passport/?l=reg.getMCode",
  407. "title": "获取手机验证码",
  408. "version": "1.0.0",
  409. "name": "reg_getMCode",
  410. "group": "Passport",
  411. "description": "<p>获取手机验证码</p>",
  412. "parameter": {
  413. "fields": {
  414. "Parameter": [
  415. {
  416. "group": "Parameter",
  417. "type": "Number",
  418. "optional": false,
  419. "field": "mobile",
  420. "description": "<p>手机号</p>"
  421. },
  422. {
  423. "group": "Parameter",
  424. "type": "String",
  425. "optional": false,
  426. "field": "signature",
  427. "description": "<p>signature</p>"
  428. }
  429. ]
  430. }
  431. },
  432. "success": {
  433. "fields": {
  434. "Success 200": [
  435. {
  436. "group": "Success 200",
  437. "type": "String",
  438. "optional": false,
  439. "field": "msg",
  440. "description": "<p>验证码已发送至您的手机,请注意查收,十分钟之内有效</p>"
  441. }
  442. ]
  443. }
  444. },
  445. "filename": "/root/input/doc/apidoc.php",
  446. "groupTitle": "Passport"
  447. },
  448. {
  449. "type": "get",
  450. "url": "product/?l=api.addCarts",
  451. "title": "添加产品到购物车",
  452. "version": "1.0.0",
  453. "name": "api_addCarts",
  454. "group": "Product",
  455. "description": "<p>添加产品到购物车</p>",
  456. "parameter": {
  457. "fields": {
  458. "Parameter": [
  459. {
  460. "group": "Parameter",
  461. "type": "String",
  462. "optional": false,
  463. "field": "signature",
  464. "description": "<p>signature</p>"
  465. },
  466. {
  467. "group": "Parameter",
  468. "type": "String",
  469. "optional": false,
  470. "field": "product_id",
  471. "description": "<p>产品id</p>"
  472. },
  473. {
  474. "group": "Parameter",
  475. "type": "String",
  476. "optional": false,
  477. "field": "num",
  478. "description": "<p>数量</p>"
  479. }
  480. ]
  481. }
  482. },
  483. "success": {
  484. "fields": {
  485. "Success 200": [
  486. {
  487. "group": "Success 200",
  488. "type": "String",
  489. "optional": false,
  490. "field": "data",
  491. "description": "<p>返回ok</p>"
  492. }
  493. ]
  494. }
  495. },
  496. "filename": "/root/input/doc/apidoc.php",
  497. "groupTitle": "Product"
  498. },
  499. {
  500. "type": "get",
  501. "url": "product/?l=api.carts",
  502. "title": "获取购物车列表",
  503. "version": "1.0.0",
  504. "name": "api_buy",
  505. "group": "Product",
  506. "description": "<p>获取购物车列表</p>",
  507. "parameter": {
  508. "fields": {
  509. "Parameter": [
  510. {
  511. "group": "Parameter",
  512. "type": "String",
  513. "optional": false,
  514. "field": "signature",
  515. "description": "<p>signature</p>"
  516. }
  517. ]
  518. }
  519. },
  520. "success": {
  521. "fields": {
  522. "Success 200": [
  523. {
  524. "group": "Success 200",
  525. "type": "Object[]",
  526. "optional": false,
  527. "field": "carts",
  528. "description": "<p>购物车信息</p>"
  529. },
  530. {
  531. "group": "Success 200",
  532. "type": "String",
  533. "optional": false,
  534. "field": "carts.product",
  535. "description": "<p>产品信息</p>"
  536. },
  537. {
  538. "group": "Success 200",
  539. "type": "String",
  540. "optional": false,
  541. "field": "carts.num",
  542. "description": "<p>数量</p>"
  543. }
  544. ]
  545. }
  546. },
  547. "filename": "/root/input/doc/apidoc.php",
  548. "groupTitle": "Product"
  549. },
  550. {
  551. "type": "get",
  552. "url": "product/?l=api.buy",
  553. "title": "发起微信支付",
  554. "version": "1.0.0",
  555. "name": "api_buy",
  556. "group": "Product",
  557. "description": "<p>发起微信支付</p>",
  558. "parameter": {
  559. "fields": {
  560. "Parameter": [
  561. {
  562. "group": "Parameter",
  563. "type": "String",
  564. "optional": false,
  565. "field": "signature",
  566. "description": "<p>signature</p>"
  567. },
  568. {
  569. "group": "Parameter",
  570. "type": "String",
  571. "optional": false,
  572. "field": "product_id",
  573. "description": "<p>产品id</p>"
  574. }
  575. ]
  576. }
  577. },
  578. "success": {
  579. "fields": {
  580. "Success 200": [
  581. {
  582. "group": "Success 200",
  583. "type": "Object[]",
  584. "optional": false,
  585. "field": "pay",
  586. "description": "<p>微信支付返回的数据</p>"
  587. },
  588. {
  589. "group": "Success 200",
  590. "type": "String",
  591. "optional": false,
  592. "field": "pay.time",
  593. "description": "<p>服务器时间戳</p>"
  594. },
  595. {
  596. "group": "Success 200",
  597. "type": "String",
  598. "optional": false,
  599. "field": "pay.nonce_str",
  600. "description": "<p>随机字符串</p>"
  601. },
  602. {
  603. "group": "Success 200",
  604. "type": "String",
  605. "optional": false,
  606. "field": "pay.prepay_id",
  607. "description": "<p>统一下单接口返回的 prepay_id 参数值,通过'prepay_id=' + prepay_id 拼装成package</p>"
  608. },
  609. {
  610. "group": "Success 200",
  611. "type": "String",
  612. "optional": false,
  613. "field": "pay.sign_type",
  614. "description": "<p>签名算法</p>"
  615. },
  616. {
  617. "group": "Success 200",
  618. "type": "String",
  619. "optional": false,
  620. "field": "pay.sign",
  621. "description": "<p>签名</p>"
  622. }
  623. ]
  624. }
  625. },
  626. "filename": "/root/input/doc/apidoc.php",
  627. "groupTitle": "Product"
  628. },
  629. {
  630. "type": "get",
  631. "url": "product/?l=api.code",
  632. "title": "提交兑换码",
  633. "version": "1.0.0",
  634. "name": "api_code",
  635. "group": "Product",
  636. "description": "<p>提交兑换码</p>",
  637. "parameter": {
  638. "fields": {
  639. "Parameter": [
  640. {
  641. "group": "Parameter",
  642. "type": "String",
  643. "optional": false,
  644. "field": "signature",
  645. "description": "<p>signature</p>"
  646. },
  647. {
  648. "group": "Parameter",
  649. "type": "String",
  650. "optional": false,
  651. "field": "product_id",
  652. "description": "<p>产品id</p>"
  653. },
  654. {
  655. "group": "Parameter",
  656. "type": "String",
  657. "optional": false,
  658. "field": "code",
  659. "description": "<p>兑换码</p>"
  660. }
  661. ]
  662. }
  663. },
  664. "filename": "/root/input/doc/apidoc.php",
  665. "groupTitle": "Product"
  666. },
  667. {
  668. "type": "get",
  669. "url": "product/?l=api.home",
  670. "title": "获取首页数据",
  671. "version": "1.0.0",
  672. "name": "api_home",
  673. "group": "Product",
  674. "description": "<p>获取首页数据</p>",
  675. "parameter": {
  676. "fields": {
  677. "Parameter": [
  678. {
  679. "group": "Parameter",
  680. "type": "String",
  681. "optional": false,
  682. "field": "signature",
  683. "description": "<p>signature</p>"
  684. }
  685. ]
  686. }
  687. },
  688. "success": {
  689. "fields": {
  690. "Success 200": [
  691. {
  692. "group": "Success 200",
  693. "type": "Number",
  694. "optional": false,
  695. "field": "uid",
  696. "description": "<p>用户id 所有Service接口中都有该项</p>"
  697. },
  698. {
  699. "group": "Success 200",
  700. "type": "Object[]",
  701. "optional": false,
  702. "field": "config",
  703. "description": "<p>基本配置 所有Service接口中都有该项</p>"
  704. },
  705. {
  706. "group": "Success 200",
  707. "type": "String",
  708. "optional": false,
  709. "field": "config.name",
  710. "description": "<p>小程序名称</p>"
  711. },
  712. {
  713. "group": "Success 200",
  714. "type": "String",
  715. "optional": false,
  716. "field": "config.logo",
  717. "description": "<p>小程序logo</p>"
  718. },
  719. {
  720. "group": "Success 200",
  721. "type": "Object[]",
  722. "optional": false,
  723. "field": "focus",
  724. "description": "<p>焦点图 暂时无用</p>"
  725. },
  726. {
  727. "group": "Success 200",
  728. "type": "String",
  729. "optional": false,
  730. "field": "focus.name",
  731. "description": "<p>名称</p>"
  732. },
  733. {
  734. "group": "Success 200",
  735. "type": "String",
  736. "optional": false,
  737. "field": "focus.pic",
  738. "description": "<p>图片</p>"
  739. },
  740. {
  741. "group": "Success 200",
  742. "type": "Object[]",
  743. "optional": false,
  744. "field": "product",
  745. "description": "<p>产品列表</p>"
  746. },
  747. {
  748. "group": "Success 200",
  749. "type": "String",
  750. "optional": false,
  751. "field": "product.id",
  752. "description": "<p>产品id</p>"
  753. },
  754. {
  755. "group": "Success 200",
  756. "type": "String",
  757. "optional": false,
  758. "field": "product.name",
  759. "description": "<p>名称</p>"
  760. },
  761. {
  762. "group": "Success 200",
  763. "type": "String",
  764. "optional": false,
  765. "field": "product.pic",
  766. "description": "<p>产品封面</p>"
  767. },
  768. {
  769. "group": "Success 200",
  770. "type": "String",
  771. "optional": false,
  772. "field": "product.focus",
  773. "description": "<p>产品轮播图 多个用逗号隔开</p>"
  774. },
  775. {
  776. "group": "Success 200",
  777. "type": "String",
  778. "optional": false,
  779. "field": "product.content",
  780. "description": "<p>内容</p>"
  781. },
  782. {
  783. "group": "Success 200",
  784. "type": "String",
  785. "optional": false,
  786. "field": "product.price",
  787. "description": "<p>显示价格</p>"
  788. },
  789. {
  790. "group": "Success 200",
  791. "type": "Number",
  792. "optional": false,
  793. "field": "product.pay_price",
  794. "description": "<p>支付价格</p>"
  795. }
  796. ]
  797. }
  798. },
  799. "filename": "/root/input/doc/apidoc.php",
  800. "groupTitle": "Product"
  801. },
  802. {
  803. "type": "get",
  804. "url": "product/?l=api.order",
  805. "title": "我的订单",
  806. "version": "1.0.0",
  807. "name": "api_order",
  808. "group": "Product",
  809. "description": "<p>我的订单</p>",
  810. "parameter": {
  811. "fields": {
  812. "Parameter": [
  813. {
  814. "group": "Parameter",
  815. "type": "String",
  816. "optional": false,
  817. "field": "signature",
  818. "description": "<p>signature</p>"
  819. }
  820. ]
  821. }
  822. },
  823. "success": {
  824. "fields": {
  825. "Success 200": [
  826. {
  827. "group": "Success 200",
  828. "type": "Object[]",
  829. "optional": false,
  830. "field": "order",
  831. "description": "<p>订单信息</p>"
  832. },
  833. {
  834. "group": "Success 200",
  835. "type": "String",
  836. "optional": false,
  837. "field": "order.name",
  838. "description": "<p>名称</p>"
  839. },
  840. {
  841. "group": "Success 200",
  842. "type": "String",
  843. "optional": false,
  844. "field": "order.order_id",
  845. "description": "<p>订单编号</p>"
  846. },
  847. {
  848. "group": "Success 200",
  849. "type": "String",
  850. "optional": false,
  851. "field": "order.del_status",
  852. "description": "<p>产品在线状态1为在线2为已下线</p>"
  853. }
  854. ]
  855. }
  856. },
  857. "filename": "/root/input/doc/apidoc.php",
  858. "groupTitle": "Product"
  859. },
  860. {
  861. "type": "get",
  862. "url": "product/?l=api.poster",
  863. "title": "生成海报",
  864. "version": "1.0.0",
  865. "name": "api_poster",
  866. "group": "Product",
  867. "description": "<p>生成海报</p>",
  868. "parameter": {
  869. "fields": {
  870. "Parameter": [
  871. {
  872. "group": "Parameter",
  873. "type": "String",
  874. "optional": false,
  875. "field": "signature",
  876. "description": "<p>signature</p>"
  877. },
  878. {
  879. "group": "Parameter",
  880. "type": "String",
  881. "optional": false,
  882. "field": "product_id",
  883. "description": "<p>产品id</p>"
  884. },
  885. {
  886. "group": "Parameter",
  887. "type": "String",
  888. "optional": false,
  889. "field": "path",
  890. "description": "<p>生成的二维码跳转的path,请不要带上参数,该path会自动加上scene=uid,product_id,请直接在onLoad 的方法中解析该参数:const scene = decodeURIComponent(options.scene);scene = scene.split(',');var uid = scene[0];var product_id = scene[1];如果有该参数,请直接跳转到产品详情页。</p>"
  891. }
  892. ]
  893. }
  894. },
  895. "success": {
  896. "fields": {
  897. "Success 200": [
  898. {
  899. "group": "Success 200",
  900. "type": "String",
  901. "optional": false,
  902. "field": "pic",
  903. "description": "<p>直接返回海报图片</p>"
  904. }
  905. ]
  906. }
  907. },
  908. "filename": "/root/input/doc/apidoc.php",
  909. "groupTitle": "Product"
  910. },
  911. {
  912. "type": "get",
  913. "url": "product/?l=api.view",
  914. "title": "获取产品详情",
  915. "version": "1.0.0",
  916. "name": "api_view",
  917. "group": "Product",
  918. "description": "<p>获取产品详情</p>",
  919. "parameter": {
  920. "fields": {
  921. "Parameter": [
  922. {
  923. "group": "Parameter",
  924. "type": "String",
  925. "optional": false,
  926. "field": "signature",
  927. "description": "<p>signature</p>"
  928. },
  929. {
  930. "group": "Parameter",
  931. "type": "String",
  932. "optional": false,
  933. "field": "id",
  934. "description": "<p>产品id</p>"
  935. }
  936. ]
  937. }
  938. },
  939. "success": {
  940. "fields": {
  941. "Success 200": [
  942. {
  943. "group": "Success 200",
  944. "type": "Object[]",
  945. "optional": false,
  946. "field": "focus",
  947. "description": "<p>焦点图</p>"
  948. },
  949. {
  950. "group": "Success 200",
  951. "type": "String",
  952. "optional": false,
  953. "field": "focus.name",
  954. "description": "<p>名称</p>"
  955. },
  956. {
  957. "group": "Success 200",
  958. "type": "String",
  959. "optional": false,
  960. "field": "focus.pic",
  961. "description": "<p>图片</p>"
  962. },
  963. {
  964. "group": "Success 200",
  965. "type": "Object[]",
  966. "optional": false,
  967. "field": "product",
  968. "description": "<p>产品信息</p>"
  969. },
  970. {
  971. "group": "Success 200",
  972. "type": "String",
  973. "optional": false,
  974. "field": "product.id",
  975. "description": "<p>产品id</p>"
  976. },
  977. {
  978. "group": "Success 200",
  979. "type": "String",
  980. "optional": false,
  981. "field": "product.name",
  982. "description": "<p>名称</p>"
  983. },
  984. {
  985. "group": "Success 200",
  986. "type": "String",
  987. "optional": false,
  988. "field": "product.pic",
  989. "description": "<p>产品封面</p>"
  990. },
  991. {
  992. "group": "Success 200",
  993. "type": "String",
  994. "optional": false,
  995. "field": "product.focus",
  996. "description": "<p>产品轮播图 多个用逗号隔开</p>"
  997. },
  998. {
  999. "group": "Success 200",
  1000. "type": "String",
  1001. "optional": false,
  1002. "field": "product.content",
  1003. "description": "<p>内容</p>"
  1004. },
  1005. {
  1006. "group": "Success 200",
  1007. "type": "String",
  1008. "optional": false,
  1009. "field": "product.price",
  1010. "description": "<p>显示价格</p>"
  1011. },
  1012. {
  1013. "group": "Success 200",
  1014. "type": "Number",
  1015. "optional": false,
  1016. "field": "product.pay_price",
  1017. "description": "<p>支付价格</p>"
  1018. }
  1019. ]
  1020. }
  1021. },
  1022. "filename": "/root/input/doc/apidoc.php",
  1023. "groupTitle": "Product"
  1024. },
  1025. {
  1026. "type": "get",
  1027. "url": "product/?l=api.writeFormId",
  1028. "title": "记录formid,用于发送通知 请再按钮的地方加上该接口请求",
  1029. "version": "1.0.0",
  1030. "name": "api_writeFormId",
  1031. "group": "Product",
  1032. "description": "<p>记录formid,用于发送通知</p>",
  1033. "parameter": {
  1034. "fields": {
  1035. "Parameter": [
  1036. {
  1037. "group": "Parameter",
  1038. "type": "String",
  1039. "optional": false,
  1040. "field": "signature",
  1041. "description": "<p>signature</p>"
  1042. },
  1043. {
  1044. "group": "Parameter",
  1045. "type": "String",
  1046. "optional": false,
  1047. "field": "product_id",
  1048. "description": "<p>产品id</p>"
  1049. }
  1050. ]
  1051. }
  1052. },
  1053. "filename": "/root/input/doc/apidoc.php",
  1054. "groupTitle": "Product"
  1055. },
  1056. {
  1057. "success": {
  1058. "fields": {
  1059. "Success 200": [
  1060. {
  1061. "group": "Success 200",
  1062. "optional": false,
  1063. "field": "varname1",
  1064. "description": "<p>No type.</p>"
  1065. },
  1066. {
  1067. "group": "Success 200",
  1068. "type": "String",
  1069. "optional": false,
  1070. "field": "varname2",
  1071. "description": "<p>With type.</p>"
  1072. }
  1073. ]
  1074. }
  1075. },
  1076. "type": "",
  1077. "url": "",
  1078. "version": "0.0.0",
  1079. "filename": "/root/input/doc/main.js",
  1080. "group": "_root_input_doc_main_js",
  1081. "groupTitle": "_root_input_doc_main_js",
  1082. "name": ""
  1083. }
  1084. ] });