feat: 新增图片上传接口
This commit is contained in:
18
app/admin/model/v1/ImageModel.php
Normal file
18
app/admin/model/v1/ImageModel.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user