feat: 添加新增/更新/设置排序值/删除接口

This commit is contained in:
2025-02-20 14:13:30 +08:00
parent e1697fd66d
commit 13d75dcb2c
6 changed files with 226 additions and 6 deletions

View File

@@ -11,6 +11,13 @@ use app\common\model\VideoBaseModel;
*/
class VideoModel extends VideoBaseModel
{
// 启用软件删除
use SoftDelete;
// 软件删除字段
protected $deleteTime = 'deleted_at';
// 自动写入的时间格式
protected $autoWriteTimestamp = 'datetime';
// 关联分类
public function category()
{