You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller;
|
|
|
|
use Hyperf\Di\Annotation\Inject;
|
|
use App\Service\PurchaseLimitServiceInterface;
|
|
use App\Constants\ErrorCode;
|
|
class PurchaseLimitController extends BaseController
|
|
{
|
|
|
|
/**
|
|
* @Inject
|
|
* @var PurchaseLimitServiceInterface
|
|
*/
|
|
protected $purchaseLimitService;
|
|
|
|
public function getStoreIdByMarketId()
|
|
{
|
|
$res = $this->purchaseLimitService->getStoreIdByMarketId($this->request->all());
|
|
return $this->success($res);
|
|
}
|
|
|
|
public function ssdbPurchaseRecord()
|
|
{
|
|
$res = $this->purchaseLimitService->ssdbPurchaseRecord($this->request->all(),214,156813021196050432);
|
|
return $this->success($res);
|
|
}
|
|
|
|
public function delSsdbPurchaseRecord()
|
|
{
|
|
$res = $this->purchaseLimitService->delSsdbPurchaseRecord($this->request->input('order_id'));
|
|
return $this->success($res);
|
|
}
|
|
|
|
public function test()
|
|
{
|
|
$res = $this->purchaseLimitService->test($this->request->all());
|
|
return $this->success($res);
|
|
}
|
|
|
|
}
|