Documentation
¶
Index ¶
- Variables
- type HandlerUser
- func (h *HandlerUser) Close(conn *websocket.Conn)
- func (h *HandlerUser) DeleteLogin(c *gin.Context) (any, error)
- func (h *HandlerUser) GetPuk(c *gin.Context) (string, error)
- func (h *HandlerUser) GetUserByUserID(c *gin.Context) (*schema.UserRes, error)
- func (h *HandlerUser) PostLogin(c *gin.Context) (*schema.TokenRes, error)
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) GetUserByUserID ¶
Click to show internal directories.
Click to hide internal directories.