applet.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'applet',
  6. # 显示给用户看的名称
  7. 'lang' => '外链小程序管理',
  8. # 后台菜单排序
  9. 'order' => 1,
  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. 'list' => true,
  22. 'order' => 'desc',
  23. ),
  24. 'name' => array
  25. (
  26. 'type' => 'varchar-80',
  27. 'name' => '小程序名称',
  28. 'default' => '',
  29. 'desc' => '小程序名称',
  30. 'match' => 'is_string',
  31. 'update' => 'text',
  32. 'search' => 'fulltext',
  33. 'list' => true,
  34. ),
  35. 'appid' => array
  36. (
  37. 'type' => 'varchar-80',
  38. 'name' => '小程序appid',
  39. 'default' => '',
  40. 'desc' => '小程序appid',
  41. 'match' => 'option',
  42. 'update' => 'text',
  43. 'search' => 'fulltext',
  44. 'list' => true,
  45. ),
  46. 'link' => array
  47. (
  48. 'type' => 'varchar-300',
  49. 'name' => '小程序跳转链接-可以为空,为空则不跳转',
  50. 'default' => '',
  51. 'desc' => '小程序名称',
  52. 'match' => 'option',
  53. 'update' => 'text',
  54. 'search' => 'fulltext',
  55. 'list' => true,
  56. ),
  57. 'reorder' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '排序(数值越大越靠前)',
  61. 'default' => '1',
  62. 'desc' => '请输入排序',
  63. 'match' => 'option',
  64. 'update' => 'text',
  65. 'search' => 'order',
  66. 'list' => true,
  67. 'order' => 'desc',
  68. 'edit' => true,
  69. ),
  70. 'state' => array
  71. (
  72. 'type' => 'tinyint-1',
  73. 'name' => '状态',
  74. 'default' => '1',
  75. 'desc' => '请选择状态',
  76. 'match' => 'is_numeric',
  77. ),
  78. 'cdate' => array
  79. (
  80. 'type' => 'int-11',
  81. 'name' => '录入时间',
  82. 'match' => array('is_numeric', time()),
  83. 'desc' => '',
  84. # 只有insert时才生效
  85. 'insert' => true,
  86. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  87. ),
  88. ),
  89. 'manage' => array
  90. (
  91. ),
  92. 'request' => array
  93. (
  94. 'getAll' => array
  95. (
  96. # 匹配的正则或函数 选填项
  97. 'option' => array
  98. (
  99. 'ids' => array('yes-id', 'in'),
  100. 'name' => array('yes', 'like'),
  101. 'id' => 'yes',
  102. 'state' => 1,
  103. ),
  104. 'type' => 'all',
  105. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  106. 'limit' => '0,1000',
  107. 'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
  108. ),
  109. 'search' => array
  110. (
  111. # 匹配的正则或函数 选填项
  112. 'option' => array
  113. (
  114. 'ids' => array('yes-id', 'in'),
  115. 'name' => array('yes', 'like'),
  116. 'id' => 'yes',
  117. 'state' => 1,
  118. ),
  119. 'type' => 'all',
  120. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  121. 'limit' => '0,1000',
  122. 'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
  123. ),
  124. ),
  125. );