yspay_tixian_apply.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'yspay_tixian_apply',
  6. # 显示给用户看的名称
  7. 'lang' => '申请提现',
  8. 'order' => -200,
  9. 'menu' => false,
  10. 'start' => array
  11. (
  12. 'insert' => 'pay/yspay/tixian.insert',
  13. ),
  14. 'end' => array
  15. (
  16. 'insert' => 'pay/yspay/tixian.update',
  17. 'update' => 'pay/yspay/tixian.update',
  18. ),
  19. # 数据结构
  20. 'struct' => array
  21. (
  22. 'id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => 'ID',
  26. 'default' => '',
  27. 'desc' => '',
  28. 'match' => 'is_numeric',
  29. 'search' => 'order',
  30. 'update' => 'hidden',
  31. //'list' => true,
  32. ),
  33. 'merchant_id' => array
  34. (
  35. 'type' => 'int-11',
  36. 'name' => '商户id',
  37. 'default' => '',
  38. 'desc' => '商户id',
  39. 'match' => 'option',
  40. 'update' => 'hidden',
  41. 'search' => 'hidden',
  42. 'value' => Dever::input('search_option_merchant_id'),
  43. 'list_name' => '商户名称',
  44. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  45. ),
  46. 'cash' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '提现金额',
  50. 'default' => '0',
  51. 'desc' => '提现金额',
  52. 'match' => 'option',
  53. 'update' => 'text',
  54. 'list' => 'round({cash}/100, 2)',
  55. ),
  56. 'desc' => array
  57. (
  58. 'type' => 'varchar-800',
  59. 'name' => '备注',
  60. 'default' => '',
  61. 'desc' => '备注',
  62. 'match' => 'is_numeric',
  63. 'update' => 'textarea',
  64. 'list' => true,
  65. ),
  66. 'state' => array
  67. (
  68. 'type' => 'tinyint-1',
  69. 'name' => '状态',
  70. 'default' => '1',
  71. 'desc' => '请选择状态',
  72. 'match' => 'is_numeric',
  73. ),
  74. 'cdate' => array
  75. (
  76. 'type' => 'int-11',
  77. 'name' => '创建时间',
  78. 'match' => array('is_numeric', time()),
  79. 'desc' => '',
  80. # 只有insert时才生效
  81. //'insert' => true,
  82. //'search' => 'date',
  83. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  84. ),
  85. ),
  86. 'manage' => array
  87. (
  88. 'edit' => false,
  89. 'insert' => false,
  90. 'delete' => false,
  91. ),
  92. 'request' => array
  93. (
  94. 'getAll' => array
  95. (
  96. 'option' => array
  97. (
  98. 'merchant_id' => 'yes',
  99. 'state' => 1,
  100. ),
  101. 'type' => 'all',
  102. 'col' => '*|merchant_id',
  103. ),
  104. ),
  105. );