mergeDev/campaign #73
|
@ -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))
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package subject
|
|||
|
||||
import "fmt"
|
||||
|
||||
// getSegmentValue ...
|
||||
func getSegmentValue(val string) string {
|
||||
return fmt.Sprintf("%s.%s", prefixes.Segment, val)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue