初始版本

This commit is contained in:
贾祥聪
2025-08-19 14:16:51 +08:00
commit f937a1f9b9
4373 changed files with 359728 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
<?php
namespace app\coachapi\logic;
use app\common\model\decorate\DecoratePage;
use app\common\model\decorate\DecorateStyle;
use app\common\model\decorate\DecorateTabbar;
/**
* 装修逻辑类
* Class DecorateLogic
* @package app\api\logic
*/
class DecorateLogic
{
/**
* @notes 获取装修页面
* @param int $type
* @return array
* @author cjhao
* @date 2024/10/8 15:11
*/
public function page(int $type)
{
$detail = DecoratePage::where(['type'=>$type,'source'=>2])->findOrEmpty()->toArray();
return $detail;
}
/**
* @notes 获取装修风格
* @return array
* @author cjhao
* @date 2024/10/8 15:13
*/
public function style()
{
$detail = DecorateStyle::where(['source'=>2])->findOrEmpty()->toArray();
return $detail;
}
/**
* @notes 底部菜单
* @return array
* @author cjhao
* @date 2024/10/8 15:59
*/
public function tabbar()
{
$detail = DecorateTabbar::where(['source'=>2])->findOrEmpty()->toArray();
return $detail;
}
}