From 2719017b61798a38ebff3d137aa4a21f6e4c2ffd Mon Sep 17 00:00:00 2001 From: anbuiselly <105765792+anbuiselly@users.noreply.github.com> Date: Tue, 22 Nov 2022 05:44:36 +0700 Subject: [PATCH] add cmt --- client/segment.go | 1 + subject/segment.go | 1 + 2 files changed, 2 insertions(+) diff --git a/client/segment.go b/client/segment.go index ec937c8..bcc7bab 100644 --- a/client/segment.go +++ b/client/segment.go @@ -16,6 +16,7 @@ func GetSegment() Segment { return Segment{} } +// GetListSegmentInfoByIds ... func (s Segment) GetListSegmentInfoByIds(p model.GetListSegmentRequest) (*model.ResponseListSegmentInfo, error) { msg, err := natsio.GetServer().Request(subject.Segment.GetListSegmentInfo, toBytes(p)) diff --git a/subject/segment.go b/subject/segment.go index 54d5b7e..f6021ca 100644 --- a/subject/segment.go +++ b/subject/segment.go @@ -2,6 +2,7 @@ package subject import "fmt" +// getSegmentValue ... func getSegmentValue(val string) string { return fmt.Sprintf("%s.%s", prefixes.Segment, val) }