remove unused WeCom backend integration

This commit is contained in:
inman
2026-07-23 18:44:54 +08:00
parent 4b3734f988
commit a284fbe3f3
11 changed files with 6 additions and 1022 deletions

View File

@@ -15,7 +15,6 @@ import {
miniProgramProfileUpdateSchema,
} from "../schemas.js";
import { exchangeWechatLoginCode, exchangeWechatPhoneCode, getWechatAppId } from "../wechat.js";
import { getWecomContactWayConfigDefaults, WECOM_CONTACT_PLUGIN_ID, WECOM_CONTACT_PLUGIN_VERSION } from "../wecom.js";
const productQuerySchema = z.object({
keyword: z.string().optional(),
@@ -365,21 +364,6 @@ export async function registerPublicRoutes(app: FastifyInstance) {
app.get("/health", async () => ({ ok: true, service: "miniapp-api", mode: "postgres", persistent: true }));
app.get("/api/public/wecom/contact-way", async () => {
const config = getWecomContactWayConfigDefaults();
return {
enabled: config.enabled,
configId: config.configId,
type: config.type,
scene: config.scene,
style: config.style,
remark: config.remark,
state: config.state,
pluginId: WECOM_CONTACT_PLUGIN_ID,
pluginVersion: WECOM_CONTACT_PLUGIN_VERSION,
};
});
app.get("/api/public/site-config", async () => {
const [homeModules, heroSlides, destinations, themes, ctaBanners, campaigns, destinationPageConfig, searchPageConfig] = await Promise.all([
listHomeModules(true),