ctx

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Use

Types

type CtxInterface

type CtxInterface interface {
	Do()                                 // 业务逻辑
	ReturnJson(code int, data *replyx.T) // 返回 json
	Error(err error)                     // 错误处理
}

type Flow

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

实现了 CtxInterface 接口的结构体

func (*Flow) Do

func (f *Flow) Do()

func (*Flow) Error

func (f *Flow) Error(err error)

func (*Flow) ReturnJson

func (f *Flow) ReturnJson(code int, data *replyx.T)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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