<?php

namespace app\admin\controller;

use app\common\exception\CatchException;
use app\common\service\FileService;

class Upload extends Base
{
    /**
     * 图片上传
     */
    public function img()
    {
        return (new FileService($this->app))->exceptionClass(CatchException::class)->uploadImage('admin');
    }
}