menu_func.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. 'state' => array
  56. (
  57. 'type' => 'tinyint-1',
  58. 'name' => '状态',
  59. 'default' => '1',
  60. 'desc' => '请选择状态',
  61. 'match' => 'is_numeric',
  62. ),
  63. 'cdate' => array
  64. (
  65. 'type' => 'int-11',
  66. 'name' => '录入时间',
  67. 'match' => array('is_numeric', time()),
  68. 'desc' => '',
  69. # 只有insert时才生效
  70. 'insert' => true,
  71. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  72. ),
  73. ),
  74. 'manage' => array
  75. (
  76. ),
  77. # request 请求接口定义
  78. 'request' => array
  79. (
  80. ),
  81. );