1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- // +----------------------------------------------------------------------
- // | Niucloud-admin 企业快速开发的saas管理平台
- // +----------------------------------------------------------------------
- // | 官方网址:https://www.niucloud.com
- // +----------------------------------------------------------------------
- // | niucloud团队 版权所有 开源版本可自由商用
- // +----------------------------------------------------------------------
- // | Author: Niucloud Team
- // +----------------------------------------------------------------------
- namespace app\api\controller\diy;
- use app\service\api\diy\AdvService;
- use app\service\api\diy\DiyConfigService;
- use app\service\api\diy\DiyRouteService;
- use app\service\api\diy\DiyService;
- use core\base\BaseApiController;
- use think\Response;
- class Diy extends BaseApiController
- {
- /**
- * 自定义页面信息
- * @return Response
- */
- public function info()
- {
- $params = $this->request->params([
- [ 'id', '' ],
- [ 'name', '' ],
- [ 'site_id', 0 ]
- ]);
- return success(( new DiyService() )->getInfo($params));
- }
- /**
- * 底部菜单信息
- * @return Response
- */
- public function tabbarList()
- {
- $params = $this->request->params([
- [ 'key', '' ],
- [ 'site_id', 0 ]
- ]);
- return success(( new DiyConfigService() )->getBottomList($params));
- }
- /**
- * 底部菜单信息
- * @return Response
- */
- public function tabbar()
- {
- return success(( new DiyConfigService() )->getBottomConfig());
- }
- /**
- * 分享内容
- * @return Response
- */
- public function share()
- {
- $data = $this->request->params([
- [ 'route', '' ],
- [ 'params', '' ]
- ]);
- return success(( new DiyRouteService() )->getShare($data));
- }
- public function getAdv()
- {
- $data = $this->request->params([
- [ 'ap_key', '' ]
- ]);
- return success(( new AdvService() )->getInfo($data[ 'ap_key' ]));
- }
- }
|