user

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginRequest

type LoginRequest struct {
	mux.Meta `path:"/user/login" method:"POST"`
	// 用户名
	Username string `form:"username" binding:"required"`
}

LoginRequest 登录

type LoginResponse

type LoginResponse struct {
	// 用户名
	Username string `json:"username"`
}

type LogoutRequest

type LogoutRequest struct {
	mux.Meta `path:"/user/logout" method:"GET"`
}

LogoutRequest 登出

type LogoutResponse

type LogoutResponse struct {
}

type RegisterRequest

type RegisterRequest struct {
	mux.Meta `path:"/user/register" method:"POST"`
	// 用户名
	Username string `form:"username" binding:"required"`
}

RegisterRequest 注册

type RegisterResponse

type RegisterResponse struct {
}

Jump to

Keyboard shortcuts

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