yun.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?php
  2. /**
  3. * 上传表
  4. */
  5. $type = array
  6. (
  7. 1 => '阿里云',
  8. 2 => '七牛云',
  9. 3 => '新浪云',
  10. );
  11. return array
  12. (
  13. # 表名
  14. 'name' => 'yun',
  15. # 显示给用户看的名称
  16. 'lang' => '云端配置',
  17. 'order' => 1,
  18. 'end' => array
  19. (
  20. 'insert' => 'upload/lib/config.create',
  21. 'update' => 'upload/lib/config.create',
  22. ),
  23. # 数据结构
  24. 'struct' => array
  25. (
  26. 'id' => array
  27. (
  28. 'type' => 'int-11',
  29. 'name' => '配置ID',
  30. 'default' => '',
  31. 'desc' => '',
  32. 'match' => 'is_numeric',
  33. 'search' => 'order',
  34. 'list' => true,
  35. ),
  36. 'name' => array
  37. (
  38. 'type' => 'varchar-24',
  39. 'name' => '配置名',
  40. 'default' => '',
  41. 'desc' => '请输入配置名',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'search' => 'fulltext',
  45. 'list' => true,
  46. ),
  47. 'type' => array
  48. (
  49. 'type' => 'int-1',
  50. 'name' => '存储类别-oss建议申请sts保证安全性,参考https://help.aliyun.com/document_detail/100624.html',
  51. 'default' => '2',
  52. 'desc' => '存储类别',
  53. 'match' => 'is_numeric',
  54. 'option' => $type,
  55. 'update' => 'radio',
  56. 'list' => true,
  57. 'control' => 'type',
  58. ),
  59. 'host' => array
  60. (
  61. 'type' => 'varchar-800',
  62. 'name' => '域名',
  63. 'default' => '',
  64. 'desc' => '域名',
  65. 'match' => 'is_string',
  66. 'update' => 'text',
  67. 'search' => 'fulltext',
  68. 'list' => true,
  69. ),
  70. 'appkey' => array
  71. (
  72. 'type' => 'varchar-100',
  73. 'name' => 'appkey',
  74. 'default' => '',
  75. 'desc' => 'appkey',
  76. 'match' => 'is_string',
  77. 'update' => 'text',
  78. 'search' => 'fulltext',
  79. 'list' => true,
  80. ),
  81. 'appsecret' => array
  82. (
  83. 'type' => 'varchar-200',
  84. 'name' => 'appsecret',
  85. 'default' => '',
  86. 'desc' => 'appsecret',
  87. 'match' => 'is_string',
  88. 'update' => 'text',
  89. 'search' => 'fulltext',
  90. 'list' => true,
  91. ),
  92. 'region_id' => array
  93. (
  94. 'type' => 'varchar-200',
  95. 'name' => '区域id-oss直接填RegionId即可,如beijing,七牛可填写z1',
  96. 'default' => '',
  97. 'desc' => 'appsecret',
  98. 'match' => 'is_string',
  99. 'update' => 'text',
  100. ),
  101. 'role_arn' => array
  102. (
  103. 'type' => 'varchar-200',
  104. 'name' => '权限策略ARN-oss需要填写,如未填写,系统默认使用非sts形式上传至oss,不能保证安全性',
  105. 'default' => '',
  106. 'desc' => 'appsecret',
  107. 'match' => 'option',
  108. 'update' => 'text',
  109. 'show' => 'type=1',
  110. ),
  111. 'token' => array
  112. (
  113. 'type' => 'varchar-800',
  114. 'name' => 'token',
  115. 'default' => '',
  116. 'desc' => 'token',
  117. 'match' => 'option',
  118. ),
  119. 'token_endtime' => array
  120. (
  121. 'type' => 'int-11',
  122. 'name' => 'token失效时间',
  123. 'default' => '',
  124. 'desc' => 'token',
  125. 'match' => 'option',
  126. ),
  127. 'state' => array
  128. (
  129. 'type' => 'tinyint-1',
  130. 'name' => '状态',
  131. 'default' => '1',
  132. 'desc' => '请选择状态',
  133. 'match' => 'is_numeric',
  134. ),
  135. 'cdate' => array
  136. (
  137. 'type' => 'int-11',
  138. 'name' => '录入时间',
  139. 'match' => array('is_numeric', time()),
  140. 'desc' => '',
  141. # 只有insert时才生效
  142. 'insert' => true,
  143. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  144. ),
  145. ),
  146. 'manage' => array
  147. (
  148. ),
  149. );