RechargeConfiguration.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. *
  4. *
  5. * @category xxx
  6. * @package PSR
  7. * @subpackage Documentation\API
  8. * @author xxx <xxx@xxx.com>
  9. * @license GPL https://xxx.com
  10. * @link https://xxx.com
  11. * @ctime: 2020/3/24 14:35
  12. */
  13. namespace App\Models;
  14. class RechargeConfiguration extends Model
  15. {
  16. protected $table = 'recharge_configuration';
  17. const DEFAULT_CONFIG = [
  18. 'data' => [
  19. [
  20. 'id' => 0,
  21. 'name' => '',
  22. 'recharge_money' => 10.00,
  23. 'discount' => 1,
  24. 'give_money' => 0,
  25. ],
  26. [
  27. 'id' => 0,
  28. 'name' => '',
  29. 'recharge_money' => 20.00,
  30. 'discount' => 1,
  31. 'give_money' => 0,
  32. ],
  33. [
  34. 'id' => 0,
  35. 'name' => '',
  36. 'recharge_money' => 50.00,
  37. 'discount' => 1,
  38. 'give_money' => 0,
  39. ]
  40. ]
  41. ];
  42. const STATUS_OK = 1;
  43. const STATUS_NO = 0;
  44. public static $statusMaps = [
  45. self::STATUS_OK => '启用',
  46. self::STATUS_NO => '停用',
  47. ];
  48. }