WechatAppModel.php 592 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: 思维定制
  5. * Date: 2018/7/13
  6. * Time: 10:45
  7. */
  8. namespace App\Models;
  9. class WechatAppModel extends BaseModel
  10. {
  11. /**
  12. * 数据表名
  13. *
  14. * @var string
  15. *
  16. */
  17. protected $table = 'wechat_app';
  18. /**
  19. * 主键
  20. */
  21. protected $primaryKey = 'id';
  22. //分页
  23. protected $perPage = PAGE_NUMS;
  24. /**
  25. * 可以被集体附值的表的字段
  26. *
  27. * @var string
  28. */
  29. protected $fillable = [
  30. 'appId',
  31. 'appSecret',
  32. 'mchId',
  33. 'key',
  34. 'poundage'
  35. ];
  36. }