🐛 fix: 修复余额的问题

This commit is contained in:
MartialBE
2023-12-02 19:54:21 +08:00
parent 58fc40a744
commit c97c8a0f65
14 changed files with 158 additions and 37 deletions

View File

@@ -75,7 +75,7 @@ type ImageVariationsInterface interface {
// 余额接口
type BalanceInterface interface {
BalanceAction(channel *model.Channel) (float64, error)
Balance(channel *model.Channel) (float64, error)
}
type ProviderResponseHandler interface {

9
providers/base/type.go Normal file
View File

@@ -0,0 +1,9 @@
package base
type BalanceResponse struct {
Object string `json:"object"`
TotalGranted float64 `json:"total_granted"`
TotalUsed float64 `json:"total_used"`
TotalRemaining float64 `json:"total_remaining"`
TotalAvailable float64 `json:"total_available"`
}