demo

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Demo

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

func NewDemo

func NewDemo(logger *zap.Logger, db db.Repo, cache cache.Repo) *Demo

func (*Demo) Auth

func (d *Demo) Auth() core.HandlerFunc

获取授权信息 @Summary 获取授权信息 @Description 获取授权信息 @Tags Demo @Accept json @Produce json @Success 200 {object} authResponse "返回信息" @Router /auth/get [post]

func (*Demo) Get

func (d *Demo) Get() core.HandlerFunc

func (*Demo) Post

func (d *Demo) Post() core.HandlerFunc

func (*Demo) Trace

func (d *Demo) Trace() core.HandlerFunc

Trace 示例 @Summary Trace 示例 @Description Trace 示例 @Tags Demo @Accept json @Produce json @Param Authorization header string true "签名" @Success 200 {object} traceResponse "用户信息" @Router /demo/trace [get]

Jump to

Keyboard shortcuts

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