api

package
v0.0.0-...-ad531c1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 9 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 {

	// 提供一个空结构体,用于默认实现方法
	ioc.GinDefault
	// contains filtered or unexported fields
}

Handler 通过一个实体类,把内部接口用HTTP暴露出去【控制层Controller】

func (*Handler) CommentAction

func (h *Handler) CommentAction(c *gin.Context) error

func (*Handler) GetCommentList

func (h *Handler) GetCommentList(c *gin.Context) error

func (*Handler) Init

func (h *Handler) Init() error

Init 初始化Handler对象

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) Registry

func (h *Handler) Registry(r gin.IRoutes)

Registry 用于注册Handler所需要暴露的路由

func (*Handler) RegistryWithMiddle

func (h *Handler) RegistryWithMiddle(r gin.IRoutes)

Jump to

Keyboard shortcuts

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