16 changed files with 206 additions and 12 deletions
-
3app/Controller/v3/GoodsController.php
-
39app/Controller/v3/HomeController.php
-
14app/Controller/v3/OrderListController.php
-
4app/Controller/v3/StoreLoginController.php
-
15app/Model/v3/Order.php
-
5app/Model/v3/OrderMain.php
-
4app/Service/v3/Implementations/GoodsService.php
-
72app/Service/v3/Implementations/OrderListService.php
-
30app/Service/v3/Implementations/StoreInfoService.php
-
4app/Service/v3/Implementations/StoreLoginService.php
-
2app/Service/v3/Interfaces/GoodsServiceInterface.php
-
2app/Service/v3/Interfaces/OrderListServiceInterface.php
-
16app/Service/v3/Interfaces/StoreInfoServiceInterface.php
-
2app/Service/v3/Interfaces/StoreLoginServiceInterface.php
-
3config/autoload/dependencies.php
-
3config/routes.php
@ -0,0 +1,30 @@ |
|||||
|
<?php |
||||
|
|
||||
|
|
||||
|
namespace App\Service\v3\Implementations; |
||||
|
|
||||
|
use App\Service\v3\Interfaces\StoreInfoServiceInterface; |
||||
|
use App\Model\v3\Store; |
||||
|
class StoreInfoService implements StoreInfoServiceInterface |
||||
|
{ |
||||
|
|
||||
|
public function do() |
||||
|
{ |
||||
|
// TODO: Implement do() method.
|
||||
|
} |
||||
|
|
||||
|
public function check() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public function undo() |
||||
|
{ |
||||
|
// TODO: Implement undo() method.
|
||||
|
} |
||||
|
|
||||
|
public function detail() |
||||
|
{ |
||||
|
return Store::query()->where('id',1)->first()->toArray(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,16 @@ |
|||||
|
<?php |
||||
|
|
||||
|
|
||||
|
namespace App\Service\v3\Interfaces; |
||||
|
|
||||
|
|
||||
|
interface StoreInfoServiceInterface |
||||
|
{ |
||||
|
public function do(); |
||||
|
|
||||
|
public function check(); |
||||
|
|
||||
|
public function undo(); |
||||
|
|
||||
|
public function detail(); |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue