user

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Login(w http.ResponseWriter, r *http.Request)
	UpdateProfile(w http.ResponseWriter, r *http.Request)
	UpdateProfileAvatar(w http.ResponseWriter, r *http.Request)
	GetProfile(w http.ResponseWriter, r *http.Request)
	GetProfileAvatar(w http.ResponseWriter, r *http.Request)
	Signup(w http.ResponseWriter, r *http.Request)
	Logout(w http.ResponseWriter, r *http.Request)
}

type Repository

type Repository interface {
	AddProfile(user *models.ProfileUser) (uint64, error)
	UpdateProfile(userId uint64, user *models.UpdateUser) error
	SelectProfileById(userId uint64) (*models.ProfileUser, error)
	UpdateAvatar(userId uint64, avatarUrl string) error
}

type UseCase

type UseCase interface {
	Authorize(authUser *models.LoginUser) (uint64, error)
	UpdateProfile(userId uint64, updateUser *models.UpdateUser) error
	SetAvatar(userId uint64, file *multipart.File, header *multipart.FileHeader) (string, error)
	GetAvatar(userId uint64) (string, error)
	GetUserById(userId uint64) (*models.ProfileUser, error)
	AddUser(user *models.SignupUser) (uint64, error)
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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