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 // 用户名称