feat(gmw): public features #7-14 — scam domains, top channels, hourly heatmap, category drill-down, coverage stats, channel culture glossary, term KB, edit history

ALSO fixes: dashboard.repository still JOINed dropped user_reputations table (listUsers/getUserDetail crash).
This commit is contained in:
asepharyana
2026-08-18 20:45:12 +07:00
parent 2a8f6d9062
commit 00e8d68ce5
38 changed files with 1542 additions and 25 deletions
@@ -0,0 +1,18 @@
import { createChildLogger } from "../../shared/logger/index.js";
import { knowledgeRepository } from "./knowledge.repository.js";
const logger = createChildLogger("knowledge.service");
export class KnowledgeService {
async listChannelCultures(limit = 50, search?: string) {
logger.debug({ limit, search }, "Listing channel cultures");
return knowledgeRepository.listChannelCultures(limit, search);
}
async listGlossary(limit = 50, search?: string) {
logger.debug({ limit, search }, "Listing glossary terms");
return knowledgeRepository.listGlossary(limit, search);
}
}
export const knowledgeService = new KnowledgeService();