Files
Neo-ZQYY/apps/miniprogram/typings/index.d.ts
Neo 6f8f12314f feat: 累积功能变更 — 聊天集成、租户管理、小程序更新、ETL 增强、迁移脚本
包含多个会话的累积代码变更:
- backend: AI 聊天服务、触发器调度、认证增强、WebSocket、调度器最小间隔
- admin-web: ETL 状态页、任务管理、调度配置、登录优化
- miniprogram: 看板页面、聊天集成、UI 组件、导航更新
- etl: DWS 新任务(finance_area_daily/board_cache)、连接器增强
- tenant-admin: 项目初始化
- db: 19 个迁移脚本(etl_feiqiu 11 + zqyy_app 8)
- packages/shared: 枚举和工具函数更新
- tools: 数据库工具、报表生成、健康检查
- docs: PRD/架构/部署/合约文档更新

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 00:03:48 +08:00

35 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* AI_CHANGELOG
| 日期 | Prompt | 变更 |
|------|--------|------|
| 2026-03-23 | 角色路由+页面权限守卫 | authUser 增加 role 字段globalData 增加 visibleTabs 字段 |
*/
/// <reference path="./types/index.d.ts" />
interface IAppOption {
globalData: {
userInfo?: WechatMiniprogram.UserInfo
/** 当前用户信息(认证系统) */
authUser?: {
userId: number
status: string // pending / approved / rejected / disabled
nickname?: string
// CHANGE 2026-03-24 | 头像:存储用户头像 URL
avatarUrl?: string
// CHANGE 2026-03-23 | 角色路由:存储用户角色 code
role?: string // coach / staff / head_coach / manager
}
/** access_token */
token?: string
/** refresh_token */
refreshToken?: string
/** 当前选中的 site_id */
currentSiteId?: number
/** 用户关联的店铺列表 */
sites?: Array<{ siteId: number; siteName: string; roles: string[] }>
// CHANGE 2026-03-23 | 角色路由tab-bar 可见 key 列表
visibleTabs?: string[]
// CHANGE 2026-03-27 | 权限改造 W5后端返回的权限码列表
permissions?: string[]
}
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback
}