qnc init
This commit is contained in:
1
model/common/Error.go
Normal file
1
model/common/Error.go
Normal file
@@ -0,0 +1 @@
|
||||
package model
|
||||
19
model/common/jwt.go
Normal file
19
model/common/jwt.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
jwt "github.com/golang-jwt/jwt/v5"
|
||||
"qnc-server/model/model"
|
||||
)
|
||||
|
||||
type CustomClaims struct {
|
||||
BaseClaims
|
||||
BufferTime int64
|
||||
jwt.RegisteredClaims
|
||||
}
|
||||
|
||||
type BaseClaims struct {
|
||||
Userid uint
|
||||
Disable bool
|
||||
AuthIdentifiers model.AuthIdentifier
|
||||
Platform model.AuthType
|
||||
}
|
||||
7
model/common/prodID.go
Normal file
7
model/common/prodID.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package model
|
||||
|
||||
const (
|
||||
ProdIDLawsuit = "JUD003"
|
||||
ProdIDBankCardGamblingAndFraud = "FIN013"
|
||||
ProdIDBankCardBlacklistV1 = "FIN019"
|
||||
)
|
||||
Reference in New Issue
Block a user