From 0a4947ed4fce6f084752664cdb44ded4ddb640ec Mon Sep 17 00:00:00 2001 From: tuannt20 <105765641+tuannt20@users.noreply.github.com> Date: Fri, 2 Dec 2022 14:32:15 +0700 Subject: [PATCH] add response --- model/campaign_response.go | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/model/campaign_response.go b/model/campaign_response.go index db8a90b..1c911e9 100644 --- a/model/campaign_response.go +++ b/model/campaign_response.go @@ -11,22 +11,23 @@ type ResponseCampaignTransactionAll struct { // ResponseNatsCampaignTransaction ... type ResponseNatsCampaignTransaction struct { - ID string `json:"_id"` - Cash float64 `json:"cash"` - Campaign ResponseCampaignShortInfo `json:"campaign"` - Options ResponseCampaignTransactionOptions `json:"options"` - Seller primitive.ObjectID `json:"seller"` - Type string `json:"type"` - Status string `json:"status"` - RejectedReason string `json:"rejectedReason"` - CreatedAt string `json:"createdAt"` - UpdatedAt string `json:"updatedAt"` - Item *ResponseCampaignItemShortInfo `json:"item"` - ApprovedBy primitive.ObjectID `json:"approvedBy,omitempty"` - RejectedBy primitive.ObjectID `json:"rejectedBy,omitempty"` - ApprovedAt string `json:"approvedAt,omitempty"` - RejectedAt string `json:"rejectedAt,omitempty"` - CompletedAt string `json:"completedAt,omitempty"` + ID string `json:"_id"` + Cash float64 `json:"cash"` + Campaign ResponseCampaignShortInfo `json:"campaign"` + Options ResponseCampaignTransactionOptions `json:"options"` + Seller primitive.ObjectID `json:"seller"` + Type string `json:"type"` + Status string `json:"status"` + RejectedReason string `json:"rejectedReason"` + CreatedAt string `json:"createdAt"` + UpdatedAt string `json:"updatedAt"` + Item *ResponseCampaignItemShortInfo `json:"item"` + ApprovedBy primitive.ObjectID `json:"approvedBy,omitempty"` + RejectedBy primitive.ObjectID `json:"rejectedBy,omitempty"` + ApprovedAt string `json:"approvedAt,omitempty"` + RejectedAt string `json:"rejectedAt,omitempty"` + CompletedAt string `json:"completedAt,omitempty"` + AdminConfirmData *ResponseCampaignTransactionAdminConfirmData `json:"adminConfirmData,omitempty"` } // ResponseCampaignShortInfo ... @@ -50,3 +51,8 @@ type ResponseCampaignTransactionOptions struct { Milestone int64 `json:"milestone"` MilestoneTitle string `json:"milestoneTitle"` } + +// ResponseCampaignTransactionAdminConfirmData ... +type ResponseCampaignTransactionAdminConfirmData struct { + FriendPublicTotal int64 `json:"friendPublicTotal"` +}