models: skip JSON for fields skipped by XORM

Reduce output JSON size by backup command
This commit is contained in:
Unknwon
2018-06-09 16:06:47 +08:00
parent 078549518d
commit 53c8e4263b
19 changed files with 90 additions and 90 deletions

View File

@@ -135,12 +135,12 @@ type LoginSource struct {
IsActived bool `xorm:"NOT NULL DEFAULT false"`
Cfg core.Conversion `xorm:"TEXT"`
Created time.Time `xorm:"-"`
Created time.Time `xorm:"-" json:"-"`
CreatedUnix int64
Updated time.Time `xorm:"-"`
Updated time.Time `xorm:"-" json:"-"`
UpdatedUnix int64
LocalFile *AuthSourceFile `xorm:"-"`
LocalFile *AuthSourceFile `xorm:"-" json:"-"`
}
func (s *LoginSource) BeforeInsert() {