types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginReq

type LoginReq struct {
	Name     string `json:"name" binding:"required"` //用户名
	Password string `json:"password"`
}

@group user @handler login @router /login [post]

type LoginResp

type LoginResp struct {
	User string `json:"user"`
}

@group user @handler login @router /login [post]

type RegisterReq

type RegisterReq struct {
	Name     string `form:"name" binding:"required"` //用户名
	Password string `form:"password"`
}

@group user @auth false @handler register @router /register [get]

type RegisterResp

type RegisterResp struct {
	User string `json:"user"`
}

@group user @auth false @handler register @router /register [get]

Jump to

Keyboard shortcuts

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