Import.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Import extends Model
  5. {
  6. public static $CATEGORY = [
  7. [
  8. 'id' => 1,
  9. 'name' => '经销商导入',
  10. 'model' => Dealer::class,
  11. 'fields' => [
  12. [
  13. 'name' => '经销商编号',
  14. 'column' => 0,
  15. 'field' => 'identifier'
  16. ],
  17. [
  18. 'name' => '经销商',
  19. 'column' => 1,
  20. 'field' => 'name'
  21. ],
  22. [
  23. 'name' => '简介',
  24. 'column' => 2,
  25. 'field' => 'description'
  26. ],
  27. [
  28. 'name' => '省份',
  29. 'column' => 3,
  30. 'field' => 'province'
  31. ],
  32. [
  33. 'name' => '市',
  34. 'column' => 4,
  35. 'field' => 'city'
  36. ],
  37. ]
  38. ]
  39. ];
  40. }