module.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'module',
  6. # 显示给用户看的名称
  7. 'lang' => '模块管理',
  8. 'desc' => '模块功能可视化管理功能开发中,暂时支持手动新增',
  9. 'order' => -100,
  10. 'menu' => false,
  11. 'check' => 'key',
  12. 'end' => array
  13. (
  14. 'update' => 'manage/module.create',
  15. 'insert' => 'manage/module.create',
  16. ),
  17. # 数据结构
  18. 'struct' => array
  19. (
  20. 'id' => array
  21. (
  22. 'type' => 'int-11',
  23. 'name' => 'ID',
  24. 'default' => '',
  25. 'desc' => '',
  26. 'match' => 'is_numeric',
  27. 'search' => 'order',
  28. 'list' => true,
  29. 'order' => 'desc',
  30. ),
  31. 'name' => array
  32. (
  33. 'type' => 'varchar-32',
  34. 'name' => '模块名称',
  35. 'default' => '',
  36. 'desc' => '模块名称',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. 'search' => 'fulltext',
  40. 'list' => true,
  41. ),
  42. 'path' => array
  43. (
  44. 'type' => 'varchar-32',
  45. 'name' => '模块根目录-填写模块所属根目录,为空则当前模块建立在根目录',
  46. 'default' => '',
  47. 'desc' => '模块目录',
  48. 'match' => 'option',
  49. 'update' => 'text',
  50. 'search' => 'fulltext',
  51. 'list' => true,
  52. ),
  53. 'domain' => array
  54. (
  55. 'type' => 'varchar-100',
  56. 'name' => '域名-填写当前模块域名,如不填写则取当前管理组件的根域名',
  57. 'default' => '',
  58. 'desc' => '模块目录',
  59. 'match' => 'option',
  60. 'update' => 'text',
  61. 'search' => 'fulltext',
  62. 'list' => true,
  63. ),
  64. 'state' => array
  65. (
  66. 'type' => 'tinyint-1',
  67. 'name' => '状态',
  68. 'default' => '1',
  69. 'desc' => '请选择状态',
  70. 'match' => 'is_numeric',
  71. ),
  72. 'cdate' => array
  73. (
  74. 'type' => 'int-11',
  75. 'name' => '录入时间',
  76. 'match' => array('is_numeric', time()),
  77. 'desc' => '',
  78. # 只有insert时才生效
  79. 'insert' => true,
  80. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  81. ),
  82. ),
  83. 'manage' => array
  84. (
  85. # 增加批量更新功能,根据哪个字段批量更新
  86. //'update_mul' => 'name',
  87. ),
  88. # request 请求接口定义
  89. 'request' => array
  90. (
  91. ),
  92. );