passport

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 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 LoginRequest

type LoginRequest struct {
	UserType string `json:"user_type" binding:"required" msg:"缺少用户类型"`

	// 用户登录
	GrantType string `json:"grant_type"`
	WxCode    string `json:"wx_code"`
	Code      string `json:"code"`
	OpenId    string `json:"openid"`

	// 管理员登录
	Username string `json:"username"`
	Password string `json:"password"`
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `json:"refresh_token" binding:"required" msg:"缺少refresh_token"`
}

Jump to

Keyboard shortcuts

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