page.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. $type = array
  3. (
  4. -1 => '全部',
  5. 1 => 'H5',
  6. 2 => '安卓APP',
  7. 3 => '苹果APP',
  8. 4 => '微信小程序',
  9. );
  10. return array
  11. (
  12. # 表名
  13. 'name' => 'page',
  14. # 显示给用户看的名称
  15. 'lang' => '页面管理',
  16. 'order' => 10,
  17. 'end' => array
  18. (
  19. 'update' => 'ad/lib/manage.upPageCache',
  20. 'insert' => 'ad/lib/manage.upPageCache',
  21. ),
  22. # 数据结构
  23. 'struct' => array
  24. (
  25. 'id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => 'ID',
  29. 'default' => '',
  30. 'desc' => '',
  31. 'match' => 'is_numeric',
  32. //'search' => 'order',
  33. 'order' => 'desc',
  34. //'list' => true,
  35. ),
  36. 'name' => array
  37. (
  38. 'type' => 'varchar-60',
  39. 'name' => '页面标题',
  40. 'default' => '',
  41. 'desc' => '请输入页面标题',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'search' => 'fulltext',
  45. 'list' => true,
  46. 'edit' => true,
  47. ),
  48. 'key' => array
  49. (
  50. 'type' => 'varchar-800',
  51. 'name' => '页面标识-可以根据路由获取页面里的广告信息,也可以约定一个标识值,直接通过获取广告的接口来获取信息',
  52. 'default' => '',
  53. 'desc' => '页面标识',
  54. 'match' => 'is_string',
  55. 'update' => 'text',
  56. 'search' => 'fulltext',
  57. 'list' => true,
  58. 'edit' => true,
  59. ),
  60. 'type' => array
  61. (
  62. 'type' => 'int-11',
  63. 'name' => '页面类型-暂时无用,根据标识取出一条出来',
  64. 'default' => '-1',
  65. 'desc' => '请选择页面类型',
  66. 'match' => 'is_numeric',
  67. 'option' => $type,
  68. //'update' => 'radio',
  69. //'search' => 'select',
  70. //'list' => true,
  71. ),
  72. 'reorder' => array
  73. (
  74. 'type' => 'int-11',
  75. 'name' => '排序(数值越大越靠前)',
  76. 'default' => '1',
  77. 'desc' => '请输入排序',
  78. 'match' => 'option',
  79. 'update' => 'text',
  80. 'search' => 'order',
  81. 'list_name' => '排序',
  82. 'list' => true,
  83. 'order' => 'desc',
  84. //'edit' => true,
  85. ),
  86. 'state' => array
  87. (
  88. 'type' => 'tinyint-1',
  89. 'name' => '状态',
  90. 'default' => '1',
  91. 'desc' => '请选择状态',
  92. 'match' => 'is_numeric',
  93. ),
  94. 'cdate' => array
  95. (
  96. 'type' => 'int-11',
  97. 'name' => '录入时间',
  98. 'match' => array('is_numeric', time()),
  99. 'desc' => '',
  100. # 只有insert时才生效
  101. 'insert' => true,
  102. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  103. ),
  104. ),
  105. 'manage' => array
  106. (
  107. ),
  108. # request 请求接口定义
  109. 'request' => array
  110. (
  111. ),
  112. );