Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouter ¶
func RegisterRouter(g *gin.RouterGroup)
Types ¶
type Handler ¶
type Handler struct { }
func (*Handler) Create ¶
func (*Handler) Create() gin.HandlerFunc
func (*Handler) Destroy ¶
func (*Handler) Destroy() gin.HandlerFunc
func (*Handler) List ¶
func (*Handler) List() gin.HandlerFunc
func (*Handler) ViewCurrent ¶
func (*Handler) ViewCurrent() gin.HandlerFunc
type RSession ¶
type RSession struct { SessionID string `json:"session_id"` UserID uint `json:"user_id"` Username string `json:"username"` IsAdmin bool `json:"is_admin,omitempty"` ExpireAt time.Time `json:"expire_at"` }
func BindSession ¶
type RespCreate ¶
type RespCreate struct { Response Session *RSession `json:"session,omitempty"` }
type RespViewCurrent ¶
type RespViewCurrent struct { Response Session *RSession `json:"session,omitempty"` }
Click to show internal directories.
Click to hide internal directories.