api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hello

type Hello struct {
	*api.API
}

func (*Hello) Router

func (h *Hello) Router(r *gin.Engine)

type Ping

type Ping struct {
	*api.API
}

func (*Ping) Router

func (p *Ping) Router(r *gin.Engine)

type SayHello

type SayHello struct {
	Name string `binding:"required" json:"name"`
}

type Test added in v0.2.1

type Test struct {
	*api.API
}

func (*Test) Router added in v0.2.1

func (t *Test) Router(r *gin.Engine)

func (*Test) Test1 added in v0.2.1

func (t *Test) Test1(c *gin.Context)

func (*Test) Test2 added in v0.2.1

func (t *Test) Test2(c *gin.Context)

type TestReq added in v0.2.1

type TestReq struct {
	F1 string `json:"f1" binding:"required,max=32"`
	F2 string `json:"f2" binding:"omitempty,url"`
	F3 int64  `json:"f3" binding:"oneof=0 1 2"`
}

type TestReqPath added in v0.2.1

type TestReqPath struct {
	Name string `json:"name" uri:"name" binding:"required,max=12"`
}

type TestResp added in v0.2.1

type TestResp struct {
	F1 string `json:"f1"`
	F2 int64  `json:"f2"`
	F3 bool   `json:"f3"`
}

type User

type User struct {
	*api.API
}

func (*User) Router

func (u *User) Router(r *gin.Engine)

Jump to

Keyboard shortcuts

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