init service

This commit is contained in:
juancwu 2026-05-04 20:52:35 +00:00
commit 336bd34bd3
3 changed files with 141 additions and 0 deletions

View file

@ -6,6 +6,8 @@ import (
)
type Store interface {
// CreateUser inserts a new row into the users table.
// The method overrides the CreatedAt and UpdatedAt fields.
CreateUser(ctx context.Context, u *User) error
GetUserByID(ctx context.Context, id string) (*User, error)
GetUserByEmail(ctx context.Context, email string) (*User, error)