增加了预约视频状态

This commit is contained in:
2024-01-12 14:36:05 +08:00
parent 10b761321b
commit 5dab3f3b6b
3 changed files with 71 additions and 1 deletions
+59
View File
@@ -0,0 +1,59 @@
<?php
declare(strict_types=1);
namespace App\Model;
use Hyperf\Snowflake\Concern\Snowflake;
/**
* @property int $inquiry_video_id 主键id
* @property int $order_inquiry_id 问诊订单id
* @property string $reservation_time 预约时间
* @property int $is_send_reservation_notice 是否已发送预约通知(0:否 1:是)
* @property int $is_video 是否已开视频(0:否 1:是)
* @property string $start_time 开始时间
* @property string $end_time 结束时间
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 修改时间
*/
class OrderInquiryVideo extends Model
{
use Snowflake;
/**
* The table associated with the model.
*/
protected ?string $table = 'order_inquiry_video';
/**
* The attributes that are mass assignable.
*/
protected array $fillable = ['inquiry_video_id', 'order_inquiry_id', 'reservation_time', 'is_send_reservation_notice', 'is_video', 'start_time', 'end_time', 'created_at', 'updated_at'];
protected string $primaryKey = "inquiry_video_id";
/**
* 获取信息-单条
* @param array $params
* @param array $fields
* @return object|null
*/
public static function getOne(array $params, array $fields = ['*']): object|null
{
return self::where($params)->first($fields);
}
/**
* 获取信息-多条
* @param array $params
* @param array $fields
* @return object|null
*/
public static function getList(array $params, array $fields = ['*']): object|null
{
return self::where($params)->get($fields);
}
}