controllers

package
v0.0.0-...-474b416 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: 0BSD Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module exported for initializing application

Functions

This section is empty.

Types

type AuthController

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

AuthController struct

func NewAuthController

func NewAuthController(
	logger *core.Logger,
	service services.IAuthService,
	userService services.IUserService,
	validator *core.Validator,
	env *core.Env,
) *AuthController

NewAuthController creates new controller

func (*AuthController) Refresh

func (c *AuthController) Refresh(ctx *gin.Context)

Refresh renew session

func (*AuthController) Register

func (c *AuthController) Register(ctx *gin.Context)

Register registers user

func (*AuthController) SendVerificationEmail

func (c *AuthController) SendVerificationEmail(ctx *gin.Context)

SendVerificationEmail send user verification email

func (*AuthController) SignIn

func (c *AuthController) SignIn(ctx *gin.Context)

SignIn signs in user

func (*AuthController) VerifyEmail

func (c *AuthController) VerifyEmail(ctx *gin.Context)

VerifyEmail verify user email

type ProfileController

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

func NewProfileController

func NewProfileController(
	service services.IProfileService,
	recommendService services.IRecommendService,
	ik *core.ImageKit,
	logger *core.Logger,
) *ProfileController

func (*ProfileController) CreateProfile

func (c *ProfileController) CreateProfile(ctx *gin.Context)

func (*ProfileController) DeleteProfile

func (c *ProfileController) DeleteProfile(ctx *gin.Context)

func (*ProfileController) GetMyProfile

func (c *ProfileController) GetMyProfile(ctx *gin.Context)

func (*ProfileController) GetProfileById

func (c *ProfileController) GetProfileById(ctx *gin.Context)

func (*ProfileController) RemoveImage

func (c *ProfileController) RemoveImage(ctx *gin.Context)

func (*ProfileController) UpdateProfile

func (c *ProfileController) UpdateProfile(ctx *gin.Context)

func (*ProfileController) UploadImage

func (c *ProfileController) UploadImage(ctx *gin.Context)

type RecommendController

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

RecommendController data type

func NewRecommendController

func NewRecommendController(recommendService services.IRecommendService, logger *core.Logger) *RecommendController

NewRecommendController creates new match controller

func (*RecommendController) Answer

func (c *RecommendController) Answer(ctx *gin.Context)

func (*RecommendController) GetQuestions

func (c *RecommendController) GetQuestions(ctx *gin.Context)

func (*RecommendController) GetRecommendations

func (c *RecommendController) GetRecommendations(ctx *gin.Context)

func (*RecommendController) GetUserAnswers

func (c *RecommendController) GetUserAnswers(ctx *gin.Context)

func (*RecommendController) GetUserMatches

func (c *RecommendController) GetUserMatches(ctx *gin.Context)

func (*RecommendController) Pass

func (c *RecommendController) Pass(ctx *gin.Context)

func (*RecommendController) Smash

func (c *RecommendController) Smash(ctx *gin.Context)

type UserController

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

UserController data type

func NewUserController

func NewUserController(userService services.IUserService, logger *core.Logger) *UserController

NewUserController creates new user controller

func (*UserController) GetByID

func (u *UserController) GetByID(c *gin.Context)

GetByID gets one user

Jump to

Keyboard shortcuts

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