Implement present box

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-05 06:53:48 +08:00
parent a7ec1f1b7b
commit c4f1686abb
16 changed files with 227 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
package rewardapischema
type HistoryData struct {
ItemCount int `json:"item_count"`
Limit int `json:"limit"`
History []any `json:"history"`
}
type HistoryResp struct {
Result HistoryData `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+15
View File
@@ -0,0 +1,15 @@
package rewardapischema
type ListData struct {
ItemCount int `json:"item_count"`
Limit int `json:"limit"`
Order int `json:"order"`
Items []any `json:"items"`
}
type ListResp struct {
Result ListData `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}