form

package
v0.0.0-...-ced2ee9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParam

func GetParam(c *gin.Context, key string) (string, error)

获取参数

func GetParamInt64

func GetParamInt64(c *gin.Context, key string) (int64, error)

获取参数

func NewForm

func NewForm(c *gin.Context, obj interface{}) (interface{}, error)

func ParsePaginator

func ParsePaginator(c *gin.Context) *utils.Paginator

分页器

Types

type ReviewForm

type ReviewForm struct {
	DBHost     string `json:"db_host" form:"db_host"`
	DBPort     int    `json:"db_port" form:"db_port"`
	DBUsername string `json:"db_username" form:"db_username"`
	DBPassword string `json:"db_password" form:"db_password"`
	Database   string `json:"database" form:"database"`

	*config.RuleConfig
}

func NewReviewForm

func NewReviewForm(rc *config.RuleConfig) *ReviewForm

func (*ReviewForm) CheckDBInfo

func (this *ReviewForm) CheckDBInfo()

type UtilDecryptForm

type UtilDecryptForm struct {
	Data string `json:"data" form:"data" binding:"required"`
}

type UtilEncreptForm

type UtilEncreptForm struct {
	Data string `json:"data" form:"data" binding:"required"`
}

type UtilUseDBSampleForm

type UtilUseDBSampleForm struct {
	Id int64 `json:"id" form:"id" binding:"required"`
}

Jump to

Keyboard shortcuts

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