info.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. 'space' => array
  45. (
  46. 'type' => 'varchar-300',
  47. 'name' => '云空间名-请提前建好云空间,后续会迭代优化,增加云空间的创建和更新,本版本暂时使用已经创建好的云空间',
  48. 'default' => '',
  49. 'desc' => '空间名',
  50. 'match' => 'option',
  51. 'update' => 'text',
  52. 'list' => true,
  53. ),
  54. 'appkey' => array
  55. (
  56. 'type' => 'varchar-80',
  57. 'name' => 'appkey',
  58. 'default' => '',
  59. 'desc' => 'appkey',
  60. 'match' => 'is_string',
  61. 'update' => 'text',
  62. 'search' => 'fulltext',
  63. 'list' => true,
  64. ),
  65. 'appsecret' => array
  66. (
  67. 'type' => 'varchar-200',
  68. 'name' => 'appsecret',
  69. 'default' => '',
  70. 'desc' => 'appsecret',
  71. 'match' => 'is_string',
  72. 'update' => 'text',
  73. 'search' => 'fulltext',
  74. 'list' => true,
  75. ),
  76. 'state' => array
  77. (
  78. 'type' => 'tinyint-1',
  79. 'name' => '状态',
  80. 'default' => '1',
  81. 'desc' => '请选择状态',
  82. 'match' => 'is_numeric',
  83. ),
  84. 'cdate' => array
  85. (
  86. 'type' => 'int-11',
  87. 'name' => '创建时间',
  88. 'match' => array('is_numeric', time()),
  89. 'desc' => '',
  90. # 只有insert时才生效
  91. 'insert' => true,
  92. //'search' => 'date',
  93. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  94. ),
  95. ),
  96. 'manage' => array
  97. (
  98. //'excel' => true,
  99. //'delete' => false,
  100. //'edit' => false,
  101. //'insert' => false,
  102. ),
  103. 'request' => array
  104. (
  105. )
  106. );