yun.php 4.3 KB

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