repository

package
v0.0.0-...-90e0d95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessionPostgresqlRepository

func NewSessionPostgresqlRepository(db *sql.DB) user.Repository

Types

type PostgresqlRepository

type PostgresqlRepository struct {
	// contains filtered or unexported fields
}

func (*PostgresqlRepository) AddProfile

func (r *PostgresqlRepository) AddProfile(user *models.ProfileUser) (uint64, error)

Add new user profile

func (*PostgresqlRepository) SelectProfileById

func (r *PostgresqlRepository) SelectProfileById(userId uint64) (*models.ProfileUser, error)

Select one profile by id

func (*PostgresqlRepository) UpdateAvatar

func (r *PostgresqlRepository) UpdateAvatar(userId uint64, avatarUrl string) error

Update user avatar

func (*PostgresqlRepository) UpdateProfile

func (r *PostgresqlRepository) UpdateProfile(userId uint64, user *models.UpdateUser) error

Update info in user profile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL