| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /**
- * 设置页相关类型定义
- */
- /**
- * 用户统计数据
- */
- export interface UserStats {
- /** 本月出勤天数 */
- thisMonthAttendance: number
- /** 累计出勤天数 */
- totalAttendance: number
- /** 本月薪资(元) */
- thisMonthSalary: number
- }
- /**
- * 用户信息摘要
- */
- export interface UserProfile {
- /** 用户ID */
- id: number
- /** 姓名 */
- name: string
- /** 残疾类型 */
- disabilityType: string
- /** 残疾等级 */
- disabilityLevel: string
- /** 用户统计数据 */
- stats: UserStats
- }
- /**
- * 登录日志
- */
- export interface LoginLog {
- /** 日志ID */
- id: number
- /** 登录时间 */
- loginTime: string
- /** 设备信息 */
- device: string
- /** IP地址 */
- ipAddress: string
- }
- /**
- * 菜单项类型
- */
- export interface MenuItem {
- /** 菜单项唯一标识 */
- id: string
- /** 菜单项标题 */
- title: string
- /** 图标类名(Heroicons) */
- icon: string
- /** 图标背景色类名 */
- bgColor: string
- /** 图标颜色类名 */
- iconColor: string
- /** 点击处理函数 */
- onPress: () => void
- }
- /**
- * 菜单分组
- */
- export interface MenuSection {
- /** 分组标题 */
- title?: string
- /** 菜单项列表 */
- items: MenuItem[]
- }
|