col.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'col',
  6. # 显示给用户看的名称
  7. 'lang' => '维度管理',
  8. 'order' => -10,
  9. 'check' => 'key',
  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. 'order' => 'desc',
  22. 'list' => true,
  23. ),
  24. 'name' => array
  25. (
  26. 'type' => 'varchar-60',
  27. 'name' => '维度名称',
  28. 'default' => '',
  29. 'desc' => '请输入维度名称',
  30. 'match' => 'is_string',
  31. 'update' => 'text',
  32. 'search' => 'fulltext',
  33. 'list' => true,
  34. ),
  35. 'key' => array
  36. (
  37. 'type' => 'varchar-60',
  38. 'name' => '维度key',
  39. 'default' => '',
  40. 'desc' => '请输入维度key',
  41. 'match' => 'is_string',
  42. 'update' => 'text',
  43. 'search' => 'fulltext',
  44. 'list' => true,
  45. ),
  46. 'state' => array
  47. (
  48. 'type' => 'tinyint-1',
  49. 'name' => '状态',
  50. 'default' => '1',
  51. 'desc' => '请选择状态',
  52. 'match' => 'is_numeric',
  53. ),
  54. 'cdate' => array
  55. (
  56. 'type' => 'int-11',
  57. 'name' => '录入时间',
  58. 'match' => array('is_numeric', time()),
  59. 'desc' => '',
  60. # 只有insert时才生效
  61. 'insert' => true,
  62. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  63. ),
  64. ),
  65. 'manage' => array
  66. (
  67. ),
  68. # request 请求接口定义
  69. 'request' => array
  70. (
  71. ),
  72. );