Skip to content

Commit

Permalink
fix: gorm tag 两处书写错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmx233 committed Dec 20, 2023
1 parent 24ec4a9 commit 0871fc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/db/dao/App.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type App struct {
Callback string `gorm:"not null"`
PermitAllGroup bool `gorm:"index:idx_apps_permit_all_nav,priority:1"`
// 以下仅用于导航标识
LinkOff bool `gorm:"index;idx_apps_permit_all_nav,priority:2"`
Views uint64 `gorm:"idx_apps_permit_all_nav,priority:3,sort:DESC"`
LinkOff bool `gorm:"index:idx_apps_permit_all_nav,priority:2"`
Views uint64 `gorm:"index:idx_apps_permit_all_nav,priority:3,sort:DESC"`
// LoginRecord.ID 统计用,无需约束
ViewsID uint
}
Expand Down

0 comments on commit 0871fc1

Please sign in to comment.