MedicalShop.php 588 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\model;
  3. use DateTimeInterface;
  4. use support\Model;
  5. class MedicalShop extends Model
  6. {
  7. protected $table = 'medical_shop';
  8. protected $primaryKey = 'shop_id';
  9. protected $dateFormat = 'U';
  10. public const CREATED_AT = 'shop_addTime';
  11. public const UPDATED_AT = 'shop_updateTime';
  12. public function serializeDate(DateTimeInterface $date)
  13. {
  14. return $date->format('Y-m-d H:i:s');
  15. }
  16. public static $shopType = [
  17. 1 => '医疗',
  18. 2 => '健康',
  19. 3 => '养老',
  20. 4 => '居家',
  21. 5 => '悦活'
  22. ];
  23. }