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: 8 Imported by: 0

Documentation

Overview

Package api @Author: Ciusyan 2023/1/24

@Author: Ciusyan 2023/1/24

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) GetUserInfo

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

func (*Handler) Init

func (h *Handler) Init() error

Init 初始化Handler对象

func (*Handler) Login

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

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) Register

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

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