Refresh Token Support and package refactor based on best practice docs #18

Merged
jtom38 merged 15 commits from features/restructure-go-recommendations into main 2024-04-21 10:30:52 -07:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 5b2ff607b9 - Show all commits

View File

@ -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,8 +12,8 @@ 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
CreatedAt time.Time CreatedAt 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

View File

@ -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