From 104d5e82a9c67a20a3f3ecd659cdb6467bc05d63 Mon Sep 17 00:00:00 2001 From: what Date: Tue, 5 Dec 2023 16:01:42 +0800 Subject: [PATCH] [fix] User.ID() int -> int64 --- base/user.go | 4 ++-- user.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/user.go b/base/user.go index db7e888..6409f77 100644 --- a/base/user.go +++ b/base/user.go @@ -9,7 +9,7 @@ import ( ) type user struct { - id int + id int64 uuid string username string nickname string @@ -17,7 +17,7 @@ type user struct { roles []string } -func (this user) ID() int { +func (this user) ID() int64 { return this.id } diff --git a/user.go b/user.go index 550ef49..6d3f3e0 100644 --- a/user.go +++ b/user.go @@ -2,7 +2,7 @@ package contracts type User interface { // 用户ID - ID() int + ID() int64 // 用户UUID Uuid() string // 用户名称