mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Allow users to reserve subdomains (#131)
This commit is contained in:
22
app/Contracts/SubdomainRepository.php
Normal file
22
app/Contracts/SubdomainRepository.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use React\Promise\PromiseInterface;
|
||||
|
||||
interface SubdomainRepository
|
||||
{
|
||||
public function getSubdomains(): PromiseInterface;
|
||||
|
||||
public function getSubdomainById($id): PromiseInterface;
|
||||
|
||||
public function getSubdomainByName(string $name): PromiseInterface;
|
||||
|
||||
public function getSubdomainsByUserId($id): PromiseInterface;
|
||||
|
||||
public function getSubdomainsByUserIdAndName($id, $name): PromiseInterface;
|
||||
|
||||
public function deleteSubdomainForUserId($userId, $subdomainId): PromiseInterface;
|
||||
|
||||
public function storeSubdomain(array $data): PromiseInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user