frontendapi

package
v0.0.0-...-bfae352 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MenuNotFound        = "menu not found"
	SliderNotFound      = "slider not found"
	SomethingsWentWrong = "something went wrong"
)
View Source
const UploadDir = "./uploads"

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func (*API) GetBlogsSlugHandler

func (a *API) GetBlogsSlugHandler(params frontend.GetFrontendBlogSlugParams, _ *models.Principal) middleware.Responder

func (*API) GetContactsHandler

func (a *API) GetContactsHandler(params frontend.GetFrontendContactParams, _ *models.Principal) middleware.Responder

func (*API) GetFileHandler

func (a *API) GetFileHandler(params frontend.GetFrontendFilesFileParams) middleware.Responder

func (*API) GetMenuHandler

func (a *API) GetMenuHandler(params frontend.GetFrontendMenuParams, _ *models.Principal) middleware.Responder

func (*API) GetPagesHandler

func (*API) GetSliderHandler

func (a *API) GetSliderHandler(params frontend.GetFrontendSliderParams, _ *models.Principal) middleware.Responder

func (*API) GetUsersHandler

func (a *API) GetUsersHandler(params frontend.GetFrontendUsersParams, _ *models.Principal) middleware.Responder

func (*API) PostContactsHandler

func (a *API) PostContactsHandler(params frontend.PostFrontendContactFormParams) middleware.Responder

func (*API) XTokenAuth

func (a *API) XTokenAuth(token string) (*models.Principal, error)

type FrontendAPI

type FrontendAPI interface {
	GetMenuHandler(params frontend.GetFrontendMenuParams, _ *models.Principal) middleware.Responder
	GetSliderHandler(params frontend.GetFrontendSliderParams, _ *models.Principal) middleware.Responder
	GetFileHandler(params frontend.GetFrontendFilesFileParams) middleware.Responder
	GetCategoriesHandler(_ frontend.GetFrontendCategoriesParams, _ *models.Principal) middleware.Responder
	GetContractsHandler(_ frontend.GetFrontendContractsParams, _ *models.Principal) middleware.Responder
	GetUsersHandler(params frontend.GetFrontendUsersParams, _ *models.Principal) middleware.Responder
	GetPagesHandler(params frontend.GetFrontendPageSlugParams, principal *models.Principal) middleware.Responder
	GetContactsHandler(params frontend.GetFrontendContactParams, principal *models.Principal) middleware.Responder
	PostContactsHandler(params frontend.PostFrontendContactFormParams) middleware.Responder
	GetFaqHandler(params frontend.GetFrontendFaqParams, principal *models.Principal) middleware.Responder
	GetHelpCenterHandler(params frontend.GetFrontendHelpCenterParams, principal *models.Principal) middleware.Responder
	GetBlogsHandler(params frontend.GetFrontendBlogParams, principal *models.Principal) middleware.Responder
	GetBlogsSlugHandler(params frontend.GetFrontendBlogSlugParams, principal *models.Principal) middleware.Responder
	GetWalletConnectHandler(params frontend.GetFrontendWalletConnectParams, principal *models.Principal) middleware.Responder
	GetCreateAndSellHandler(params frontend.GetFrontendCreateAndSellParams, principal *models.Principal) middleware.Responder
	XTokenAuth(token string) (*models.Principal, error)
}

func NewFrontendAPI

func NewFrontendAPI(s *plutonium.Server) FrontendAPI

Jump to

Keyboard shortcuts

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