mergeDev/campaign #73
|
@ -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))
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue