mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +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,
|
||
|
}
|
||
|
}
|