handler

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler(c *gin.Context)

@Summary 用户登录 @Security ApiKeyAuth @Param Login body types.LoginReq true "请求参数" @Success 200 {object} util.Response{data=types.LoginResp} @Failure 400 {object} util.Response @Router /login [post]

func RegisterHandler

func RegisterHandler(c *gin.Context)

@Security ApiKeyAuth @Param Register query types.RegisterReq true "请求参数" @Success 200 {object} util.Response{data=types.RegisterResp} @Failure 400 {object} util.Response @Router /user/register [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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