feat: 新增附件上传接口

This commit is contained in:
2025-02-28 14:46:47 +08:00
parent 013416ba8e
commit ea8d58c03f
5 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare (strict_types = 1);
namespace app\admin\model\v1;
use app\common\model\SysAttachmentUploadRecordBaseModel;
/**
* 附件上传模型
* @mixin \think\Model
*/
class SysAttachmentUploadRecordModel extends SysAttachmentUploadRecordBaseModel
{
// 根据md5获取
public function scopeMd5($query, $md5)
{
$query->where('file_md5', '=', $md5);
}
}