feat: 添加视频上传接口
This commit is contained in:
19
app/admin/model/v1/SysVideoModel.php
Normal file
19
app/admin/model/v1/SysVideoModel.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\admin\model\v1;
|
||||
|
||||
use app\common\model\SysVideoBaseModel;
|
||||
|
||||
/**
|
||||
* 视频上传模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class SysVideoModel extends SysVideoBaseModel
|
||||
{
|
||||
// 根据md5查询
|
||||
public function scopeMd5($query, $value)
|
||||
{
|
||||
$query->where('video_md5', '=', $value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user