handler

package
v2.3.26 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 19 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 struct {
	// contains filtered or unexported fields
}

func NewHandlers

func NewHandlers(authService auth.IAuth, services service.Services, trx mw.ITransaction, taskService task.Tasker, analyticService analytics.Analytics) *Handler

func (*Handler) Init

func (h *Handler) Init(debug string) *gin.Engine

type NewsHandler

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

func NewNewsHandlers

func NewNewsHandlers(
	newsService service.INewsService,
	trx mw.ITransaction,
	taskService task.Tasker,
) *NewsHandler

func (*NewsHandler) Create

func (h *NewsHandler) Create(c *gin.Context)

func (*NewsHandler) Delete

func (h *NewsHandler) Delete(c *gin.Context)

func (*NewsHandler) Export added in v2.3.1

func (h *NewsHandler) Export(c *gin.Context) ([]byte, error)

func (*NewsHandler) GetById

func (h *NewsHandler) GetById(c *gin.Context)

func (*NewsHandler) Import

func (h *NewsHandler) Import(c *gin.Context) ([]byte, error)

func (*NewsHandler) Init

func (h *NewsHandler) Init(api *gin.RouterGroup)

func (*NewsHandler) List

func (h *NewsHandler) List(c *gin.Context)

func (*NewsHandler) MassDelete added in v2.3.1

func (h *NewsHandler) MassDelete(c *gin.Context) ([]byte, error)

func (*NewsHandler) MassUpdate

func (h *NewsHandler) MassUpdate(c *gin.Context) ([]byte, error)

func (*NewsHandler) Update

func (h *NewsHandler) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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