feat: 新增图片上传接口
This commit is contained in:
33
app/common/model/ImageBaseModel.php
Normal file
33
app/common/model/ImageBaseModel.php
Normal 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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user