handler

package
v0.0.0-...-e006840 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandlerUserSet = wire.NewSet(wire.Struct(new(HandlerUser), "*"))

Functions

This section is empty.

Types

type HandlerUser

type HandlerUser struct {
	Model    *model.ModelUser
	Logger   *logrus.Entry
	RocketMQ config.IRocketMQ
	Tx       *ext.Trans
	Redis    *redis.Client
	Pool     *ws.WsPool
}

func (*HandlerUser) Close

func (h *HandlerUser) Close(conn *websocket.Conn)

Close 错误处理统一在wrap中关闭连接

func (*HandlerUser) DeleteLogin

func (h *HandlerUser) DeleteLogin(c *gin.Context) (any, error)

func (*HandlerUser) GetPuk

func (h *HandlerUser) GetPuk(c *gin.Context) (string, error)

func (*HandlerUser) GetUserByUserID

func (h *HandlerUser) GetUserByUserID(c *gin.Context) (*schema.UserRes, error)

func (*HandlerUser) PostLogin

func (h *HandlerUser) PostLogin(c *gin.Context) (*schema.TokenRes, error)

Jump to

Keyboard shortcuts

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