ltsecurityinc安防产品在线商城代码
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\TestModuleDefaultHydrator\Api;
|
||||
|
||||
/**
|
||||
* Customer CRUD interface
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
interface CustomerPersistenceInterface
|
||||
{
|
||||
/**
|
||||
* Create customer
|
||||
*
|
||||
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
|
||||
* @param string $passwordHash
|
||||
* @return \Magento\Customer\Api\Data\CustomerInterface
|
||||
* @throws \Magento\Framework\Exception\InputException If bad input is provided
|
||||
* @throws \Magento\Framework\Exception\State\InputMismatchException If the provided email is already used
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function save(\Magento\Customer\Api\Data\CustomerInterface $customer);
|
||||
|
||||
/**
|
||||
* Retrieve customer by email
|
||||
*
|
||||
* @param string $email
|
||||
* @param int|null $websiteId
|
||||
* @return \Magento\Customer\Api\Data\CustomerInterface
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException If customer with the specified email does not exist
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function get($email, $websiteId = null);
|
||||
|
||||
/**
|
||||
* Retrieve customer by id
|
||||
*
|
||||
* @param int $id
|
||||
* @param int|null $websiteId
|
||||
* @return \Magento\Customer\Api\Data\CustomerInterface
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function getById($id, $websiteId = null);
|
||||
|
||||
/**
|
||||
* Delete customer by id
|
||||
*
|
||||
* @param int $id
|
||||
* @return bool
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function delete($id);
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\TestModuleDefaultHydrator\Api\Data;
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
interface ExtensionAttributeInterface
|
||||
{
|
||||
/**#@+
|
||||
* Constants for keys of data array. Identical to the name of the getter in snake case
|
||||
*/
|
||||
public const ID = 'id';
|
||||
public const CUSTOMER_ID = 'customer_id';
|
||||
public const VALUE = 'value';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Get ID
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* Set ID
|
||||
*
|
||||
* @param int $id
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id);
|
||||
|
||||
/**
|
||||
* Get customer ID
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCustomerId();
|
||||
|
||||
/**
|
||||
* Set customer ID
|
||||
*
|
||||
* @param int $customerId
|
||||
* @return $this
|
||||
*/
|
||||
public function setCustomerId($customerId);
|
||||
|
||||
/**
|
||||
* Get value
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getValue();
|
||||
|
||||
/**
|
||||
* Set value
|
||||
*
|
||||
* @param string $value
|
||||
* @return $this
|
||||
*/
|
||||
public function setValue($value);
|
||||
}
|
||||
Reference in New Issue
Block a user