From 2d8a669a40f72b4f917035c0b8cea62a4c2e60a0 Mon Sep 17 00:00:00 2001 From: namhq1989 Date: Wed, 21 Dec 2022 11:38:29 +0700 Subject: [PATCH] add struct IDAndName --- model.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/model.go b/model.go index 0f33f37..158308d 100644 --- a/model.go +++ b/model.go @@ -2,6 +2,15 @@ package natsio import "go.mongodb.org/mongo-driver/bson/primitive" +// +// Common +// + +type IDAndName struct { + ID string `json:"_id"` + Name string `json:"name"` +} + // // USER //