62 lines
1.9 KiB
PHP
62 lines
1.9 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | YwxApp [ WE CAN DO IT JUST THINK ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2026-2036 http://ywxapp.cn All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Author: ywxapp <admin@ywxapp.cn>
|
||
// +----------------------------------------------------------------------
|
||
|
||
declare(strict_types=1);
|
||
|
||
namespace addon\seo\controller\backend;
|
||
|
||
/**
|
||
* SEO增强后台控制器
|
||
*
|
||
* 业务占位骨架,四个动作对应 menu.json 的四个菜单项。
|
||
* 实际逻辑(读写 wxapp_seo_config/keywords/snapshots)在 TODO 处实现。
|
||
*/
|
||
class Seo extends SeoBackend
|
||
{
|
||
/**
|
||
* SEO概览:收录/排名/内链数等汇总
|
||
*/
|
||
public function index()
|
||
{
|
||
// TODO: 聚合 wxapp_seo_snapshots 与 wxapp_seo_keywords 的数量与概览指标
|
||
$this->view->assign('title', 'SEO概览');
|
||
return $this->view->fetch('seo/index');
|
||
}
|
||
|
||
/**
|
||
* SEO设置:站点标题/关键词/描述模板、robots 等
|
||
*/
|
||
public function setting()
|
||
{
|
||
// TODO: 读取/保存 wxapp_seo_config(表单提交经 POST 落库)
|
||
$this->view->assign('title', 'SEO设置');
|
||
return $this->view->fetch('seo/index');
|
||
}
|
||
|
||
/**
|
||
* 内链关键词:增删改查
|
||
*/
|
||
public function keywords()
|
||
{
|
||
// TODO: 内链关键词 CRUD(表 wxapp_seo_keywords)
|
||
$this->view->assign('title', '内链关键词');
|
||
return $this->view->fetch('seo/index');
|
||
}
|
||
|
||
/**
|
||
* 收录统计:搜索引擎收录/排名趋势
|
||
*/
|
||
public function stats()
|
||
{
|
||
// TODO: 收录排名趋势(表 wxapp_seo_snapshots)
|
||
$this->view->assign('title', '收录统计');
|
||
return $this->view->fetch('seo/index');
|
||
}
|
||
}
|