feature/campaign-completed #94
|
@ -1,5 +1,7 @@
|
||||||
package model
|
package model
|
||||||
|
|
||||||
|
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||||
|
|
||||||
// ResponseCampaignTransactionAll ...
|
// ResponseCampaignTransactionAll ...
|
||||||
type ResponseCampaignTransactionAll struct {
|
type ResponseCampaignTransactionAll struct {
|
||||||
List []ResponseNatsCampaignTransaction `json:"list"`
|
List []ResponseNatsCampaignTransaction `json:"list"`
|
||||||
|
@ -12,14 +14,14 @@ type ResponseNatsCampaignTransaction struct {
|
||||||
ID string `json:"_id"`
|
ID string `json:"_id"`
|
||||||
Cash float64 `json:"cash"`
|
Cash float64 `json:"cash"`
|
||||||
Campaign ResponseCampaignShortInfo `json:"campaign"`
|
Campaign ResponseCampaignShortInfo `json:"campaign"`
|
||||||
Seller ResponseSellerInfo `json:"seller"`
|
Seller primitive.ObjectID `json:"seller"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
RejectedReason string `json:"rejectedReason"`
|
RejectedReason string `json:"rejectedReason"`
|
||||||
CreatedAt string `json:"createdAt"`
|
CreatedAt string `json:"createdAt"`
|
||||||
UpdatedAt string `json:"updatedAt"`
|
UpdatedAt string `json:"updatedAt"`
|
||||||
Item *ResponseCampaignItemShortInfo `json:"item"`
|
Item *ResponseCampaignItemShortInfo `json:"item"`
|
||||||
ApprovedBy *ResponseStaffInfo `json:"approvedBy,omitempty"`
|
ApprovedBy primitive.ObjectID `json:"approvedBy,omitempty"`
|
||||||
RejectedBy *ResponseStaffInfo `json:"rejectedBy,omitempty"`
|
RejectedBy primitive.ObjectID `json:"rejectedBy,omitempty"`
|
||||||
ApprovedAt string `json:"approvedAt,omitempty"`
|
ApprovedAt string `json:"approvedAt,omitempty"`
|
||||||
RejectedAt string `json:"rejectedAt,omitempty"`
|
RejectedAt string `json:"rejectedAt,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue