Active.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. /**
  3. * @api {post} active/getActiveList 得到活动列表
  4. * @apiVersion 1.0.0
  5. * @apiName getActiveList
  6. * @apiDescription 得到活动列表
  7. * @apiGroup Active
  8. *
  9. * @apiParam {Number} [pageIndex] 页码
  10. * @apiParam {Number} [pageItemCount] 每页条数
  11. * @apiParamExample {json} 发送报文:
  12. {
  13. "pageIndex":1,
  14. "pageItemCount":0
  15. }
  16. *
  17. * @apiSuccess {Object[]} activeList 活动列表
  18. * @apiSuccess {Number} subjectList.activeID 活动ID
  19. * @apiSuccess {String} subjectList.title 活动标题
  20. * @apiSuccess {String} subjectList.note 备注
  21. * @apiSuccess {String} subjectList.thumbPc Pc标题图片地址
  22. * @apiSuccess {String} subjectList.thumbApp App标题图片地址
  23. * @apiSuccess {String} subjectList.linkPc Pc跳转地址
  24. * @apiSuccess {String} subjectList.linkApp App跳转地址
  25. * @apiSuccess {String} subjectList.addTime 添加时间
  26. * @apiSuccessExample {json} 返回json数据(举例):
  27. {
  28. "code": 1,
  29. "msg": "操作成功",
  30. "content": {
  31. "activeList": [
  32. {
  33. "activeID": 1,
  34. "title": "阿斯顿发生掉发",
  35. "note": "阿斯顿发生掉发阿斯顿发生掉发阿斯顿发生掉发",
  36. "thumbPc": "",
  37. "thumbApp": "",
  38. "linkPc": "",
  39. "linkApp": "",
  40. "addTime": "2017-12-23 14:02:09"
  41. },
  42. {
  43. "activeID": 2,
  44. "title": "今日活动",
  45. "note": "今日活动今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈",
  46. "thumbPc": "http://slb.dahengdian.com/51zhangxi/2017/12/23/o06Dih24iH.png",
  47. "thumbApp": "http://slb.dahengdian.com/51zhangxi/2017/12/23/5bWVyqXAdq.jpg",
  48. "linkPc": "122222222222222222",
  49. "linkApp": "1111111111111111111",
  50. "addTime": "2017-12-23 14:02:58"
  51. }
  52. ],
  53. "count": 2,
  54. "pageItemCount": 10
  55. }
  56. }
  57. * @apiUse CreateUserError
  58. */
  59. /**
  60. * @api {post} active/getActiveList 得到活动列表
  61. * @apiVersion 1.0.1
  62. * @apiName getActiveList
  63. * @apiDescription 得到活动列表
  64. * @apiGroup Active
  65. *
  66. * @apiParam {Number} [pageIndex] 页码
  67. * @apiParam {Number} [pageItemCount] 每页条数
  68. * @apiParamExample {json} 发送报文:
  69. {
  70. "pageIndex":1,
  71. "pageItemCount":0
  72. }
  73. *
  74. * @apiSuccess {Object[]} activeList 活动列表
  75. * @apiSuccess {Number} subjectList.activeID 活动ID
  76. * @apiSuccess {String} subjectList.title 活动标题
  77. * @apiSuccess {String} subjectList.note 备注
  78. * @apiSuccess {String} subjectList.thumbPc Pc标题图片地址
  79. * @apiSuccess {String} subjectList.thumbApp App标题图片地址
  80. * @apiSuccess {String} subjectList.linkPc Pc跳转地址
  81. * @apiSuccess {String} subjectList.linkApp App跳转地址
  82. * @apiSuccess {String} subjectList.addTime 添加时间
  83. * @apiSuccess {Object} subjectList.share 分享参数,如果没有分享功能,则该参数不返回
  84. * @apiSuccess {Object} subjectList.share.headImgUrl 分享图标
  85. * @apiSuccess {String} subjectList.share.title 分享标题
  86. * @apiSuccess {String} subjectList.share.desc 分享描述
  87. * @apiSuccess {String} subjectList.share.link 分享链接
  88. * @apiSuccessExample {json} 返回json数据(举例):
  89. {
  90. "code": 1,
  91. "msg": "操作成功",
  92. "content": {
  93. "activeList": [
  94. {
  95. "activeID": 1,
  96. "title": "阿斯顿发生掉发",
  97. "note": "阿斯顿发生掉发阿斯顿发生掉发阿斯顿发生掉发",
  98. "thumbPc": "",
  99. "thumbApp": "",
  100. "linkPc": "",
  101. "linkApp": "",
  102. "addTime": "2017-12-23 14:02:09",
  103. "share": {
  104. "headImgUrl":"https://static.qimai.cn/static/img/newaso100@2x.png",
  105. "title":"11334466778899",
  106. "desc":"11334466778899",
  107. "link":"http://www.qq.com"
  108. }
  109. },
  110. {
  111. "activeID": 2,
  112. "title": "今日活动",
  113. "note": "今日活动今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈今日活动哈哈",
  114. "thumbPc": "http://slb.dahengdian.com/51zhangxi/2017/12/23/o06Dih24iH.png",
  115. "thumbApp": "http://slb.dahengdian.com/51zhangxi/2017/12/23/5bWVyqXAdq.jpg",
  116. "linkPc": "122222222222222222",
  117. "linkApp": "1111111111111111111",
  118. "addTime": "2017-12-23 14:02:58"
  119. }
  120. ],
  121. "count": 2,
  122. "pageItemCount": 10
  123. }
  124. }
  125. * @apiUse CreateUserError
  126. */