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

@@ -30,7 +30,7 @@ type Notice struct {
ID int64
Type NoticeType
Description string `xorm:"TEXT"`
Created time.Time `xorm:"-"`
Created time.Time `xorm:"-" json:"-"`
CreatedUnix int64
}