新增和平小店兑换记录查询

This commit is contained in:
yml2213
2026-08-08 19:44:39 +08:00
parent 57344c7874
commit c84940a5dc
7 changed files with 668 additions and 1 deletions
+17
View File
@@ -119,6 +119,23 @@ type VerifyAllExchangeResult struct {
Results map[string]AccountExchangeResult `json:"results"`
}
// XiaodianExchangeAccountResult 是单个账号的和平小店兑换记录查询结果。
type XiaodianExchangeAccountResult struct {
Success bool `json:"success"`
Records []XiaodianExchangeRecord `json:"records,omitempty"`
Matched bool `json:"matched"`
Error string `json:"error,omitempty"`
}
// XiaodianExchangeRecordsResult 是批量查询和平小店兑换记录的结果。
type XiaodianExchangeRecordsResult struct {
Success bool `json:"success"`
ProductID string `json:"productId"`
ProductName string `json:"productName"`
Results map[string]XiaodianExchangeAccountResult `json:"results"`
Error string `json:"error,omitempty"`
}
// ExportAccountsResult 导出账号结果。
type ExportAccountsResult struct {
Success bool `json:"success"`
+10
View File
@@ -223,3 +223,13 @@ type ExchangeRecord struct {
Time string `json:"time"`
Score string `json:"score"`
}
// XiaodianExchangeRecord 是和平小店订单记录,商品明细来自 sGoodsInfo.list。
type XiaodianExchangeRecord struct {
CommodityID string `json:"commodityId"`
CommodityName string `json:"commodityName"`
Quantity int `json:"quantity"`
BuyTime string `json:"buyTime"`
PayTime string `json:"payTime"`
Status string `json:"status"`
}