mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
14 lines
265 B
Go
14 lines
265 B
Go
|
package member
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/domain"
|
||
|
member_pb "github.com/caos/zitadel/pkg/grpc/member"
|
||
|
)
|
||
|
|
||
|
func MemberToDomain(member *member_pb.Member) *domain.Member {
|
||
|
return &domain.Member{
|
||
|
UserID: member.UserId,
|
||
|
Roles: member.Roles,
|
||
|
}
|
||
|
}
|