import type { BuiltinJob } from "./job_registry"; /** * 智电网关同步任务:从 ICC 平台拉取智电改造网关设备并按 imei/deviceCode 幂等 upsert, * 写 icc_sync_log。默认每 10 分钟执行一次。 */ export const iccGatewaySyncJob: BuiltinJob = { jobKey: "icc_gateway_sync", jobName: "智电网关同步", description: "从 ICC 平台拉取智电改造网关设备并按 imei/deviceCode 幂等 upsert(写 icc_sync_log)", defaultCron: "*/10 * * * *", defaultParams: {}, paramFields: [], handler: async (_params, ctx) => { return ctx.runtime.syncIccGateways(); } };