初始版本
This commit is contained in:
51
server/app/coachapi/controller/DecorateController.php
Executable file
51
server/app/coachapi/controller/DecorateController.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
namespace app\coachapi\controller;
|
||||
|
||||
use app\coachapi\logic\DecorateLogic;
|
||||
|
||||
/**
|
||||
* 装修风格控制器类
|
||||
* Class DecorateController
|
||||
* @package app\api\controller
|
||||
*/
|
||||
class DecorateController extends BaseCoachController
|
||||
{
|
||||
public array $notNeedLogin = ['page','style','tabbar'];
|
||||
/**
|
||||
* @notes 获取装修页面
|
||||
* @return \think\response\Json
|
||||
* @author cjhao
|
||||
* @date 2024/10/8 15:13
|
||||
*/
|
||||
public function page()
|
||||
{
|
||||
$type = $this->request->get('type',1);
|
||||
$detail = (new DecorateLogic())->page($type);
|
||||
return $this->success('',$detail);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取装修风格
|
||||
* @return \think\response\Json
|
||||
* @author cjhao
|
||||
* @date 2024/10/8 15:14
|
||||
*/
|
||||
public function style()
|
||||
{
|
||||
$detail = (new DecorateLogic())->style();
|
||||
return $this->success('',$detail);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 底部菜单
|
||||
* @return \think\response\Json
|
||||
* @author cjhao
|
||||
* @date 2024/10/8 15:57
|
||||
*/
|
||||
public function tabbar()
|
||||
{
|
||||
$detail = (new DecorateLogic())->tabbar();
|
||||
return $this->success('',$detail);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user