func GetRootUserEmail() (email string) { DB.Model(&User{}).Where("role = ?", common.RoleRootUser).Select("email").Find(&email) return email }
()
| 729 | //} |
| 730 | |
| 731 | func GetRootUser() (user *User) { |
| 732 | DB.Where("role = ?", common.RoleRootUser).First(&user) |
| 733 | return user |
| 734 | } |
| 735 | |
| 736 | func UpdateUserUsedQuotaAndRequestCount(id int, quota int) { |
| 737 | if common.BatchUpdateEnabled { |