feat : catering
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Admin\Print;
|
||||
namespace App\Service\Admin\Catering\Print;
|
||||
|
||||
interface PrintOrderInterface
|
||||
{
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user