yun.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. /**
  3. * 上传表
  4. */
  5. $type = array
  6. (
  7. 1 => '阿里云',
  8. 2 => '七牛云',
  9. );
  10. return array
  11. (
  12. # 表名
  13. 'name' => 'yun',
  14. # 显示给用户看的名称
  15. 'lang' => '云端配置',
  16. 'order' => 1,
  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. ),
  30. 'name' => array
  31. (
  32. 'type' => 'varchar-24',
  33. 'name' => '配置名',
  34. 'default' => '',
  35. 'desc' => '请输入配置名',
  36. 'match' => 'is_string',
  37. 'update' => 'text',
  38. 'search' => 'fulltext',
  39. 'list' => true,
  40. ),
  41. 'type' => array
  42. (
  43. 'type' => 'int-1',
  44. 'name' => '存储类别',
  45. 'default' => '2',
  46. 'desc' => '存储类别',
  47. 'match' => 'is_numeric',
  48. 'option' => $type,
  49. 'update' => 'radio',
  50. 'list' => true,
  51. ),
  52. 'host' => array
  53. (
  54. 'type' => 'varchar-800',
  55. 'name' => '域名',
  56. 'default' => '',
  57. 'desc' => '域名',
  58. 'match' => 'is_string',
  59. 'update' => 'text',
  60. 'search' => 'fulltext',
  61. 'list' => true,
  62. ),
  63. 'appkey' => array
  64. (
  65. 'type' => 'varchar-80',
  66. 'name' => 'appkey',
  67. 'default' => '',
  68. 'desc' => 'appkey',
  69. 'match' => 'is_string',
  70. 'update' => 'text',
  71. 'search' => 'fulltext',
  72. 'list' => true,
  73. ),
  74. 'appsecret' => array
  75. (
  76. 'type' => 'varchar-200',
  77. 'name' => 'appsecret',
  78. 'default' => '',
  79. 'desc' => 'appsecret',
  80. 'match' => 'is_string',
  81. 'update' => 'text',
  82. 'search' => 'fulltext',
  83. 'list' => true,
  84. ),
  85. 'state' => array
  86. (
  87. 'type' => 'tinyint-1',
  88. 'name' => '状态',
  89. 'default' => '1',
  90. 'desc' => '请选择状态',
  91. 'match' => 'is_numeric',
  92. ),
  93. 'cdate' => array
  94. (
  95. 'type' => 'int-11',
  96. 'name' => '录入时间',
  97. 'match' => array('is_numeric', time()),
  98. 'desc' => '',
  99. # 只有insert时才生效
  100. 'insert' => true,
  101. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  102. ),
  103. ),
  104. 'manage' => array
  105. (
  106. ),
  107. );