feat : catering

This commit is contained in:
2025-03-12 17:31:19 +08:00
parent 5729297bea
commit 789edb44c5
6 changed files with 19 additions and 6 deletions

View File

@@ -12,6 +12,8 @@ use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
#[Controller(prefix: "admin/catering")]
#[Middlewares([
@@ -57,8 +59,20 @@ class CateringController
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "option/catering", methods: "POST")]
#[Scene(scene: "option_catering")]
public function optionCatering()
{
return (new OptionCateringService)->handle();
}
public function checkPrint()
{
}
}

View File

@@ -22,7 +22,7 @@ use App\Model\PickupCode;
use App\Model\Site;
use App\Model\User;
use App\Service\Admin\Catering\CateringBaseService;
use App\Service\Admin\Print\PrintOrderFactory;
use App\Service\Admin\Catering\Print\PrintOrderFactory;
use App\Service\ServiceTrait\Admin\Catering\PrintTrait;
use Exception;
use Hyperf\DbConnection\Db;

View File

@@ -8,7 +8,7 @@
declare(strict_types=1);
namespace App\Service\Admin\Print;
namespace App\Service\Admin\Catering\Print;
use App\Exception\ErrException;
use function Hyperf\Config\config;

View File

@@ -8,7 +8,7 @@
declare(strict_types=1);
namespace App\Service\Admin\Print;
namespace App\Service\Admin\Catering\Print;
use App\Constants\Admin\CateringCode;
use App\Exception\ErrException;

View File

@@ -8,7 +8,7 @@
declare(strict_types=1);
namespace App\Service\Admin\Print;
namespace App\Service\Admin\Catering\Print;
interface PrintOrderInterface
{

View File

@@ -8,10 +8,9 @@
declare(strict_types=1);
namespace App\Service\Admin\Print;
namespace App\Service\Admin\Catering\Print;
use App\Exception\ErrException;
use App\Extend\StringUtil;
use App\Lib\Print\YlyBasicsLib;
use Hyperf\Di\Annotation\Inject;
use Psr\Container\ContainerExceptionInterface;