package constants

// 资产审计日志结果状态常量
const (
	AssetAuditResultSuccess = "success" // 成功
	AssetAuditResultFailed  = "failed"  // 失败
	AssetAuditResultDenied  = "denied"  // 拒绝
)

// 资产审计日志操作者类型常量
const (
	AssetAuditOperatorTypeSystem     = "system"            // 系统任务
	AssetAuditOperatorTypeAdmin      = "admin_user"        // 平台/超管用户
	AssetAuditOperatorTypeAgent      = "agent_user"        // 代理用户
	AssetAuditOperatorTypeEnterprise = "enterprise_user"   // 企业用户
	AssetAuditOperatorTypePersonal   = "personal_customer" // 个人客户
)

// 资产审计日志操作类型常量
const (
	AssetAuditOpCardAllocate            = "card_allocate"               // 单卡分配
	AssetAuditOpCardRecall              = "card_recall"                 // 单卡回收
	AssetAuditOpCardSeriesBinding       = "card_series_binding"         // 卡系列绑定
	AssetAuditOpCardPollingStatus       = "card_polling_status"         // 卡轮询状态更新
	AssetAuditOpCardRealnamePolicy      = "card_realname_policy"        // 卡实名策略更新
	AssetAuditOpCardRealnameStatus      = "card_realname_status"        // 卡实名状态更新
	AssetAuditOpCardDelete              = "card_delete"                 // 删除卡
	AssetAuditOpCardBatchDelete         = "card_batch_delete"           // 批量删除卡
	AssetAuditOpCardManualStop          = "card_manual_stop"            // 手动停卡
	AssetAuditOpCardManualStart         = "card_manual_start"           // 手动复机
	AssetAuditOpCardAutoStop            = "card_auto_stop"              // 自动停卡
	AssetAuditOpCardAutoStart           = "card_auto_start"             // 自动复机
	AssetAuditOpDeviceDelete            = "device_delete"               // 删除设备
	AssetAuditOpDeviceAllocate          = "device_allocate"             // 设备分配
	AssetAuditOpDeviceRecall            = "device_recall"               // 设备回收
	AssetAuditOpDeviceSeriesBinding     = "device_series_binding"       // 设备系列绑定
	AssetAuditOpDeviceBindCard          = "device_bind_card"            // 设备绑卡
	AssetAuditOpDeviceUnbindCard        = "device_unbind_card"          // 设备解绑卡
	AssetAuditOpDeviceStop              = "device_stop"                 // 设备停机
	AssetAuditOpDeviceStart             = "device_start"                // 设备复机
	AssetAuditOpDeviceSetWiFi           = "device_set_wifi"             // 设备 WiFi 设置
	AssetAuditOpDeviceSwitchCard        = "device_switch_card"          // 设备切卡
	AssetAuditOpDeviceSwitchMode        = "device_switch_mode"          // 设备切卡模式
	AssetAuditOpDeviceReboot            = "device_reboot"               // 设备重启
	AssetAuditOpDeviceReset             = "device_reset"                // 设备恢复出厂
	AssetAuditOpAssetDeactivate         = "asset_deactivate"            // 资产停用
	AssetAuditOpAssetPollingStatus      = "asset_polling_status"        // 统一入口轮询状态更新
	AssetAuditOpAssetRealnamePolicy     = "asset_realname_policy"       // 统一入口实名策略更新
	AssetAuditOpAssetPackageExpiresAt   = "asset_package_expires_at"    // 资产套餐过期时间更新
	AssetAuditOpAssetPackageUsage       = "asset_package_usage"         // 资产套餐已用量更新
	AssetAuditOpCardSpeedTier           = "card_speed_tier"             // IoT 卡固定限速档位设置
	AssetAuditOpDeviceImportTaskCreate  = "device_import_task_create"   // 设备导入任务创建
	AssetAuditOpDeviceBatchTaskCreate   = "device_batch_task_create"    // 设备CSV批量分配任务创建
	AssetAuditOpIotCardImportTaskCreate = "iot_card_import_task_create" // 卡导入任务创建
)

// 资产审计日志数据裁剪常量
const (
	AssetAuditDataMaxBytes    = 16 * 1024 // before/after 数据最大字节数
	AssetAuditPreviewMaxBytes = 2048      // 裁剪预览最大字节数
)
