fix: add isReadOnly for syncer (#2015)

* feat: add read only mod for syncer

* feat: change readOnlyEnable to isReadOnly
This commit is contained in:
XDTD
2023-06-24 17:49:06 +08:00
committed by Yang Luo
parent 1780620ef4
commit 68f032b54d
15 changed files with 49 additions and 11 deletions

View File

@ -50,6 +50,7 @@ type Syncer struct {
AvatarBaseUrl string `xorm:"varchar(100)" json:"avatarBaseUrl"`
ErrorText string `xorm:"mediumtext" json:"errorText"`
SyncInterval int `json:"syncInterval"`
IsReadOnly bool `json:"isReadOnly"`
IsEnabled bool `json:"isEnabled"`
Adapter *Adapter `xorm:"-" json:"-"`