menu_func.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'menu_func',
  6. # 显示给用户看的名称
  7. 'lang' => '菜单子功能',
  8. 'order' => 2,
  9. 'menu' => false,
  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. 'order' => 'desc',
  21. ),
  22. 'name' => array
  23. (
  24. 'type' => 'varchar-50',
  25. 'name' => '功能名称',
  26. 'default' => '',
  27. 'desc' => '请输入功能名称',
  28. 'match' => 'is_string',
  29. 'update' => 'text',
  30. 'search' => 'order,fulltext',
  31. 'list' => true,
  32. ),
  33. 'key' => array
  34. (
  35. 'type' => 'varchar-100',
  36. 'name' => '功能标识',
  37. 'default' => '',
  38. 'desc' => '功能标识',
  39. 'match' => 'option',
  40. 'update' => 'text',
  41. //'search' => 'fulltext',
  42. 'list' => true,
  43. //'modal' => 'test',
  44. ),
  45. 'menu_id' => array
  46. (
  47. 'type' => 'int-11',
  48. 'name' => '菜单id',
  49. 'default' => 1,
  50. 'desc' => '菜单id',
  51. 'match' => 'is_numeric',
  52. 'update' => 'select',
  53. 'search' => 'select',
  54. ),
  55. 'reorder' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => '排序-数字越小越靠前',
  59. 'default' => '100',
  60. 'desc' => '请输入排序',
  61. 'match' => 'option',
  62. //'update' => 'text',
  63. 'search' => 'order',
  64. 'list' => true,
  65. 'order' => 'asc',
  66. 'edit' => true,
  67. ),
  68. 'state' => array
  69. (
  70. 'type' => 'tinyint-1',
  71. 'name' => '状态',
  72. 'default' => '1',
  73. 'desc' => '请选择状态',
  74. 'match' => 'is_numeric',
  75. ),
  76. 'cdate' => array
  77. (
  78. 'type' => 'int-11',
  79. 'name' => '录入时间',
  80. 'match' => array('is_numeric', time()),
  81. 'desc' => '',
  82. # 只有insert时才生效
  83. 'insert' => true,
  84. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  85. ),
  86. ),
  87. 'manage' => array
  88. (
  89. ),
  90. # request 请求接口定义
  91. 'request' => array
  92. (
  93. ),
  94. );