mirror of https://github.com/veypi/OneAuth.git
refactor(settings): replace raw SQL conditions with GORM struct-based queries
- Replace db.Where("key = ?", ...) with db.Where(&Setting{Key: ...}) for type-safe queries
- Replace db.Order("category, key") with structured clause.OrderBy in list API
- Replace tx.Where("key = ?", ...) with tx.Where(&models.Setting{Key: ...}) in update API
- Replace db.Where("key = ?", ...) with db.Where(&Setting{Key: ...}) in InitSettings, settingCache, SetSetting
master
parent
4d35e50306
commit
e5170201ab
Loading…
Reference in New Issue