57 lines
1.8 KiB
Go
57 lines
1.8 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
// GetTransactionsResponse ...
|
|
type GetTransactionsResponse struct {
|
|
Total int64 `json:"total"`
|
|
Limit int64 `json:"limit"`
|
|
List []TransactionInfo `json:"list"`
|
|
}
|
|
|
|
// TransactionInfo ...
|
|
type TransactionInfo struct {
|
|
ID string `json:"_id"`
|
|
Code string `json:"code"`
|
|
Campaign ResponseCampaignShort `json:"campaign"`
|
|
Seller ResponseSellerInfo `json:"seller"`
|
|
Source string `json:"source"`
|
|
Commission ResponseCampaignCommission `json:"commission"`
|
|
EstimateSellerCommission float64 `json:"estimateSellerCommission"`
|
|
TransactionTime time.Time `json:"transactionTime"`
|
|
Status string `json:"status"`
|
|
RejectedReason string `json:"rejectedReason"`
|
|
EstimateCashbackAt time.Time `json:"estimateCashbackAt"`
|
|
}
|
|
|
|
// ResponseCampaignCommission ...
|
|
type ResponseCampaignCommission struct {
|
|
Real float64 `json:"real"`
|
|
SellerPercent float64 `json:"sellerPercent"`
|
|
Selly float64 `json:"selly"`
|
|
Seller float64 `json:"seller"`
|
|
}
|
|
|
|
// ResponseCampaignShort ...
|
|
type ResponseCampaignShort struct {
|
|
ID string `json:"_id"`
|
|
Name string `json:"name"`
|
|
Logo *FilePhoto `json:"logo"`
|
|
}
|
|
|
|
var (
|
|
transcationInfoTitle = []string{
|
|
"ID lượt thưởng",
|
|
"Tên sản phẩm",
|
|
"ID Seller",
|
|
"Tên Seller",
|
|
"Thời gian phát sinh",
|
|
"Thời gian đối soát dự kiến",
|
|
"Trạng thái",
|
|
"Hoa hồng nhận từ đối tác",
|
|
"Phần trăm hóa hồng cho Seller",
|
|
"Hoa hồng cho Seller",
|
|
"Hoa hồng cho Selly",
|
|
}
|
|
)
|