info.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?php
  2. $type = Dever::config('base', 'live')->live_type;
  3. return array
  4. (
  5. # 表名
  6. 'name' => 'info',
  7. # 显示给用户看的名称
  8. 'lang' => '直播云配置',
  9. 'order' => 10,
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => 'ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. 'search' => 'order',
  21. //'list' => true,
  22. ),
  23. 'name' => array
  24. (
  25. 'type' => 'varchar-300',
  26. 'name' => '配置名称',
  27. 'default' => '',
  28. 'desc' => '配置名称',
  29. 'match' => 'option',
  30. 'update' => 'text',
  31. 'list' => true,
  32. ),
  33. 'type' => array
  34. (
  35. 'type' => 'int-11',
  36. 'name' => '所属云',
  37. 'default' => '1',
  38. 'desc' => '所属云',
  39. 'match' => 'is_numeric',
  40. 'update' => 'select',
  41. 'option' => $type,
  42. 'search' => 'select',
  43. ),
  44. 'host' => array
  45. (
  46. 'type' => 'varchar-800',
  47. 'name' => '存储空间域名',
  48. 'default' => '',
  49. 'desc' => '存储空间域名',
  50. 'match' => 'is_string',
  51. 'update' => 'text',
  52. 'search' => 'fulltext',
  53. 'list' => true,
  54. ),
  55. 'space' => array
  56. (
  57. 'type' => 'varchar-300',
  58. 'name' => '云空间名-请提前建好云空间,后续会迭代优化,增加云空间的创建和更新,本版本暂时使用已经创建好的云空间',
  59. 'default' => '',
  60. 'desc' => '空间名',
  61. 'match' => 'option',
  62. 'update' => 'text',
  63. 'list' => true,
  64. ),
  65. 'appkey' => array
  66. (
  67. 'type' => 'varchar-80',
  68. 'name' => 'appkey',
  69. 'default' => '',
  70. 'desc' => 'appkey',
  71. 'match' => 'is_string',
  72. 'update' => 'text',
  73. 'search' => 'fulltext',
  74. 'list' => true,
  75. ),
  76. 'appsecret' => array
  77. (
  78. 'type' => 'varchar-200',
  79. 'name' => 'appsecret',
  80. 'default' => '',
  81. 'desc' => 'appsecret',
  82. 'match' => 'is_string',
  83. 'update' => 'text',
  84. 'search' => 'fulltext',
  85. 'list' => true,
  86. ),
  87. 'domain_publish' => array
  88. (
  89. 'type' => 'varchar-200',
  90. 'name' => '推流域名',
  91. 'default' => '',
  92. 'desc' => '推流域名',
  93. 'match' => 'is_string',
  94. 'update' => 'text',
  95. //'search' => 'fulltext',
  96. //'list' => true,
  97. ),
  98. 'domain_live_rtmp' => array
  99. (
  100. 'type' => 'varchar-200',
  101. 'name' => '高清直播域名',
  102. 'default' => '',
  103. 'desc' => '高清直播域名',
  104. 'match' => 'is_string',
  105. 'update' => 'text',
  106. //'search' => 'fulltext',
  107. //'list' => true,
  108. ),
  109. 'domain_live_hls' => array
  110. (
  111. 'type' => 'varchar-200',
  112. 'name' => '标清直播域名',
  113. 'default' => '',
  114. 'desc' => '标清直播域名',
  115. 'match' => 'is_string',
  116. 'update' => 'text',
  117. //'search' => 'fulltext',
  118. //'list' => true,
  119. ),
  120. 'domain_live_hdl' => array
  121. (
  122. 'type' => 'varchar-200',
  123. 'name' => '普清直播域名',
  124. 'default' => '',
  125. 'desc' => '普清直播域名',
  126. 'match' => 'is_string',
  127. 'update' => 'text',
  128. //'search' => 'fulltext',
  129. //'list' => true,
  130. ),
  131. 'domain_live_pic' => array
  132. (
  133. 'type' => 'varchar-200',
  134. 'name' => '直播截图域名',
  135. 'default' => '',
  136. 'desc' => '直播截图域名',
  137. 'match' => 'is_string',
  138. 'update' => 'text',
  139. //'search' => 'fulltext',
  140. //'list' => true,
  141. ),
  142. 'state' => array
  143. (
  144. 'type' => 'tinyint-1',
  145. 'name' => '状态',
  146. 'default' => '1',
  147. 'desc' => '请选择状态',
  148. 'match' => 'is_numeric',
  149. ),
  150. 'cdate' => array
  151. (
  152. 'type' => 'int-11',
  153. 'name' => '创建时间',
  154. 'match' => array('is_numeric', time()),
  155. 'desc' => '',
  156. # 只有insert时才生效
  157. 'insert' => true,
  158. //'search' => 'date',
  159. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  160. ),
  161. ),
  162. 'manage' => array
  163. (
  164. //'excel' => true,
  165. //'delete' => false,
  166. //'edit' => false,
  167. //'insert' => false,
  168. ),
  169. 'request' => array
  170. (
  171. )
  172. );