From f45716d941eb11cd42d08a9ee4de063341086bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Thu, 11 Aug 2022 15:28:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(model):=E8=B0=83=E6=95=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=93=E6=9E=84=E4=B8=AD=E7=9A=84=E5=BE=AE=E5=B0=8F?= =?UTF-8?q?=E6=95=B4=E5=9E=8B=E7=B1=BB=E5=9E=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/report.go | 2 +- model/user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/report.go b/model/report.go index 3a47c13..192dd99 100644 --- a/model/report.go +++ b/model/report.go @@ -10,7 +10,7 @@ type Report struct { Period time.Time `xorm:"date not null" json:"period"` Published bool `xorm:"bool not null default false" json:"published"` PublishedAt *time.Time `xorm:"timestampz" json:"publishedAt"` - Withdraw byte `xorm:"smallint not null default 0" json:"withdraw"` + Withdraw int8 `xorm:"smallint not null default 0" json:"withdraw"` LastWithdrawAppliedAt *time.Time `xorm:"timestampz" json:"lastWithdrawAppliedAt"` LastWithdrawAuditAt *time.Time `xorm:"timestampz" json:"lastWithdrawAuditAt"` } diff --git a/model/user.go b/model/user.go index 4328ce7..6436146 100644 --- a/model/user.go +++ b/model/user.go @@ -6,7 +6,7 @@ type User struct { Username string `xorm:"varchar(30) not null" json:"username"` Password string `xorm:"varchar(120) not null" json:"-"` ResetNeeded bool `xorm:"bool not null" json:"resetNeeded"` - Type byte `xorm:"smallint not null" json:"type"` + Type int8 `xorm:"smallint not null" json:"type"` Enabled bool `xorm:"bool not null" json:"enabled"` }