streams.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'streams',
  6. # 显示给用户看的名称
  7. 'lang' => '直播流管理',
  8. 'order' => 2,
  9. # 数据结构
  10. 'struct' => array
  11. (
  12. 'id' => array
  13. (
  14. 'type' => 'int-11',
  15. 'name' => 'ID',
  16. 'default' => '',
  17. 'desc' => '',
  18. 'match' => 'is_numeric',
  19. 'search' => 'order',
  20. //'list' => true,
  21. ),
  22. 'name' => array
  23. (
  24. 'type' => 'varchar-300',
  25. 'name' => '流名称',
  26. 'default' => '',
  27. 'desc' => '名称',
  28. 'match' => 'option',
  29. 'update' => 'text',
  30. 'list' => true,
  31. ),
  32. 'space' => array
  33. (
  34. 'type' => 'varchar-300',
  35. 'name' => '空间名',
  36. 'default' => '',
  37. 'desc' => '空间名',
  38. 'match' => 'option',
  39. 'update' => 'text',
  40. 'list' => true,
  41. ),
  42. 'state' => array
  43. (
  44. 'type' => 'tinyint-1',
  45. 'name' => '状态',
  46. 'default' => '1',
  47. 'desc' => '请选择状态',
  48. 'match' => 'is_numeric',
  49. ),
  50. 'cdate' => array
  51. (
  52. 'type' => 'int-11',
  53. 'name' => '创建时间',
  54. 'match' => array('is_numeric', time()),
  55. 'desc' => '',
  56. # 只有insert时才生效
  57. 'insert' => true,
  58. //'search' => 'date',
  59. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  60. ),
  61. ),
  62. 'manage' => array
  63. (
  64. //'excel' => true,
  65. //'delete' => false,
  66. //'edit' => false,
  67. //'insert' => false,
  68. ),
  69. 'request' => array
  70. (
  71. )
  72. );