mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-07-07 02:12:49 +08:00
feat(post): 新增手机图片排版与AI智能排版功能
- 新增手机图片排版功能,支持小红书/抖音尺寸输出 - 新增AI智能排版顾问,支持内容分析与优化推荐 - 新增AI供应商管理,支持多渠道配置与同步 - 新增文章输出管理页面,支持图片预览与批量下载 - 新增字体文件与排版样式配置
This commit is contained in:
28
app/common/tools/PostOutputManagerInterface.php
Normal file
28
app/common/tools/PostOutputManagerInterface.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\tools;
|
||||
|
||||
use app\model\Post;
|
||||
|
||||
interface PostOutputManagerInterface
|
||||
{
|
||||
/**
|
||||
* 返回该输出类型需要的配置字段定义
|
||||
*/
|
||||
public function getConfigFields(): array;
|
||||
|
||||
/**
|
||||
* 验证配置合法性
|
||||
*/
|
||||
public function validateConfig(array $config): bool;
|
||||
|
||||
/**
|
||||
* 执行输出处理,返回文件信息数组
|
||||
*/
|
||||
public function process(Post $post, array $config): array;
|
||||
|
||||
/**
|
||||
* 返回预览HTML
|
||||
*/
|
||||
public function getPreview(Post $post, array $config): string;
|
||||
}
|
||||
Reference in New Issue
Block a user