config_profit_rule.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config_profit_rule',
  6. # 显示给用户看的名称
  7. 'lang' => '钱包收益规则设置',
  8. 'menu' => false,
  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. 'list' => true,
  20. 'order' => 'asc',
  21. ),
  22. 'profit_id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => '收益id',
  26. 'default' => '',
  27. 'desc' => '收益id',
  28. 'match' => 'is_numeric',
  29. 'update' => 'hidden',
  30. 'value' => Dever::input('search_option_profit_id'),
  31. ),
  32. 'level' => array
  33. (
  34. 'type' => 'int-11',
  35. 'name' => '层级',
  36. 'default' => '0',
  37. 'desc' => '层级',
  38. 'match' => 'is_numeric',
  39. 'update' => 'text',
  40. ),
  41. 'condition' => array
  42. (
  43. 'type' => 'varchar-300',
  44. 'name' => '条件',
  45. 'default' => '',
  46. 'desc' => '条件',
  47. 'match' => 'is_string',
  48. 'update' => 'text',
  49. ),
  50. 'exp' => array
  51. (
  52. 'type' => 'varchar-300',
  53. 'name' => '公式',
  54. 'default' => '',
  55. 'desc' => '收益',
  56. 'match' => 'is_string',
  57. 'update' => 'text',
  58. ),
  59. 'state' => array
  60. (
  61. 'type' => 'tinyint-1',
  62. 'name' => '状态',
  63. 'default' => '1',
  64. 'desc' => '请选择状态',
  65. 'match' => 'is_numeric',
  66. ),
  67. 'cdate' => array
  68. (
  69. 'type' => 'int-11',
  70. 'name' => '录入时间',
  71. 'match' => array('is_numeric', time()),
  72. 'desc' => '',
  73. # 只有insert时才生效
  74. 'insert' => true,
  75. //'search' => 'date',
  76. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  77. ),
  78. ),
  79. 'manage' => array
  80. (
  81. 'insert' => false,
  82. 'edit' => false,
  83. # 自定义快捷新增和编辑
  84. 'button' => array
  85. (
  86. '新增' => array('fast'),
  87. ),
  88. 'list_button' => array
  89. (
  90. 'edit' => array('编辑'),
  91. )
  92. ),
  93. 'request' => array
  94. (
  95. )
  96. );