parent
30c963a5f0
commit
61a1c93f0f
89 changed files with 15859 additions and 2 deletions
17
server/libs/walls/walls.go
Normal file
17
server/libs/walls/walls.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package walls
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Walls interface {
|
||||
PassIpLimit(remoteAddr string) bool
|
||||
PassOpLimit(resourceId string, opId int16) bool
|
||||
PassLoginCheck(tokenStr string, req *http.Request) bool
|
||||
MakeLoginToken(uid string) string
|
||||
}
|
||||
|
||||
type LoginToken struct {
|
||||
AdminId string
|
||||
Expires int64
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue