From 46fc1026082e72e694c938787297685cd41c40ed Mon Sep 17 00:00:00 2001 From: zyj <18107291228@163.com> Date: Fri, 12 Sep 2025 18:24:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/user.go | 2 +- models/user_token.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/user.go b/models/user.go index 78f9019..859153c 100644 --- a/models/user.go +++ b/models/user.go @@ -3,7 +3,7 @@ package models import "time" type User struct { - ID int8 `gorm:"id;primary_key"` + ID int64 `gorm:"id;primary_key"` Nickname string `gorm:"nickname"` Username string `gorm:"username"` Password string `gorm:"password"` diff --git a/models/user_token.go b/models/user_token.go index ef32b77..520368e 100644 --- a/models/user_token.go +++ b/models/user_token.go @@ -3,8 +3,8 @@ package models import "time" type UserToken struct { - ID int8 `gorm:"id;primary_key"` - UserId int8 `gorm:"UserId"` + ID int64 `gorm:"id;primary_key"` + UserId int64 `gorm:"UserId"` Token string `gorm:"token"` ExpirationTime time.Time `gorm:"expiration_time"` CreatedAt time.Time `gorm:"created_at;type:timestamptz"`