package models import ( "time" ) type TSyncLog struct { Id int64 `xorm:"not null pk autoincr comment('主键') INT(11)"` SyncType string `xorm:"not null comment('比如:获取TOKEN,获取数据,上报数据等') VARCHAR(11)"` Appid string `xorm:"not null comment('接入的应用ID') CHAR(32)"` ItemCode string `xorm:"not null comment('上报或获取的条目') VARCHAR(255)"` Parameters string `xorm:"not null comment('发生时的参数配置') VARCHAR(255)"` HappenTime time.Time `xorm:"not null default 'current_timestamp()' comment('发生时间') DATETIME"` Success int64 `xorm:"not null comment('是否成功') INT(255)"` Message string `xorm:"not null comment('相关信息') VARCHAR(255)"` }