瀏覽代碼

session interface

Paul 6 年之前
父節點
當前提交
322d346fad
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      middleware/auth/session.go

+ 1
- 3
middleware/auth/session.go 查看文件

@@ -1,10 +1,8 @@
1 1
 package auth
2 2
 
3
-import "time"
4
-
5 3
 type Session interface {
6 4
 	// StoreJwtToken store jwt token is redis, make it expired for feature
7
-	StoreJwtToken(key string, value string, timeout time.Duration) error
5
+	StoreJwtToken(key string, value string, timeout int64) error
8 6
 
9 7
 	// IsExistsJwtToken judge whether token is invalid
10 8
 	IsExistsJwtToken(key string) bool