feat: 新增附件上传接口
This commit is contained in:
33
app/common/model/SysAttachmentUploadRecordBaseModel.php
Normal file
33
app/common/model/SysAttachmentUploadRecordBaseModel.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 附件上传基础模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class SysAttachmentUploadRecordBaseModel extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'sys_attachment_upload_record';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'language_id' => 'int',
|
||||
'module' => 'string',
|
||||
'attachment_path' => 'string',
|
||||
'file_size' => 'int',
|
||||
'file_type' => 'string',
|
||||
'file_md5' => 'string',
|
||||
'file_sha1' => 'string',
|
||||
'created_at' => 'datetime',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user