| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\common\model;
- use think\Model;
- class AppointmentRecord extends Model
- {
- protected $name = 'appointment_record';
- protected $autoWriteTimestamp = false;
- public function getStatusList(): array
- {
- return [
- 0 => '未处理',
- 1 => '已预约',
- 2 => '已通知',
- 3 => '已转化',
- 9 => '无效',
- ];
- }
- public function getNotifyChannelList(): array
- {
- return [
- 'sms' => '短信',
- 'email' => '邮件',
- ];
- }
- public function getSmsStatusList(): array
- {
- return [
- 0 => '未发送',
- 1 => '成功',
- 2 => '失败',
- ];
- }
- public function getSubmitSmsStatusList(): array
- {
- return $this->getSmsStatusList();
- }
- public function getBatchSmsStatusList(): array
- {
- return $this->getSmsStatusList();
- }
- }
|