Browse Source
Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix
Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix
# Conflicts: # app/Service/v3/Implementations/GoodsActivityService.php # app/Service/v3/Interfaces/GoodsActivityServiceInterface.php # config/autoload/dependencies.php # config/routes.phpmaster
25 changed files with 284 additions and 34 deletions
-
28app/Constants/v3/Withdrawal.php
-
15app/Controller/v3/BalanceStatementController.php
-
18app/Controller/v3/GoodsController.php
-
19app/Controller/v3/SearchController.php
-
8app/Model/v3/GoodsActivity.php
-
10app/Model/v3/GoodsActivityBanner.php
-
15app/Model/v3/GoodsBanner.php
-
9app/Model/v3/Order.php
-
19app/Model/v3/StoreWithdrawal.php
-
7app/Service/v3/Implementations/CategoryService.php
-
14app/Service/v3/Implementations/GoodsActivityService.php
-
13app/Service/v3/Implementations/GoodsService.php
-
13app/Service/v3/Implementations/LocationService.php
-
41app/Service/v3/Implementations/OrderListService.php
-
13app/Service/v3/Implementations/RevenueListService.php
-
21app/Service/v3/Implementations/ShopCartService.php
-
29app/Service/v3/Implementations/WithdrawalListService.php
-
3app/Service/v3/Interfaces/GoodsActivityServiceInterface.php
-
2app/Service/v3/Interfaces/GoodsServiceInterface.php
-
1app/Service/v3/Interfaces/LocationServiceInterface.php
-
2app/Service/v3/Interfaces/RevenueListServiceInterface.php
-
2app/Service/v3/Interfaces/ShopCartServiceInterface.php
-
13app/Service/v3/Interfaces/WithdrawalListServiceInterface.php
-
1config/autoload/dependencies.php
-
2config/routes.php
@ -0,0 +1,28 @@ |
|||
<?php |
|||
|
|||
namespace App\Constants\v3; |
|||
|
|||
use Hyperf\Constants\AbstractConstants; |
|||
use Hyperf\Constants\Annotation\Constants; |
|||
|
|||
/** |
|||
* @Constants |
|||
*/ |
|||
class Withdrawal extends AbstractConstants |
|||
{ |
|||
|
|||
/** |
|||
* @Message("待审核") |
|||
*/ |
|||
const EXAMINE = 1; |
|||
|
|||
/** |
|||
* @Message("已通过") |
|||
*/ |
|||
const ACCEPT = 2; |
|||
|
|||
/** |
|||
* @Message("已拒绝") |
|||
*/ |
|||
const REFUSE = 3; |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
<?php |
|||
|
|||
namespace App\Model\v3; |
|||
|
|||
use App\Model\Model; |
|||
use App\Constants\v3\Withdrawal; |
|||
class StoreWithdrawal extends Model |
|||
{ |
|||
protected $table = 'lanzu_store_withdrawal'; |
|||
|
|||
protected $appends = [ |
|||
'state_text', |
|||
]; |
|||
|
|||
public function getStateTextAttribute() |
|||
{ |
|||
return Withdrawal::getMessage($this->attributes['state']); |
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
<?php |
|||
|
|||
|
|||
namespace App\Service\v3\Implementations; |
|||
use App\Service\v3\Interfaces\WithdrawalListServiceInterface; |
|||
use App\Model\v3\StoreWithdrawal; |
|||
class WithdrawalListService implements WithdrawalListServiceInterface |
|||
{ |
|||
public function do() |
|||
{ |
|||
// TODO: Implement do() method.
|
|||
} |
|||
|
|||
public function check() |
|||
{ |
|||
// TODO: Implement check() method.
|
|||
} |
|||
|
|||
public function undo() |
|||
{ |
|||
// TODO: Implement undo() method.
|
|||
} |
|||
|
|||
public function getListByStore($storeId) |
|||
{ |
|||
$res = StoreWithdrawal::query()->where('store_id',$storeId)->get(); |
|||
return $res; |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
<?php |
|||
|
|||
|
|||
namespace App\Service\v3\Interfaces; |
|||
|
|||
|
|||
interface WithdrawalListServiceInterface |
|||
{ |
|||
public function do(); |
|||
public function check(); |
|||
public function undo(); |
|||
public function getListByStore($storeId); |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue