mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat(site): sync operation
This commit is contained in:
parent
6c137e5229
commit
22e37e4b61
43 changed files with 4875 additions and 3712 deletions
|
@ -50,9 +50,9 @@ type Cert struct {
|
|||
}
|
||||
|
||||
func FirstCert(confName string) (c Cert, err error) {
|
||||
err = db.First(&c, &Cert{
|
||||
err = db.Limit(1).Where(&Cert{
|
||||
Filename: confName,
|
||||
}).Error
|
||||
}).Find(&c).Error
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@ package model
|
|||
|
||||
type SiteCategory struct {
|
||||
Model
|
||||
Name string `json:"name"`
|
||||
SyncNodeIds []int `json:"sync_node_ids" gorm:"serializer:json"`
|
||||
Name string `json:"name"`
|
||||
SyncNodeIds []uint64 `json:"sync_node_ids" gorm:"serializer:json"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue