controller

package
v0.0.0-...-b820d78 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController interface {
	Login(ctx *gin.Context)
	Register(ctx *gin.Context)
}

func NewAuthController

func NewAuthController(authServ service.AuthService, jwtServ service.JWTService) AuthController

type EventController

type EventController interface {
	Create(ctx *gin.Context)
	GetEvent(ctx *gin.Context)
	AllEvent(ctx *gin.Context)
}

func NewEventController

func NewEventController(evServ service.EventService, jwtServ service.JWTService) EventController

type PaymentController

type PaymentController interface {
	InfoPayment(ctx *gin.Context)
	Pay(ctx *gin.Context)
	Cancel(ctx *gin.Context)
}

func NewPaymentController

func NewPaymentController(trxServ service.TransactionService, jwtServ service.JWTService) PaymentController

type TransactionController

type TransactionController interface {
	Create(ctx *gin.Context)
	Update(ctx *gin.Context)
}

func NewTransactionController

func NewTransactionController(trxServ service.TransactionService, userServ service.UserService, jwtServ service.JWTService) TransactionController

type TransactionPost

type TransactionPost struct {
	ParticipantId string `json:"participant_id"`
	CreatorId     string `json:"creator_id"`
	EventId       string `json:"event_id"`
	Amount        string `json:"amount"`
	StatusPayment string `json:"status_payment"`
}

type UserController

type UserController interface {
	All(context *gin.Context)
	Update(context *gin.Context)
	Profile(context *gin.Context)
}

func NewUserController

func NewUserController(userServ service.UserService, jwtServ service.JWTService) UserController

Jump to

Keyboard shortcuts

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