[fix] User.ID() int -> int64

This commit is contained in:
what 2023-12-05 16:01:42 +08:00
parent 1f119cf945
commit 104d5e82a9
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import (
) )
type user struct { type user struct {
id int id int64
uuid string uuid string
username string username string
nickname string nickname string
@ -17,7 +17,7 @@ type user struct {
roles []string roles []string
} }
func (this user) ID() int { func (this user) ID() int64 {
return this.id return this.id
} }

View File

@ -2,7 +2,7 @@ package contracts
type User interface { type User interface {
// 用户ID // 用户ID
ID() int ID() int64
// 用户UUID // 用户UUID
Uuid() string Uuid() string
// 用户名称 // 用户名称