Merge pull request 'feature/campaign-completed' (#84) from feature/campaign-completed into develop

Reviewed-on: #84
This commit is contained in:
Minh Nguyen 2022-11-24 03:08:16 +00:00
commit 83d795fcee
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ import (
// Campaign ... // Campaign ...
type Campaign struct{} type Campaign struct{}
// GetCampaign ...
func GetCampaign() Campaign {
return Campaign{}
}
// GetCampaignTransaction ... // GetCampaignTransaction ...
func (c Campaign) GetCampaignTransaction(p model.GetCampaignTransactionsRequest) (*model.ResponseCampaignTransactionAll, error) { func (c Campaign) GetCampaignTransaction(p model.GetCampaignTransactionsRequest) (*model.ResponseCampaignTransactionAll, error) {
msg, err := natsio.GetServer().Request(subject.Campaign.GetListCampaignTransactionAdminInfoByIDs, toBytes(p)) msg, err := natsio.GetServer().Request(subject.Campaign.GetListCampaignTransactionAdminInfoByIDs, toBytes(p))