feat(wechat): add news morning draft admin UI and API routes

Expose preview/push controls for daily-news WeChat draft publishing with
inline HTML body mode in the Wechat admin page.
This commit is contained in:
john
2026-09-10 09:25:25 +08:00
parent d4127bd24b
commit b414b732c8
6 changed files with 493 additions and 0 deletions
+8
View File
@@ -43,6 +43,7 @@ export async function bootstrapAdminServices() {
const { createAssetGatewayConfigService } = await importMemind('asset-gateway.mjs');
const { ensureAssetGatewaySchema } = await importMemind('db.mjs');
const { createWechatScheduleLlmConfigService } = await importMemind('wechat-schedule-llm-config.mjs');
const { createWechatNewsMorningDraftService } = await importMemind('wechat-news-morning-draft.mjs');
const { createWechatIntentRouterConfigService } = await importMemind('wechat-intent-router-config.mjs');
const { createWechatCursorExecutorAdminConfigService } = await importMemind(
'wechat-cursor-executor-admin-config.mjs',
@@ -138,6 +139,12 @@ export async function bootstrapAdminServices() {
portalBaseUrl: `http://127.0.0.1:${process.env.H5_PORT ?? 8081}`,
});
const wechatMpConfig = loadWechatMpConfig();
const wechatNewsMorningDraftService = createWechatNewsMorningDraftService(pool, {
mpConfig: wechatMpConfig,
h5Root,
memindLibRoot: resolveMemindLib(),
env: process.env,
});
const wechatMpService = createWechatMpService({
config: wechatMpConfig,
userAuth,
@@ -204,6 +211,7 @@ export async function bootstrapAdminServices() {
skillRuntimeConfigService,
billingConfigService,
wechatScheduleLlmConfigService,
wechatNewsMorningDraftService,
wechatIntentRouterConfigService,
wechatCursorExecutorPolicyService,
adminSystemTestService,