refactor-location #134
|
@ -11,21 +11,22 @@ type ResponseCampaignTransactionAll struct {
|
||||||
|
|
||||||
// ResponseNatsCampaignTransaction ...
|
// ResponseNatsCampaignTransaction ...
|
||||||
type ResponseNatsCampaignTransaction struct {
|
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 primitive.ObjectID `json:"seller"`
|
Options ResponseCampaignTransactionOptions `json:"options"`
|
||||||
Type string `json:"type"`
|
Seller primitive.ObjectID `json:"seller"`
|
||||||
Status string `json:"status"`
|
Type string `json:"type"`
|
||||||
RejectedReason string `json:"rejectedReason"`
|
Status string `json:"status"`
|
||||||
CreatedAt string `json:"createdAt"`
|
RejectedReason string `json:"rejectedReason"`
|
||||||
UpdatedAt string `json:"updatedAt"`
|
CreatedAt string `json:"createdAt"`
|
||||||
Item *ResponseCampaignItemShortInfo `json:"item"`
|
UpdatedAt string `json:"updatedAt"`
|
||||||
ApprovedBy primitive.ObjectID `json:"approvedBy,omitempty"`
|
Item *ResponseCampaignItemShortInfo `json:"item"`
|
||||||
RejectedBy primitive.ObjectID `json:"rejectedBy,omitempty"`
|
ApprovedBy primitive.ObjectID `json:"approvedBy,omitempty"`
|
||||||
ApprovedAt string `json:"approvedAt,omitempty"`
|
RejectedBy primitive.ObjectID `json:"rejectedBy,omitempty"`
|
||||||
RejectedAt string `json:"rejectedAt,omitempty"`
|
ApprovedAt string `json:"approvedAt,omitempty"`
|
||||||
CompletedAt string `json:"completedAt,omitempty"`
|
RejectedAt string `json:"rejectedAt,omitempty"`
|
||||||
|
CompletedAt string `json:"completedAt,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResponseCampaignShortInfo ...
|
// ResponseCampaignShortInfo ...
|
||||||
|
@ -41,3 +42,11 @@ type ResponseCampaignItemShortInfo struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ResponseCampaignTransactionOptions ...
|
||||||
|
type ResponseCampaignTransactionOptions struct {
|
||||||
|
Link string `json:"link"`
|
||||||
|
SocialChannel string `json:"socialChannel"`
|
||||||
|
Milestone int64 `json:"milestone"`
|
||||||
|
MilestoneTitle string `json:"milestoneTitle"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue