Documentation ¶
Index ¶
- Variables
- type AuthController
- type ProfileController
- func (c *ProfileController) CreateProfile(ctx *gin.Context)
- func (c *ProfileController) DeleteProfile(ctx *gin.Context)
- func (c *ProfileController) GetMyProfile(ctx *gin.Context)
- func (c *ProfileController) GetProfileById(ctx *gin.Context)
- func (c *ProfileController) RemoveImage(ctx *gin.Context)
- func (c *ProfileController) UpdateProfile(ctx *gin.Context)
- func (c *ProfileController) UploadImage(ctx *gin.Context)
- type RecommendController
- func (c *RecommendController) Answer(ctx *gin.Context)
- func (c *RecommendController) GetQuestions(ctx *gin.Context)
- func (c *RecommendController) GetRecommendations(ctx *gin.Context)
- func (c *RecommendController) GetUserAnswers(ctx *gin.Context)
- func (c *RecommendController) GetUserMatches(ctx *gin.Context)
- func (c *RecommendController) Pass(ctx *gin.Context)
- func (c *RecommendController) Smash(ctx *gin.Context)
- type UserController
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewUserController), fx.Provide(NewAuthController), fx.Provide(NewProfileController), fx.Provide(NewRecommendController), )
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
Click to show internal directories.
Click to hide internal directories.