Browse Source
Merge branch 'phoenix' of http://120.24.33.109:11081/hyzjshwo/lanzu_api_hyperf into phoenix
master
Merge branch 'phoenix' of http://120.24.33.109:11081/hyzjshwo/lanzu_api_hyperf into phoenix
master
17 changed files with 153 additions and 220 deletions
-
17app/Constants/v3/OssThumbnail.php
-
5app/Constants/v3/SsdbKeys.php
-
187app/Controller/v3/GoodsRecommendController.php
-
17app/Controller/v3/HomeController.php
-
9app/Controller/v3/UserController.php
-
6app/Model/v3/Banner.php
-
4app/Model/v3/Goods.php
-
5app/Model/v3/GoodsActivity.php
-
11app/Request/v3/UserUpdateRequest.php
-
7app/Service/v3/Implementations/ActivityService.php
-
3app/Service/v3/Implementations/CategoryService.php
-
35app/Service/v3/Implementations/TabsService.php
-
35app/Service/v3/Implementations/UserInfoService.php
-
18app/Service/v3/Implementations/WxLoginService.php
-
11app/Service/v3/Interfaces/TabsServiceInterface.php
-
2app/Service/v3/Interfaces/UserInfoServiceInterface.php
-
1config/autoload/dependencies.php
@ -0,0 +1,17 @@ |
|||
<?php |
|||
|
|||
namespace App\Constants\v3; |
|||
|
|||
use Hyperf\Constants\AbstractConstants; |
|||
use Hyperf\Constants\Annotation\Constants; |
|||
|
|||
/** |
|||
* @Constants |
|||
*/ |
|||
class OssThumbnail extends AbstractConstants |
|||
{ |
|||
/** |
|||
* @Message("thumbnail_100_q50") |
|||
*/ |
|||
const THUMBNAIL_100_Q50 = '!thumbnail_100_q50'; |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
<?php |
|||
|
|||
namespace App\Service\v3\Implementations; |
|||
|
|||
use App\Constants\v3\Tabs; |
|||
use App\Service\v3\Interfaces\TabsServiceInterface; |
|||
|
|||
class TabsService implements TabsServiceInterface |
|||
{ |
|||
|
|||
public function do() |
|||
{ |
|||
// TODO: Implement do() method.
|
|||
} |
|||
|
|||
public function check() |
|||
{ |
|||
// TODO: Implement check() method.
|
|||
} |
|||
|
|||
public function undo() |
|||
{ |
|||
// TODO: Implement undo() method.
|
|||
} |
|||
|
|||
public function allForAppletIndex() |
|||
{ |
|||
return [ |
|||
['tab' => Tabs::APPLET_INDEX_RECOMMEND, 'title' => '推荐', 'subtitle' => '猜你喜欢', 'badge' => '', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|||
['tab' => Tabs::APPLET_INDEX_NEW, 'title' => '懒族上新', 'subtitle' => '买点不一样', 'badge' => '限时', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|||
['tab' => Tabs::APPLET_INDEX_FRESH, 'title' => '实时鲜货', 'subtitle' => '今天辛苦了', 'badge' => '好新鲜', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|||
['tab' => Tabs::APPLET_INDEX_OFFICE, 'title' => '上班带餐', 'subtitle' => '轻奢快手菜', 'badge' => '不慌', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|||
]; |
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
<?php |
|||
|
|||
namespace App\Service\v3\Interfaces; |
|||
|
|||
interface TabsServiceInterface |
|||
{ |
|||
public function do(); |
|||
public function check(); |
|||
public function undo(); |
|||
public function allForAppletIndex(); |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue