handler

package
v2.3.85 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
	sseService sse.SSE,
) *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