Documentation ¶
Index ¶
Constants ¶
View Source
const (
SessionBaseKey = "session#"
)
Variables ¶
This section is empty.
Functions ¶
func InitRoutes ¶
func InitRoutes()
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func (*AuthHandler) ActivateUserHandler ¶
func (h *AuthHandler) ActivateUserHandler(c *gin.Context)
func (*AuthHandler) LoginHandler ¶
func (h *AuthHandler) LoginHandler(c *gin.Context)
func (*AuthHandler) RefreshHandler ¶
func (h *AuthHandler) RefreshHandler(c *gin.Context)
func (*AuthHandler) RegisterHandler ¶
func (h *AuthHandler) RegisterHandler(c *gin.Context)
Register godoc @Summary 用户注册 @Description 注册,成为系统用户 @Tags Auth @Accept json @Produce json
type OtherHandler ¶
type OtherHandler struct { }
func (*OtherHandler) CheckHealthHandler ¶
func (h *OtherHandler) CheckHealthHandler(c *gin.Context)
CheckHealthHandler 健康检查,成功返回 "Success"
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
func (*UserHandler) GetProfile ¶
func (h *UserHandler) GetProfile(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.