update #126

Merged
minhnguyen merged 1 commits from feature-campaign-get-seller-statistic into develop 2023-01-11 03:21:25 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 2003cb4e49 - Show all commits

View File

@ -36,15 +36,15 @@ func (c Campaign) GetCampaignTransaction(p model.GetCampaignTransactionsRequest)
}
// GetCampaignSellerStatistic ....
func (c Campaign) GetCampaignSellerStatistic(req model.GetCampaignSellerStatisticBySellerIDs) (*model.ResponseCampaignSellerStatistic, error) {
func (c Campaign) GetCampaignSellerStatistic(req model.GetCampaignSellerStatisticBySellerIDs) (*model.ResponseCampaignSellerStatisticList, error) {
msg, err := natsio.GetServer().Request(subject.Campaign.GetCampaignSellerStatisticBySellerIDs, toBytes(req))
if err != nil {
return nil, err
}
var r struct {
Data *model.ResponseCampaignSellerStatistic `json:"data"`
Error string `json:"error"`
Data *model.ResponseCampaignSellerStatisticList `json:"data"`
Error string `json:"error"`
}
if err = json.Unmarshal(msg.Data, &r); err != nil {