ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,69 @@
<?php
/**
* Copyright © All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Lts\Inventory\Api;
use Lts\Inventory\Api\Data\SourceCustomerInterface;
use Magento\Framework\Api\SearchCriteriaInterface;
interface SourceCustomerRepositoryInterface
{
/**
* Save SourceCustomer
* @param \Lts\Inventory\Api\Data\SourceCustomerInterface $sourceCustomer
* @return \Lts\Inventory\Api\Data\SourceCustomerInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function save(
\Lts\Inventory\Api\Data\SourceCustomerInterface $sourceCustomer
);
/**
* Retrieve SourceCustomer
* @param int $customerId
* @return \Lts\Inventory\Api\Data\SourceCustomerInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getFromCustomerId(int $customerId): ?SourceCustomerInterface;
/**
* Retrieve SourceCustomer
* @param string $id
* @return \Lts\Inventory\Api\Data\SourceCustomerInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function get($id);
/**
* Retrieve Inventory Source from customer id.
* @param string $customerId
* @return \Lts\Inventory\Api\Data\SourceCustomerSearchResultsInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getList( string $customerId);
/**
* Delete SourceCustomer
* @param \Lts\Inventory\Api\Data\SourceCustomerInterface $inventorySourceCustomer
* @return bool true on success
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function delete(
\Lts\Inventory\Api\Data\SourceCustomerInterface $inventorySourceCustomer
);
/**
* Delete SourceCustomer by ID
* @param int $entityId
* @return bool true on success
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function deleteById(int $entityId);
}