fix:通知和设备分配/回收
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m49s

This commit is contained in:
luo
2026-07-28 17:23:23 +08:00
parent b51a3f5537
commit ee266c51cc
7 changed files with 114 additions and 69 deletions

View File

@@ -1,6 +1,22 @@
export type NotificationCategory = 'approval' | 'expiry' | 'sync' | 'system' | string
export type NotificationSeverity = 'info' | 'warning' | 'error' | 'critical' | string
/** 后台通知引用的受控资源类型。 */
export type NotificationRefType =
| 'system_config'
| 'integration_log'
| 'package'
| 'asset'
| 'refund'
| 'agent_recharge'
| 'wecom_approval'
| 'iot_card'
| 'device'
| 'expiring_asset'
| 'shop_fund'
| 'card_sync'
| (string & {})
export interface NotificationItem {
id: number
title: string
@@ -11,7 +27,7 @@ export interface NotificationItem {
is_read: boolean
created_at: string
read_at: string | null
ref_type: string | null
ref_type: NotificationRefType | null
ref_id: string | null
ref_key: string | null
}
@@ -63,7 +79,7 @@ export interface NotificationReadAllResponse {
export interface NotificationTarget {
available: boolean
target_id: number | null
target_id: number | string | null
target_key: string
target_type: string
}