Init V4 community edition (#2265)

* Init V4 community edition

* Init V4 community edition
This commit is contained in:
AaronLiu
2025-04-20 17:31:25 +08:00
committed by GitHub
parent da4e44b77a
commit 21d158db07
597 changed files with 119415 additions and 41692 deletions

View File

@@ -19,13 +19,13 @@ func SetSession(c *gin.Context, list map[string]interface{}) {
}
// GetSession 获取session
func GetSession(c *gin.Context, key string) interface{} {
func GetSession(c *gin.Context, key any) interface{} {
s := sessions.Default(c)
return s.Get(key)
}
// DeleteSession 删除session
func DeleteSession(c *gin.Context, key string) {
func DeleteSession(c *gin.Context, key any) {
s := sessions.Default(c)
s.Delete(key)
s.Save()