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)
Click to show internal directories.
Click to hide internal directories.