web

package
v0.0.0-...-99221f3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 12 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 {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type ObservabilityHandler

type ObservabilityHandler struct {
}

ObservabilityHandler 用于演示可观测性的 Handler

func NewObservabilityHandler

func NewObservabilityHandler() *ObservabilityHandler

func (*ObservabilityHandler) Random

func (o *ObservabilityHandler) Random(ctx *gin.Context)

func (*ObservabilityHandler) RegisterRoutes

func (o *ObservabilityHandler) RegisterRoutes(s *gin.Engine)

type Page

type Page struct {
	Offset int `json:"offset"`
	Limit  int `json:"limit"`
}

type Result

type Result = ginx.Result

type SignUpReq

type SignUpReq struct {
	Email           string `json:"email"`
	Password        string `json:"password"`
	ConfirmPassword string `json:"confirmPassword"`
}

type UserHandler

type UserHandler struct {
	jwt3.Handler
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(svc userv1.UserServiceClient, jwthdl jwt3.Handler) *UserHandler

func (*UserHandler) Edit

func (c *UserHandler) Edit(ctx *gin.Context)

Edit 用户编译信息

func (*UserHandler) Login

func (c *UserHandler) Login(ctx *gin.Context)

Login 用户登录接口

func (*UserHandler) LoginJWT

func (c *UserHandler) LoginJWT(ctx *gin.Context, req LoginReq) (ginx.Result, error)

LoginJWT 用户登录接口,使用的是 JWT,如果你想要测试 JWT,就启用这个

func (*UserHandler) Logout

func (c *UserHandler) Logout(ctx *gin.Context)

func (*UserHandler) Profile

func (c *UserHandler) Profile(ctx *gin.Context)

Profile 用户详情

func (*UserHandler) ProfileJWT

func (c *UserHandler) ProfileJWT(ctx *gin.Context)

ProfileJWT 用户详情, JWT 版本

func (*UserHandler) RefreshToken

func (c *UserHandler) RefreshToken(ctx *gin.Context)

func (*UserHandler) RegisterRoutes

func (c *UserHandler) RegisterRoutes(server *gin.Engine)

func (*UserHandler) SignUp

func (c *UserHandler) SignUp(ctx *gin.Context, req SignUpReq) (ginx.Result, error)

SignUp 用户注册接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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