middleware

package
v0.0.0-...-5859b4f Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

*

  • Created by IDEA.
  • User: godsoul

解析request到结构体

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRequest

func ParseRequest() gin.HandlerFunc

Types

type Req

type Req struct {
	Accept string
	Ver    string
	Area   string
	OS     int
	UID    int
	Token  string

	ReqBody
}

type ReqBody

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

func (*ReqBody) DefaultInt

func (req *ReqBody) DefaultInt(key string, def int) int

func (*ReqBody) DefaultString

func (req *ReqBody) DefaultString(key string, def string) string

func (*ReqBody) GetBody

func (req *ReqBody) GetBody() string

func (*ReqBody) Int

func (req *ReqBody) Int(key string) int

func (*ReqBody) Int64

func (req *ReqBody) Int64(key string) int64

func (*ReqBody) String

func (req *ReqBody) String(key string) string

Jump to

Keyboard shortcuts

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