feat: update method name, add method AddTokenSign

This commit is contained in:
weloe
2023-10-31 23:01:47 +08:00
parent 3ac000db86
commit ddcf703835
3 changed files with 8 additions and 3 deletions

View File

@@ -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",
})