applet.php 3.8 KB

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