feat: 新增图片上传接口

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

View File

@@ -0,0 +1,18 @@
<?php
declare (strict_types = 1);
namespace app\admin\model\v1;
use app\common\model\ImageBaseModel;
/**
* @mixin \think\Model
*/
class ImageModel extends ImageBaseModel
{
// 根据md5获取图片
public function scopeMd5($query, $md5)
{
$query->where('image_md5', '=', $md5);
}
}