mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-15 04:33:42 +08:00
🐛 fix: 修复余额的问题
This commit is contained in:
@@ -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
9
providers/base/type.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user