This commit is contained in:
anbuiselly 2022-11-22 05:44:36 +07:00
parent 0a1c76bb88
commit 2719017b61
2 changed files with 2 additions and 0 deletions

View File

@ -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))

View File

@ -2,6 +2,7 @@ package subject
import "fmt"
// getSegmentValue ...
func getSegmentValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Segment, val)
}