add get segment info #70

Merged
Ghost merged 2 commits from feaure/staff-getinfo into develop 2022-11-21 22:44:59 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 2719017b61 - Show all commits

View File

@ -16,6 +16,7 @@ func GetSegment() Segment {
return Segment{} return Segment{}
} }
// GetListSegmentInfoByIds ...
func (s Segment) GetListSegmentInfoByIds(p model.GetListSegmentRequest) (*model.ResponseListSegmentInfo, error) { func (s Segment) GetListSegmentInfoByIds(p model.GetListSegmentRequest) (*model.ResponseListSegmentInfo, error) {
msg, err := natsio.GetServer().Request(subject.Segment.GetListSegmentInfo, toBytes(p)) msg, err := natsio.GetServer().Request(subject.Segment.GetListSegmentInfo, toBytes(p))

View File

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