From a1d6840fd92d73f9d4619a39a5a530f17a4b7746 Mon Sep 17 00:00:00 2001 From: tuannt20 <105765641+tuannt20@users.noreply.github.com> Date: Tue, 28 Feb 2023 17:14:49 +0700 Subject: [PATCH] add field get list seller by ids --- js/model/selly.go | 7 +++++++ model/seller_response.go | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/js/model/selly.go b/js/model/selly.go index 68d3342..66e5673 100644 --- a/js/model/selly.go +++ b/js/model/selly.go @@ -62,4 +62,11 @@ type CashFlowOptions struct { // Campaign CampaignID string `json:"campaignId,omitempty"` CampaignName string `json:"campaignName,omitempty"` + + // SavingCampaign + SavingCampaignID string `json:"savingCampaignId,omitempty"` + SavingCampaignName string `json:"savingCampaignName,omitempty"` + + SavingCampaignItemID string `json:"savingCampaignItemId,omitempty"` + SavingCampaignItemName string `json:"savingCampaignItemName,omitempty"` } diff --git a/model/seller_response.go b/model/seller_response.go index 01c80e5..2892e08 100644 --- a/model/seller_response.go +++ b/model/seller_response.go @@ -4,9 +4,11 @@ import "time" // ResponseSellerInfo ... type ResponseSellerInfo struct { - ID string `json:"_id"` - Name string `json:"name"` - Code string `json:"code"` + ID string `json:"_id"` + Name string `json:"name"` + Code string `json:"code"` + PlanPackage *SellerPlanPackageInfo `json:"planPackage,omitempty"` + CashRemaining float64 `json:"cashRemaining"` } // ResponseListSellerInfo ...