diff --git a/utils/generic/id.go b/utils/generic/id.go index 6243418..3123469 100644 --- a/utils/generic/id.go +++ b/utils/generic/id.go @@ -4,11 +4,24 @@ type IdR[ID comparable] interface { GetId() ID } +type IDR[ID comparable] interface { + GetID() ID +} + type IdW[ID comparable] interface { SetId(id ID) } -type IdRW[ID comparable] interface { +type IDW[ID comparable] interface { + SetID(id ID) +} + +type IdR2W[ID comparable] interface { IdR[ID] IdW[ID] } + +type IDR2W[ID comparable] interface { + IDR[ID] + IDW[ID] +}