40 lines
1.5 KiB
Go
40 lines
1.5 KiB
Go
package model
|
|
|
|
// ResponseCampaignTransactionAll ...
|
|
type ResponseCampaignTransactionAll struct {
|
|
List []ResponseNatsCampaignTransaction `json:"list"`
|
|
Total int64 `json:"total"`
|
|
Limit int64 `json:"limit"`
|
|
}
|
|
|
|
// ResponseNatsCampaignTransaction ...
|
|
type ResponseNatsCampaignTransaction struct {
|
|
ID string `json:"_id"`
|
|
Cash float64 `json:"cash"`
|
|
Campaign ResponseCampaignShortInfo `json:"campaign"`
|
|
Seller ResponseSellerInfo `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"`
|
|
ApprovedAt string `json:"approvedAt,omitempty"`
|
|
RejectedAt string `json:"rejectedAt,omitempty"`
|
|
}
|
|
|
|
// ResponseCampaignShortInfo ...
|
|
type ResponseCampaignShortInfo struct {
|
|
ID string `json:"_id"`
|
|
Name string `json:"name"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
// ResponseCampaignItemShortInfo ...
|
|
type ResponseCampaignItemShortInfo struct {
|
|
ID string `json:"_id"`
|
|
Name string `json:"name"`
|
|
Status string `json:"status"`
|
|
}
|