SysApi.php 435 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\model;
  3. use DateTimeInterface;
  4. use support\Model;
  5. class SysApi extends Model
  6. {
  7. protected $table = "sys_api";
  8. protected $primaryKey = 'api_id';
  9. protected $dateFormat = 'U';
  10. protected $keyType = 'string';
  11. const CREATED_AT = 'api_addtimes';
  12. const UPDATED_AT = null;
  13. protected function serializeDate(DateTimeInterface $date)
  14. {
  15. return $date->format('Y-m-d H:i:s');
  16. }
  17. }