mirror of
https://github.com/weloe/token-go.git
synced 2025-10-05 15:36:50 +08:00
feat: update method name, add method AddTokenSign
This commit is contained in:
@@ -440,11 +440,11 @@ func TestEnforcer_JsonAdapter(t *testing.T) {
|
||||
t.Fatalf("NewEnforcer() failed: %v", err)
|
||||
}
|
||||
newSession := model.NewSession("1", "2", "3")
|
||||
newSession.AddTokenSign(&model.TokenSign{
|
||||
newSession.AddDistinctValueTokenSign(&model.TokenSign{
|
||||
Value: "2",
|
||||
Device: "device",
|
||||
})
|
||||
newSession.AddTokenSign(&model.TokenSign{
|
||||
newSession.AddDistinctValueTokenSign(&model.TokenSign{
|
||||
Value: "3",
|
||||
Device: "device",
|
||||
})
|
||||
|
Reference in New Issue
Block a user