v0

package
v0.0.0-...-5952180 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthLoginReq

type AuthLoginReq struct {
	Username string `json:"username" form:"username" binding:"required,max=64"`
	Pwd      string `json:"pwd" form:"pwd" binding:"required,max=64"`
}

AuthLoginReq 登陆

type AuthLoginRes

type AuthLoginRes struct {
	Token    string `json:"token"`
	Id       int    `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
	UserType int    `json:"userType"`
}

type AuthRegisterReq

type AuthRegisterReq struct {
	Username string `json:"username" form:"username" binding:"required,max=64"`
	Email    string `json:"email" form:"email" binding:"required,max=64"`
	Pwd      string `json:"pwd" form:"pwd" binding:"required,max=64"`
}

AuthRegisterReq 注册

type AuthRegisterRes

type AuthRegisterRes struct {
	Token    string `json:"token"`
	Id       int    `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
	UserType int    `json:"userType"`
}

Jump to

Keyboard shortcuts

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