yun.php 4.4 KB

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