repository

package
v0.0.0-...-0e42b2a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func NewUserRepo

func NewUserRepo(cfg config.Config, DB *gorm.DB) *UserRepo

func (UserRepo) DeleteTokenUser

func (repo UserRepo) DeleteTokenUser(ctx context.Context, userToken *models.UserToken) error

func (UserRepo) DestroyFile

func (repo UserRepo) DestroyFile(ctx context.Context, filename string) error

func (UserRepo) EmailForgotSender

func (repo UserRepo) EmailForgotSender(ctx context.Context, user *models.User, token *models.UserToken) error

func (UserRepo) EmailVerfiedSender

func (repo UserRepo) EmailVerfiedSender(ctx context.Context, user *models.User, token *models.UserToken) error

func (UserRepo) ForgotPassByEmailPublish

func (repo UserRepo) ForgotPassByEmailPublish(ctx context.Context, user *models.User) error

func (UserRepo) GenerateTokenUser

func (repo UserRepo) GenerateTokenUser(ctx context.Context, user *models.User) (string, error)

func (*UserRepo) GetFile

func (Repo *UserRepo) GetFile(ctx context.Context, url string) ([]byte, error)

func (UserRepo) GetTokenUser

func (repo UserRepo) GetTokenUser(ctx context.Context, userToken *models.UserToken) (*[]models.UserToken, error)

func (UserRepo) InsertTokenUser

func (repo UserRepo) InsertTokenUser(ctx context.Context, token *models.UserToken) (*models.UserToken, error)

func (UserRepo) InsertUser

func (repo UserRepo) InsertUser(ctx context.Context, user *models.User) (*models.User, error)

func (UserRepo) RetrieveFile

func (repo UserRepo) RetrieveFile(ctx context.Context, filename string) (*admin.AssetResult, error)

func (UserRepo) SelectUserDetail

func (repo UserRepo) SelectUserDetail(ctx context.Context, user *models.User) (*models.User, error)

func (UserRepo) SelectUserDetailByEmail

func (repo UserRepo) SelectUserDetailByEmail(ctx context.Context, user *models.User) (*models.User, error)

func (UserRepo) StoreFile

func (repo UserRepo) StoreFile(ctx context.Context, file multipart.File) (string, error)

func (UserRepo) UpdateUser

func (repo UserRepo) UpdateUser(ctx context.Context, ID uint, user *models.User) (*models.User, error)

func (UserRepo) VerifiedEmailPublish

func (repo UserRepo) VerifiedEmailPublish(ctx context.Context, user *models.User) error

Jump to

Keyboard shortcuts

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