feat: 新增图片上传接口

This commit is contained in:
2025-01-14 17:04:03 +08:00
parent ae3b3858c3
commit aa6219da57
5 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
use think\Model;
/**
* @mixin \think\Model
*/
class ImageBaseModel extends Model
{
// 表名
protected $name = 'sys_image';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'image_name' => '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',
];
}