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"`
}
+7
View File
@@ -0,0 +1,7 @@
package commonschema
import "honoka-chan/internal/constant"
type ErrorData struct {
ErrorCode constant.ErrorCode `json:"error_code"`
}
+13
View File
@@ -0,0 +1,13 @@
package rewardschema
type HistoryData struct {
ItemCount int `json:"item_count"`
Limit int `json:"limit"`
History []any `json:"history"`
}
type HistoryResp struct {
ResponseData HistoryData `json:"response_data"`
ReleaseInfo []any `json:"release_info"`
StatusCode int `json:"status_code"`
}
+14
View File
@@ -0,0 +1,14 @@
package rewardschema
type ListData struct {
ItemCount int `json:"item_count"`
Limit int `json:"limit"`
Order int `json:"order"`
Items []any `json:"items"`
}
type ListResp struct {
ResponseData ListData `json:"response_data"`
ReleaseInfo []any `json:"release_info"`
StatusCode int `json:"status_code"`
}
+7
View File
@@ -0,0 +1,7 @@
package rewardschema
type SellUnitResp struct {
ResponseData any `json:"response_data"`
ReleaseInfo []any `json:"release_info"`
StatusCode int `json:"status_code"`
}