api

package
v0.0.0-...-f5d3b75 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationController

type ApplicationController struct {
	BaseController
	// contains filtered or unexported fields
}

func (*ApplicationController) Build

func (c *ApplicationController) Build(g *gin.RouterGroup)

type BaseController

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

func (*BaseController) Error

func (bc *BaseController) Error(code int, message string)

func (*BaseController) Ok

func (bc *BaseController) Ok(data interface{}, message string)

func (*BaseController) WithContext

func (bc *BaseController) WithContext(c *gin.Context) *BaseController

type Controller

type Controller interface {
	Build(engine *gin.RouterGroup)
}

func NewApplicationController

func NewApplicationController(h *application.Handler) Controller

func NewOrganizationController

func NewOrganizationController(h *application.Handler) Controller

type ControllerGroup

type ControllerGroup struct {
	dig.In

	Controllers []Controller `group:"controller"`
}

type OrganizationController

type OrganizationController struct {
	BaseController
	// contains filtered or unexported fields
}

func (*OrganizationController) Build

func (controller *OrganizationController) Build(g *gin.RouterGroup)

Jump to

Keyboard shortcuts

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