history.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'history',
  6. # 显示给用户看的名称
  7. 'lang' => '发展历程',
  8. 'order' => 89,
  9. # 数据结构
  10. 'struct' => array
  11. (
  12. 'id' => array
  13. (
  14. 'type' => 'int-11',
  15. 'name' => 'ID',
  16. 'default' => '',
  17. 'desc' => '',
  18. 'match' => 'is_numeric',
  19. 'list' => true,
  20. ),
  21. 'name' => array
  22. (
  23. 'type' => 'varchar-80',
  24. 'name' => '标题-一般为时间',
  25. 'default' => '',
  26. 'desc' => '标题',
  27. 'match' => 'is_string',
  28. 'update' => 'text',
  29. 'list' => true,
  30. 'search' => 'fulltext',
  31. //增加预览
  32. 'preview' => true,
  33. ),
  34. 'desc' => array
  35. (
  36. 'type' => 'varchar-500',
  37. 'name' => '介绍',
  38. 'default' => '',
  39. 'desc' => '介绍',
  40. 'match' => 'is_string',
  41. 'update' => 'textarea',
  42. ),
  43. 'pic' => array
  44. (
  45. 'type' => 'varchar-150',
  46. 'name' => '图片-图片尺寸195*195px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  47. 'default' => '',
  48. 'desc' => '图片',
  49. 'match' => 'is_string',
  50. 'update' => 'image',
  51. 'key' => '1',
  52. 'place' => '195',
  53. //直接上传到云端
  54. //'upload' => 'qiniu',
  55. //上传大数据
  56. //'large' => 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. ),
  88. ),
  89. # 管理功能
  90. 'manage' => array
  91. (
  92. //'insert' => false,
  93. ),
  94. # request 请求接口定义
  95. 'request' => array
  96. (
  97. ),
  98. );