- 添加骆驼加油API端点设计及系统架构文档 - 新增定时任务模块详细说明及任务流程图 - 完成订单管理服务功能及架构介绍 - 增加账号管理模块设计与状态机说明 - 集成Pig接码平台文档,介绍验证码检测流程 - 详细列出各组件的依赖关系及性能优化措施 - 提供故障排除指南及系统扩展性总结
41 lines
1.4 KiB
Go
41 lines
1.4 KiB
Go
package apple
|
||
|
||
type RedeemReq struct {
|
||
Account string `json:"account" description:"苹果账户邮箱地址"`
|
||
Password string `json:"password" description:"苹果账户密码"`
|
||
OrderId string `json:"order_id" description:"订单ID,用于追踪操作"`
|
||
RedemptionCode string `json:"redemption_code" description:"待兑换的卡密代码"`
|
||
}
|
||
|
||
type RedeemResp struct {
|
||
BalanceBefore float64 `json:"balance_before" description:"兑换前账户余额"`
|
||
BalanceAfter float64 `json:"balance_after" description:"兑换后账户余额"`
|
||
Amount float64 `json:"amount" description:"本次兑换金额"`
|
||
OrderId string `json:"order_id" description:"订单ID"`
|
||
}
|
||
|
||
type QueryBalanceReq struct {
|
||
Account string `json:"account" description:"苹果账户邮箱地址"`
|
||
Password string `json:"password" description:"苹果账户密码"`
|
||
OrderId string `json:"order_id" description:"ID"`
|
||
}
|
||
|
||
type QueryBalanceResp struct {
|
||
Status int `json:"status" description:"查询状态:0成功,其他"`
|
||
Balance string `json:"balance" description:"当前账户余额"`
|
||
OrderId string `json:"order_id" description:"订单ID"`
|
||
}
|
||
|
||
type HeartBeatReq = QueryBalanceReq
|
||
|
||
type HeartBeatResp struct {
|
||
Status int `json:"status" description:"查询状态:0成功,其他"`
|
||
}
|
||
|
||
type Resp[T any] struct {
|
||
Data *T `json:"data,omitempty"`
|
||
Code Code `json:"code"`
|
||
Message string `json:"message"`
|
||
TraceId string `json:"trace_id"`
|
||
}
|