channel_request_body.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. $type = array
  3. (
  4. 1 => '数值型',
  5. 2 => '字符串型',
  6. 3 => 'JSON型',
  7. );
  8. $sign = array
  9. (
  10. 1 => '参与签名',
  11. 2 => '不参与签名',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'channel_request_body',
  17. # 显示给用户看的名称
  18. 'lang' => '请求参数配置',
  19. # 是否显示在后台菜单
  20. 'order' => -10,
  21. 'menu' => false,
  22. 'check' => 'key',
  23. # 数据结构
  24. 'struct' => array
  25. (
  26. 'id' => array
  27. (
  28. 'type' => 'int-11',
  29. 'name' => 'ID',
  30. 'default' => '',
  31. 'desc' => '',
  32. 'match' => 'is_numeric',
  33. 'list' => true,
  34. 'order' => 'desc',
  35. ),
  36. 'channel_id' => array
  37. (
  38. 'type' => 'int-11',
  39. 'name' => '渠道id',
  40. 'default' => '1',
  41. 'desc' => '渠道id',
  42. 'match' => 'is_numeric',
  43. 'update' => 'hidden',
  44. 'value' => Dever::input('search_option_channel_id'),
  45. ),
  46. 'name' => array
  47. (
  48. 'type' => 'varchar-150',
  49. 'name' => '参数名称',
  50. 'default' => '',
  51. 'desc' => '字段名称',
  52. 'match' => 'is_string',
  53. 'update' => 'text',
  54. 'search' => 'fulltext',
  55. 'list' => true,
  56. ),
  57. 'key' => array
  58. (
  59. 'type' => 'varchar-150',
  60. 'name' => '参数标识',
  61. 'default' => '',
  62. 'desc' => '参数标识',
  63. 'match' => 'is_string',
  64. 'update' => 'text',
  65. 'search' => 'fulltext',
  66. 'list' => true,
  67. ),
  68. 'default' => array
  69. (
  70. 'type' => 'varchar-300',
  71. 'name' => '默认值-' . Dever::config('base', 'middleware')->request_desc,
  72. 'default' => '',
  73. 'desc' => '默认值',
  74. 'match' => 'is_string',
  75. 'update' => 'text',
  76. 'search' => 'fulltext',
  77. 'list' => true,
  78. ),
  79. 'type' => array
  80. (
  81. 'type' => 'tinyint-1',
  82. 'name' => '参数类型',
  83. 'default' => '1',
  84. 'desc' => '参数类型',
  85. 'match' => 'is_numeric',
  86. 'update' => 'radio',
  87. 'option' => $type,
  88. ),
  89. 'sign' => array
  90. (
  91. 'type' => 'tinyint-1',
  92. 'name' => '是否参与签名',
  93. 'default' => '1',
  94. 'desc' => '是否参与签名',
  95. 'match' => 'is_numeric',
  96. 'update' => 'radio',
  97. 'option' => $sign,
  98. ),
  99. 'reorder' => array
  100. (
  101. 'type' => 'int-11',
  102. 'name' => '排序(数值越大越靠前)',
  103. 'default' => '1',
  104. 'desc' => '请输入排序',
  105. 'match' => 'option',
  106. //'update' => 'text',
  107. 'search' => 'order',
  108. 'list_name' => '排序',
  109. 'list' => true,
  110. 'order' => 'desc',
  111. 'edit' => true,
  112. ),
  113. 'state' => array
  114. (
  115. 'type' => 'tinyint-1',
  116. 'name' => '状态',
  117. 'default' => '1',
  118. 'desc' => '请选择状态',
  119. 'match' => 'is_numeric',
  120. ),
  121. 'cdate' => array
  122. (
  123. 'type' => 'int-11',
  124. 'name' => '录入时间',
  125. 'match' => array('is_numeric', time()),
  126. 'desc' => '',
  127. # 只有insert时才生效
  128. 'insert' => true,
  129. //'search' => 'date',
  130. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  131. ),
  132. ),
  133. 'manage' => array
  134. (
  135. 'insert' => false,
  136. 'edit' => false,
  137. # 自定义快捷新增和编辑
  138. 'button' => array
  139. (
  140. '新增' => array('fast'),
  141. ),
  142. 'list_button' => array
  143. (
  144. 'edit' => array('编辑'),
  145. )
  146. ),
  147. 'request' => array
  148. (
  149. )
  150. );