refactor: 调整图片上传

This commit is contained in:
2025-02-19 16:28:47 +08:00
parent ce910d030a
commit 5e889da68c
6 changed files with 86 additions and 74 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
use think\Model;
/**
* @mixin \think\Model
*/
class SysImageBaseModel extends Model
{
// 表名
protected $name = 'sys_image';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'module' => 'string',
'image_path' => 'string',
'image_thumb' => 'string',
'image_size' => 'int',
'image_type' => 'string',
'image_md5' => 'string',
'image_sha1' => 'string',
'created_at' => 'datetime',
'deleted_at' => 'datetime',
];
}