AppointmentRecord.php 953 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. class AppointmentRecord extends Model
  5. {
  6. protected $name = 'appointment_record';
  7. protected $autoWriteTimestamp = false;
  8. public function getStatusList(): array
  9. {
  10. return [
  11. 0 => '未处理',
  12. 1 => '已预约',
  13. 2 => '已通知',
  14. 3 => '已转化',
  15. 9 => '无效',
  16. ];
  17. }
  18. public function getNotifyChannelList(): array
  19. {
  20. return [
  21. 'sms' => '短信',
  22. 'email' => '邮件',
  23. ];
  24. }
  25. public function getSmsStatusList(): array
  26. {
  27. return [
  28. 0 => '未发送',
  29. 1 => '成功',
  30. 2 => '失败',
  31. ];
  32. }
  33. public function getSubmitSmsStatusList(): array
  34. {
  35. return $this->getSmsStatusList();
  36. }
  37. public function getBatchSmsStatusList(): array
  38. {
  39. return $this->getSmsStatusList();
  40. }
  41. }