/** * 飞书配置管理 */ export interface FeishuConfig { app_id: string; app_secret: string; } /** * 获取飞书配置 * 优先从环境变量读取,如果没有则使用默认配置 */ export function getFeishuConfig(): FeishuConfig { return { app_id: process.env.FEISHU_APP_ID || '', app_secret: process.env.FEISHU_APP_SECRET || '' }; } /** * 验证配置是否有效 */ export function validateConfig(config: FeishuConfig): boolean { return !!(config.app_id && config.app_secret); }