Based on QuantumNous/new-api v1.0.0-rc.36 (shallow history squashed). - CNY quota display mode: RMB-denominated top-up and crediting across Epay/Waffo channels - New CheckinButton in both authenticated and public headers (Turnstile supported) - New /subscribe page with public plan snapshot, Alipay/balance payment, auto group upgrade/reset - New /docs 12-section beginner guide with anchor navigation - New home PromoBanner linking to /docs; i18n synced (en/zh/zh-TW/fr/ja/ru/vi) - README: document custom features, live demo https://ai.88531.cn
17 lines
359 B
Go
17 lines
359 B
Go
package model
|
|
|
|
type Setup struct {
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
Version string `json:"version" gorm:"type:varchar(50);not null"`
|
|
InitializedAt int64 `json:"initialized_at" gorm:"type:bigint;not null"`
|
|
}
|
|
|
|
func GetSetup() *Setup {
|
|
var setup Setup
|
|
err := DB.First(&setup).Error
|
|
if err != nil {
|
|
return nil
|
|
}
|
|
return &setup
|
|
}
|