From d929492e3d337442dac9fe5b5ef59e4474435967 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 20 Nov 2024 18:45:23 +0200 Subject: [PATCH] Add implementation for Identifiable interface for Metric entity --- db/metric.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/metric.go b/db/metric.go index b39026e..daddf56 100644 --- a/db/metric.go +++ b/db/metric.go @@ -8,3 +8,7 @@ type Metric struct { Name string Short string } + +func (m Metric) GetID() uint { + return m.ID +}