channel_response_code.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?php
  2. $type = array
  3. (
  4. 1 => '成功',
  5. 2 => '失败',
  6. 3 => '其他',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'channel_response_code',
  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. 'channel_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_channel_id'),
  39. ),
  40. 'name' => array
  41. (
  42. 'type' => 'varchar-150',
  43. 'name' => '返回码描述',
  44. 'default' => '',
  45. 'desc' => '返回码描述',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. 'search' => 'fulltext',
  49. 'list' => true,
  50. ),
  51. 'value' => array
  52. (
  53. 'type' => 'varchar-150',
  54. 'name' => '返回码值',
  55. 'default' => '',
  56. 'desc' => '返回码值',
  57. 'match' => 'is_string',
  58. 'update' => 'text',
  59. 'search' => 'fulltext',
  60. 'list' => true,
  61. ),
  62. 'type' => array
  63. (
  64. 'type' => 'tinyint-1',
  65. 'name' => '返回码类型',
  66. 'default' => '1',
  67. 'desc' => '返回码类型',
  68. 'match' => 'is_numeric',
  69. 'update' => 'radio',
  70. 'option' => $type,
  71. ),
  72. 'reorder' => array
  73. (
  74. 'type' => 'int-11',
  75. 'name' => '排序(数值越大越靠前)',
  76. 'default' => '1',
  77. 'desc' => '请输入排序',
  78. 'match' => 'option',
  79. //'update' => 'text',
  80. 'search' => 'order',
  81. 'list_name' => '排序',
  82. 'list' => true,
  83. 'order' => 'desc',
  84. 'edit' => true,
  85. ),
  86. 'state' => array
  87. (
  88. 'type' => 'tinyint-1',
  89. 'name' => '状态',
  90. 'default' => '1',
  91. 'desc' => '请选择状态',
  92. 'match' => 'is_numeric',
  93. ),
  94. 'cdate' => array
  95. (
  96. 'type' => 'int-11',
  97. 'name' => '录入时间',
  98. 'match' => array('is_numeric', time()),
  99. 'desc' => '',
  100. # 只有insert时才生效
  101. 'insert' => true,
  102. //'search' => 'date',
  103. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  104. ),
  105. ),
  106. 'manage' => array
  107. (
  108. 'insert' => false,
  109. 'edit' => false,
  110. # 自定义快捷新增和编辑
  111. 'button' => array
  112. (
  113. '新增' => array('fast'),
  114. ),
  115. 'list_button' => array
  116. (
  117. 'edit' => array('编辑'),
  118. )
  119. ),
  120. 'request' => array
  121. (
  122. )
  123. );