feat: 添加视频分页/详情接口

This commit is contained in:
2025-02-19 18:01:09 +08:00
parent 8fd94f9428
commit 9b60efd6f2
8 changed files with 217 additions and 2 deletions

View File

@@ -0,0 +1,39 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
use think\Model;
/**
* @mixin \think\Model
*/
class VideoBaseModel extends Model
{
// 表名
protected $name = 'video';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'category_id' => 'int',
'name' => 'string',
'desc' => 'string',
'image' => 'string',
'video' => 'string',
'link' => 'string',
'sort' => 'int',
'recommend' => 'int',
'status' => 'int',
'seo_title' => 'string',
'seo_keywords' => 'string',
'seo_desc' => 'string',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime'
];
}

View File

@@ -0,0 +1,29 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
use think\Model;
/**
* @mixin \think\Model
*/
class VideoCategoryBaseModel extends Model
{
// 表名
protected $name = 'video_category';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'name' => 'string',
'sort' => 'int',
'is_show' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
}