msginrouter

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParamsParseErr = errors.New("params parse error")
)

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	Data    interface{} `json:"data,omitempty"`
	Success bool        `json:"success"`
	ErrMsg  string      `json:"err_msg,omitempty"`
}

type IContext

type IContext interface {
	GetResult() interface{}
	SetUserID(uid uint)
}

type R

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

func (*R) AuthRg

func (s *R) AuthRg() *gin.RouterGroup

func (*R) Handle

func (s *R) Handle(newCtx func() IContext, run func(ctx IContext) error) gin.HandlerFunc

func (*R) InitRouter

func (s *R) InitRouter()

func (*R) Rg

func (s *R) Rg() *gin.RouterGroup

func (*R) SetAuthRg

func (s *R) SetAuthRg(authRg *gin.RouterGroup)

func (*R) SetRg

func (s *R) SetRg(rg *gin.RouterGroup)

Jump to

Keyboard shortcuts

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