FixServiceDevies

This commit is contained in:
QuangMinh_123
2026-05-29 11:34:03 +07:00
parent edc4fc44c5
commit 48c5183c12
4 changed files with 84 additions and 27 deletions

View File

@@ -0,0 +1,12 @@
# pyrefly: ignore [missing-import]
from modules.alert.repository import insert_default_alert_config_db
# ============================================
# SERVICE LAYER: Xử lý nghiệp vụ cho Module Alert
# ============================================
def create_default_alert_config_service(device_id):
"""
Tạo cấu hình cảnh báo mặc định cho thiết bị mới.
"""
return insert_default_alert_config_db(device_id)