total_base.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'total_base',
  6. # 显示给用户看的名称
  7. 'lang' => '统计概览',
  8. 'order' => 20,
  9. 'desc' => '请将total.cron加入到cron中',
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => 'ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. //'search' => 'order',
  21. 'order' => 'desc',
  22. //'list' => true,
  23. ),
  24. 'project_id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => '项目',
  28. 'default' => '',
  29. 'desc' => '请输入项目',
  30. 'match' => 'is_numeric',
  31. 'list' => 'Dever::load("token/project-one#name", {project_id})',
  32. ),
  33. 'day' => array
  34. (
  35. 'type' => 'varchar-60',
  36. 'name' => '统计日期',
  37. 'default' => '',
  38. 'desc' => '统计日期',
  39. 'match' => 'is_string',
  40. 'update' => 'text',
  41. 'search' => 'fulltext',
  42. 'list' => true,
  43. ),
  44. 'daynum' => array
  45. (
  46. 'type' => 'int-11',
  47. 'name' => '统计日期',
  48. 'default' => '',
  49. 'desc' => '统计日期',
  50. 'match' => 'is_numeric',
  51. 'update' => 'text',
  52. //'search' => 'time',
  53. //'list' => true,
  54. ),
  55. 'session_cnt' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => '打开次数',
  59. 'default' => '0',
  60. 'match' => '打开次数',
  61. 'match' => 'is_numeric',
  62. 'update' => 'text',
  63. 'list' => true,
  64. ),
  65. 'visit_pv' => array
  66. (
  67. 'type' => 'int-11',
  68. 'name' => '访问次数',
  69. 'default' => '0',
  70. 'match' => '访问次数',
  71. 'match' => 'is_numeric',
  72. 'update' => 'text',
  73. 'list' => true,
  74. ),
  75. 'visit_uv' => array
  76. (
  77. 'type' => 'int-11',
  78. 'name' => '访问人数',
  79. 'default' => '0',
  80. 'match' => '访问人数',
  81. 'match' => 'is_numeric',
  82. 'update' => 'text',
  83. 'list' => true,
  84. ),
  85. 'visit_uv_new' => array
  86. (
  87. 'type' => 'int-11',
  88. 'name' => '新用户数',
  89. 'default' => '0',
  90. 'match' => '新用户数',
  91. 'match' => 'is_numeric',
  92. 'update' => 'text',
  93. 'list' => true,
  94. ),
  95. 'stay_time_uv' => array
  96. (
  97. 'type' => 'varchar-30',
  98. 'name' => '人均停留时长',
  99. 'default' => '0',
  100. 'match' => '人均停留时长',
  101. 'match' => 'is_string',
  102. 'update' => 'text',
  103. 'list' => true,
  104. ),
  105. 'stay_time_session' => array
  106. (
  107. 'type' => 'varchar-30',
  108. 'name' => '次均停留时长',
  109. 'default' => '0',
  110. 'match' => '次均停留时长',
  111. 'match' => 'is_string',
  112. 'update' => 'text',
  113. 'list' => true,
  114. ),
  115. 'visit_depth' => array
  116. (
  117. 'type' => 'varchar-30',
  118. 'name' => '平均访问深度',
  119. 'default' => '0',
  120. 'match' => '平均访问深度',
  121. 'match' => 'is_string',
  122. 'update' => 'text',
  123. 'list' => true,
  124. ),
  125. 'visit_total' => array
  126. (
  127. 'type' => 'int-11',
  128. 'name' => '累计用户数',
  129. 'default' => '0',
  130. 'match' => '累计用户数',
  131. 'match' => 'is_numeric',
  132. 'update' => 'text',
  133. 'list' => true,
  134. ),
  135. 'share_pv' => array
  136. (
  137. 'type' => 'int-11',
  138. 'name' => '转发次数',
  139. 'default' => '0',
  140. 'match' => '转发次数',
  141. 'match' => 'is_numeric',
  142. 'update' => 'text',
  143. 'list' => true,
  144. ),
  145. 'share_uv' => array
  146. (
  147. 'type' => 'int-11',
  148. 'name' => '转发人数',
  149. 'default' => '0',
  150. 'match' => '转发人数',
  151. 'match' => 'is_numeric',
  152. 'update' => 'text',
  153. 'list' => true,
  154. ),
  155. 'state' => array
  156. (
  157. 'type' => 'tinyint-1',
  158. 'name' => '状态',
  159. 'default' => '1',
  160. 'desc' => '请选择状态',
  161. 'match' => 'is_numeric',
  162. ),
  163. 'cdate' => array
  164. (
  165. 'type' => 'int-11',
  166. 'name' => '录入时间',
  167. 'match' => array('is_numeric', time()),
  168. 'desc' => '',
  169. # 只有insert时才生效
  170. 'insert' => true,
  171. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  172. ),
  173. ),
  174. 'manage' => array
  175. (
  176. 'insert' => false,
  177. 'edit' => false,
  178. 'delete' => false,
  179. 'excel' => true,
  180. 'button' => array
  181. (
  182. '下载昨日统计报表' => array('location', 'wechat_applet/total.out'),
  183. ),
  184. ),
  185. 'request' => array
  186. (
  187. 'getData' => array
  188. (
  189. # 匹配的正则或函数 选填项
  190. 'option' => array
  191. (
  192. 'day' => 'yes',
  193. 'project_id' => array('yes', 'in'),
  194. 'state' => 1,
  195. ),
  196. 'type' => 'all',
  197. 'col' => '*',
  198. ),
  199. ),
  200. );