gin_mock_test

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BOUNDARY                 = "; boundary="
	UploadContentDisposition = "Content-Disposition: "
	UploadNAME               = "name=\""
	UploadFILENAME           = "filename=\""
	ContentType              = "Content-Type: "
	ContentLength            = "Content-Length: "
)

Variables

This section is empty.

Functions

func Router

func Router(g *gin.Engine, basePath string)

Types

type Biz

type Biz struct {
	Info   string `json:"info,omitempty" example:"input info here" default:"info"`
	Id     string `json:"id,omitempty"  example:"id123zqqeeadg24qasd" default:"id123zqqeeadg24qasd"`
	Offset int    `json:"offset,omitempty" example:"0" default:"0"`
	Limit  int    `json:"limit,omitempty" example:"10" default:"10"`
}

type FileHeader

type FileHeader struct {
	ContentDisposition string
	Name               string
	FileName           string
	ContentType        string
	ContentLength      int64
}

type FileRequest

type FileRequest struct {
	FileName   string `json:"file_name" form:"file_name" binding:"required"`
	UploadName string `json:"upload_name" form:"upload_name" binding:"required"`
}

Jump to

Keyboard shortcuts

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