mirror of
https://github.com/coaidev/coai.git
synced 2025-05-20 05:20:15 +09:00
13 lines
239 B
Go
13 lines
239 B
Go
package auth
|
|
|
|
import (
|
|
"chat/channel"
|
|
"database/sql"
|
|
"github.com/go-redis/redis/v8"
|
|
)
|
|
|
|
func (u *User) GetSubscriptionUsage(db *sql.DB, cache *redis.Client) channel.UsageMap {
|
|
plan := u.GetPlan(db)
|
|
return plan.GetUsage(u, db, cache)
|
|
}
|