From af807784ec3d45a707b9d791a2f30f1297f172a9 Mon Sep 17 00:00:00 2001 From: tuannt20 <105765641+tuannt20@users.noreply.github.com> Date: Thu, 24 Nov 2022 11:14:15 +0700 Subject: [PATCH] fix response --- model/campaign_response.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/model/campaign_response.go b/model/campaign_response.go index 7482099..b563396 100644 --- a/model/campaign_response.go +++ b/model/campaign_response.go @@ -1,5 +1,7 @@ package model +import "go.mongodb.org/mongo-driver/bson/primitive" + // ResponseCampaignTransactionAll ... type ResponseCampaignTransactionAll struct { List []ResponseNatsCampaignTransaction `json:"list"` @@ -12,14 +14,14 @@ type ResponseNatsCampaignTransaction struct { ID string `json:"_id"` Cash float64 `json:"cash"` Campaign ResponseCampaignShortInfo `json:"campaign"` - Seller ResponseSellerInfo `json:"seller"` + Seller primitive.ObjectID `json:"seller"` Type string `json:"type"` RejectedReason string `json:"rejectedReason"` CreatedAt string `json:"createdAt"` UpdatedAt string `json:"updatedAt"` Item *ResponseCampaignItemShortInfo `json:"item"` - ApprovedBy *ResponseStaffInfo `json:"approvedBy,omitempty"` - RejectedBy *ResponseStaffInfo `json:"rejectedBy,omitempty"` + ApprovedBy primitive.ObjectID `json:"approvedBy,omitempty"` + RejectedBy primitive.ObjectID `json:"rejectedBy,omitempty"` ApprovedAt string `json:"approvedAt,omitempty"` RejectedAt string `json:"rejectedAt,omitempty"` }