yspay_tixian_apply.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. 'value' => Dever::input('search_option_merchant_id'),
  42. 'list_name' => '商户名称',
  43. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  44. ),
  45. 'cash' => array
  46. (
  47. 'type' => 'int-11',
  48. 'name' => '提现金额',
  49. 'default' => '0',
  50. 'desc' => '提现金额',
  51. 'match' => 'option',
  52. 'update' => 'text',
  53. 'list' => 'round({cash}/100, 2)',
  54. ),
  55. 'desc' => array
  56. (
  57. 'type' => 'varchar-800',
  58. 'name' => '备注',
  59. 'default' => '',
  60. 'desc' => '备注',
  61. 'match' => 'is_numeric',
  62. 'update' => 'textarea',
  63. 'list' => true,
  64. ),
  65. 'state' => array
  66. (
  67. 'type' => 'tinyint-1',
  68. 'name' => '状态',
  69. 'default' => '1',
  70. 'desc' => '请选择状态',
  71. 'match' => 'is_numeric',
  72. ),
  73. 'cdate' => array
  74. (
  75. 'type' => 'int-11',
  76. 'name' => '创建时间',
  77. 'match' => array('is_numeric', time()),
  78. 'desc' => '',
  79. # 只有insert时才生效
  80. //'insert' => true,
  81. //'search' => 'date',
  82. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  83. ),
  84. ),
  85. 'manage' => array
  86. (
  87. 'edit' => false,
  88. 'insert' => false,
  89. 'delete' => false,
  90. ),
  91. 'request' => array
  92. (
  93. 'getAll' => array
  94. (
  95. 'option' => array
  96. (
  97. 'merchant_id' => 'yes',
  98. 'state' => 1,
  99. ),
  100. 'type' => 'all',
  101. 'col' => '*|merchant_id',
  102. ),
  103. ),
  104. );