total_news.php 4.3 KB

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