This commit is contained in:
2024-10-15 17:19:23 +08:00
parent 8f903b457f
commit c76451788c
42 changed files with 1600 additions and 237 deletions

View File

@@ -258,17 +258,44 @@ type (
AliTopUpResponse {
payUrl string `json:"payUrl"`
}
GetTopUpListReq {
Page int64 `form:"page"`
PageSize int64 `form:"pageSize"`
}
GetTopUpListResp {
Total int64 `json:"total"`
List []TopUpItem `json:"list"`
}
TopUpItem {
Id int64 `json:"id"` // 主键ID
UserId int64 `json:"user_id"` // 用户ID
TransactionId string `json:"transaction_id"` // 交易ID
OutTradeNo string `json:"out_trade_no"` // 外部订单号
Amount float64 `json:"amount"` // 充值金额
PaymentMethod int64 `json:"payment_method"` // 支付方式
CreatedAt string `json:"created_at"` // 创建时间
UpdatedAt string `json:"updated_at"` // 更新时间
}
)
@server (
group: topup
prefix: /api/console/topupfmghnjx
prefix: /api/console/topup
middleware: AuthInterceptor,EntAuthInterceptor
)
service gateway-api {
@handler aliTopUp
post /aliTopUp (AliTopUpRequest) returns (AliTopUpResponse)
@handler topList
get /topUpList (GetTopUpListReq) returns (GetTopUpListResp)
}
@server (
group: topup
prefix: /api/console/topup
)
service gateway-api {
@handler aliTopUpCallback
post /aliTopUpCallback
}