github.com/alloyzeus/go-azfl@v0.0.0-20231220071816-9740126a2d07/azcore/user.go (about) 1 package azcore 2 3 import "github.com/alloyzeus/go-azfl/azid" 4 5 type UserIDNumMethods interface { 6 AZUserIDNum() 7 } 8 9 // UserID abstracts the identifiers of User entity instances. 10 type UserIDNum interface { 11 azid.IDNum 12 13 UserIDNumMethods 14 } 15 16 // UserID is used to refer to a User entity instance. 17 type UserID[IDNumT UserIDNum] interface { 18 azid.ID[IDNumT] 19 20 // UserIDNum returns only the ID part of this ref-key. 21 UserIDNum() IDNumT 22 }