MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetUserUsedQuota

Function GetUserUsedQuota

model/user.go:596–599  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

594}
595
596func GetUserUsedQuota(id int) (quota int, err error) {
597 err = DB.Model(&User{}).Where("id = ?", id).Select("used_quota").Find(&quota).Error
598 return quota, err
599}
600
601func GetUserEmail(id int) (email string, err error) {
602 err = DB.Model(&User{}).Where("id = ?", id).Select("email").Find(&email).Error

Callers 2

GetSubscriptionFunction · 0.92
GetUsageFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected