Refresh Token Support and package refactor based on best practice docs #18
@ -3,7 +3,7 @@ package domain
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type UserEntity struct {
|
type UserEntity struct {
|
||||||
Id int
|
Id int64
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
LastUpdated time.Time
|
LastUpdated time.Time
|
||||||
Name string
|
Name string
|
||||||
@ -12,7 +12,7 @@ type UserEntity struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RefreshTokenEntity struct {
|
type RefreshTokenEntity struct {
|
||||||
Id int
|
Id int64
|
||||||
Username string
|
Username string
|
||||||
Token string
|
Token string
|
||||||
ExpiresAt time.Time
|
ExpiresAt time.Time
|
||||||
@ -21,7 +21,7 @@ type RefreshTokenEntity struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RecipeEntity struct {
|
type RecipeEntity struct {
|
||||||
Id int32
|
Id int64
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
LastUpdated time.Time
|
LastUpdated time.Time
|
||||||
Title string
|
Title string
|
||||||
|
@ -133,7 +133,7 @@ func (ur UserRepository) processRows(rows *sql.Rows) []domain.UserEntity {
|
|||||||
items := []domain.UserEntity{}
|
items := []domain.UserEntity{}
|
||||||
|
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
var id int
|
var id int64
|
||||||
var name string
|
var name string
|
||||||
var hash string
|
var hash string
|
||||||
var createdAt time.Time
|
var createdAt time.Time
|
||||||
|
Loading…
Reference in New Issue
Block a user