公告类型契约收敛到数据中心并清理冗余契约

This commit is contained in:
堂吉诃德拉曼查的英豪
2026-08-07 14:51:05 +08:00
parent 5d86bde7a6
commit ae0b543bf1
11 changed files with 15 additions and 583 deletions

View File

@@ -12,8 +12,6 @@ interface NoticeService extends
NoticePositionInterface,
NoticePositionHistoryInterface,
NoticePositionCollectInterface,
NoticePositionPkInterface,
NoticeStatsInterface,
NoticeStatsLogInterface
NoticePositionPkInterface
{
}

View File

@@ -9,8 +9,6 @@ interface NoticeServiceInterface
// 公告管理
public function getList(array $params): array;
public function appGetNoticeTypes(int $regionId = 0): array;
public function appGetList(array $params): array;
public function officialGetList(array $params): array;

View File

@@ -1,12 +0,0 @@
<?php
declare(strict_types=1);
namespace Dhd\Micro\Interface\NoticeService;
/**
* 公告统计聚合契约(空,预留)
*/
interface NoticeStatsInterface
{
}

View File

@@ -1,26 +0,0 @@
<?php
declare(strict_types=1);
namespace Dhd\Micro\Interface\NoticeService;
interface NoticeStatsLogInterface
{
// 记录浏览日志
public function logView(int $noticeId): int;
// 记录分享日志
public function logShare(int $noticeId): int;
// 记录点赞日志
public function logLike(int $noticeId): int;
// 记录取消点赞日志
public function logCancelLike(int $noticeId): int;
// 记录下载日志
public function logDownload(int $noticeId, int $attachmentId): int;
// 获取公告的统计日志
public function getLogsByNoticeId(int $noticeId, array $params = []): array;
}