beego

package
v0.0.0-...-710c528 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommon

func ParseCommon(common []string) map[string]*Param

解析参数信息

func ParseParam

func ParseParam(params map[string]*Param, m *generate.Method, rev string) ([]ast.Stmt, bool)

解析参数到代码,参数代码,bool表示是否存在分页参数

Types

type Param

type Param struct {
	// @Param pageSize query int false 每页条数
	Name    string //参数名称
	Tl      string //查询类型
	Tp      string //参数类型
	Request bool   //是否必要
	Desc    string //描述
}

Jump to

Keyboard shortcuts

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