channel_api_data.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. $type = array
  3. (
  4. 1 => '数值型',
  5. 2 => '字符串型',
  6. 3 => 'JSON型',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'channel_api_data',
  12. # 显示给用户看的名称
  13. 'lang' => '接口数据',
  14. # 是否显示在后台菜单
  15. 'order' => -10,
  16. 'menu' => false,
  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. 'list' => true,
  28. 'order' => 'desc',
  29. ),
  30. 'api_id' => array
  31. (
  32. 'type' => 'int-11',
  33. 'name' => '接口id',
  34. 'default' => '1',
  35. 'desc' => '接口id',
  36. 'match' => 'is_numeric',
  37. 'update' => 'hidden',
  38. 'value' => Dever::input('search_option_api_id'),
  39. ),
  40. 'data' => array
  41. (
  42. 'type' => 'text-255',
  43. 'name' => '数据',
  44. 'default' => '',
  45. 'desc' => '数据',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. 'search' => 'fulltext',
  49. 'list' => true,
  50. ),
  51. 'state' => array
  52. (
  53. 'type' => 'tinyint-1',
  54. 'name' => '状态',
  55. 'default' => '1',
  56. 'desc' => '请选择状态',
  57. 'match' => 'is_numeric',
  58. ),
  59. 'cdate' => array
  60. (
  61. 'type' => 'int-11',
  62. 'name' => '录入时间',
  63. 'match' => array('is_numeric', time()),
  64. 'desc' => '',
  65. # 只有insert时才生效
  66. 'insert' => true,
  67. //'search' => 'date',
  68. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  69. ),
  70. ),
  71. 'manage' => array
  72. (
  73. 'insert' => false,
  74. 'edit' => false,
  75. # 自定义快捷新增和编辑
  76. 'button' => array
  77. (
  78. '新增' => array('fast'),
  79. ),
  80. 'list_button' => array
  81. (
  82. 'edit' => array('编辑'),
  83. )
  84. ),
  85. 'request' => array
  86. (
  87. )
  88. );